mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
add year to accordion-list-item
This commit is contained in:
parent
b4076aeef7
commit
e3c3afcefa
@ -11,6 +11,7 @@ let AccordionListItem = React.createClass({
|
||||
},
|
||||
|
||||
render() {
|
||||
console.log(this.props.content);
|
||||
return (
|
||||
<div className="row">
|
||||
<div className={this.props.className}>
|
||||
@ -21,6 +22,7 @@ let AccordionListItem = React.createClass({
|
||||
<div className="info-wrapper">
|
||||
<h1>{this.props.content.title}</h1>
|
||||
<h3>{getLangText('by %s', this.props.content.artist_name)}</h3>
|
||||
<h3>{this.props.content.date_created.split('-')[0]}</h3>
|
||||
</div>
|
||||
<span style={{'clear': 'both'}}></span>
|
||||
</div>
|
||||
|
@ -11,7 +11,7 @@ import { formatText } from './general_utils';
|
||||
export function getLangText(s, ...args) {
|
||||
let lang = navigator.language || navigator.userLanguage;
|
||||
// this is just for testing, as changing the navigator.language wasn't possible
|
||||
lang = 'de';
|
||||
//lang = 'de';
|
||||
try {
|
||||
if(lang in languages) {
|
||||
return formatText(languages[lang][s], args);
|
||||
|
@ -36,8 +36,8 @@ $ascribe-accordion-list-font: 'Source Sans Pro';
|
||||
float:left;
|
||||
font-family: $ascribe-accordion-list-font;
|
||||
margin-left: 2em;
|
||||
padding-top: .75em;
|
||||
h1 {
|
||||
margin-top: .5em;
|
||||
font-size: 2.25em;
|
||||
}
|
||||
h3 {
|
||||
|
Loading…
Reference in New Issue
Block a user