From 819cee93911cec05a50a26369c34d668cf1b4afc Mon Sep 17 00:00:00 2001 From: Edin Dazdarevic Date: Sat, 31 Jan 2015 14:14:56 +0100 Subject: [PATCH] showing categories for section on bysection browsing pagge --- front-ui/app/components/browsing/bySection.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/front-ui/app/components/browsing/bySection.js b/front-ui/app/components/browsing/bySection.js index 6405fdd..34b4e9b 100644 --- a/front-ui/app/components/browsing/bySection.js +++ b/front-ui/app/components/browsing/bySection.js @@ -18,6 +18,7 @@ var BySection = React.createClass({ }; }, render : function() { + var s ={ float: 'left'}; return (
@@ -29,6 +30,18 @@ var BySection = React.createClass({
Kategorije
+
+ {(this.state.section.get('categories') || []).map(function(category){ + return ( +
+ + +
{category.name}
+ +
+ ) + })} +
)