2015-05-29 16:28:05 +02:00
|
|
|
import React from 'react';
|
2015-06-04 11:41:56 +02:00
|
|
|
import Router from 'react-router';
|
2015-05-29 16:28:05 +02:00
|
|
|
|
2015-06-01 11:51:03 +02:00
|
|
|
import AccordionListItemTable from './accordion_list_item_table';
|
|
|
|
|
2015-06-02 14:25:26 +02:00
|
|
|
import { getLangText } from '../../utils/lang_utils';
|
2015-06-01 11:51:03 +02:00
|
|
|
|
2015-06-04 11:41:56 +02:00
|
|
|
let Link = Router.Link;
|
|
|
|
|
2015-05-29 16:28:05 +02:00
|
|
|
let AccordionListItem = React.createClass({
|
|
|
|
propTypes: {
|
|
|
|
className: React.PropTypes.string,
|
|
|
|
content: React.PropTypes.object
|
|
|
|
},
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2015-06-01 11:51:03 +02:00
|
|
|
<div className="row">
|
|
|
|
<div className={this.props.className}>
|
|
|
|
<div className="wrapper">
|
2015-06-04 17:21:38 +02:00
|
|
|
<div className="col-xs-4 col-sm-4 col-md-4 col-lg-4 thumbnail-wrapper">
|
2015-06-01 11:51:03 +02:00
|
|
|
<img src={this.props.content.thumbnail} />
|
|
|
|
</div>
|
2015-06-04 17:21:38 +02:00
|
|
|
<div className="col-xs-8 col-sm-8 col-md-8 col-lg-8">
|
2015-06-01 11:51:03 +02:00
|
|
|
<h1>{this.props.content.title}</h1>
|
2015-06-02 14:25:26 +02:00
|
|
|
<h3>{getLangText('by %s', this.props.content.artist_name)}</h3>
|
2015-06-03 16:34:32 +02:00
|
|
|
<h3>{this.props.content.date_created.split('-')[0]}</h3>
|
2015-06-01 11:51:03 +02:00
|
|
|
</div>
|
|
|
|
<span style={{'clear': 'both'}}></span>
|
2015-05-29 16:28:05 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-06-01 11:51:03 +02:00
|
|
|
{this.props.children}
|
|
|
|
</div>
|
2015-05-29 16:28:05 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
export default AccordionListItem;
|