showing categories for section on bysection browsing pagge
This commit is contained in:
@@ -18,6 +18,7 @@ var BySection = React.createClass({
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
render : function() {
|
render : function() {
|
||||||
|
var s ={ float: 'left'};
|
||||||
return ( <div>
|
return ( <div>
|
||||||
|
|
||||||
<div className='col-md-2'>
|
<div className='col-md-2'>
|
||||||
@@ -29,6 +30,18 @@ var BySection = React.createClass({
|
|||||||
</div>
|
</div>
|
||||||
<ItemList items={this.state.items} />
|
<ItemList items={this.state.items} />
|
||||||
<div className='h3'>Kategorije</div>
|
<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>
|
||||||
</div> )
|
</div> )
|
||||||
|
|||||||
Reference in New Issue
Block a user