showing categories for section on bysection browsing pagge
This commit is contained in:
@@ -18,6 +18,7 @@ var BySection = React.createClass({
|
||||
};
|
||||
},
|
||||
render : function() {
|
||||
var s ={ float: 'left'};
|
||||
return ( <div>
|
||||
|
||||
<div className='col-md-2'>
|
||||
@@ -29,6 +30,18 @@ var BySection = React.createClass({
|
||||
</div>
|
||||
<ItemList items={this.state.items} />
|
||||
<div className='h3'>Kategorije</div>
|
||||
<div>
|
||||
{(this.state.section.get('categories') || []).map(function(category){
|
||||
return (
|
||||
<div style={s}>
|
||||
|
||||
<img src='http://www.windeln.de/resources/img/content/kat_windelnwickeln.jpg'/>
|
||||
<div> {category.name}</div>
|
||||
|
||||
</div>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div> )
|
||||
|
||||
Reference in New Issue
Block a user