2015-06-05 11:06:36 +02:00
|
|
|
'use strict';
|
|
|
|
|
2015-05-29 16:28:05 +02:00
|
|
|
import React from 'react';
|
|
|
|
|
2015-06-02 14:25:26 +02:00
|
|
|
import { getLangText } from '../../utils/lang_utils';
|
2015-06-01 11:51:03 +02:00
|
|
|
|
2015-05-29 16:28:05 +02:00
|
|
|
let AccordionListItem = React.createClass({
|
|
|
|
propTypes: {
|
|
|
|
className: React.PropTypes.string,
|
2015-06-05 11:06:36 +02:00
|
|
|
content: React.PropTypes.object,
|
|
|
|
children: React.PropTypes.object
|
2015-05-29 16:28:05 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2015-06-01 11:51:03 +02:00
|
|
|
<div className="row">
|
|
|
|
<div className={this.props.className}>
|
|
|
|
<div className="wrapper">
|
2015-07-01 10:53:40 +02:00
|
|
|
<div className="col-xs-5 col-sm-5 col-md-4 col-lg-4 thumbnail-wrapper">
|
2015-06-01 11:51:03 +02:00
|
|
|
<img src={this.props.content.thumbnail} />
|
|
|
|
</div>
|
2015-07-01 12:17:50 +02:00
|
|
|
<div className="col-xs-7 col-sm-7 col-md-7 col-lg-7 col-md-offset-1 col-lg-offset-1 accordion-list-item-header">
|
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;
|