0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-04 08:12:39 +00:00

Added in middleware for retriving brews by a user

This commit is contained in:
Scott Tolksdorf
2016-11-23 23:41:39 -05:00
parent 1db24d07bd
commit 750f5c1330
5 changed files with 62 additions and 18 deletions

View File

@@ -88,12 +88,21 @@ const MetadataEditor = React.createClass({
</div>
},
renderAuthors : function(){
let text = 'None.';
if(this.props.metadata.authors.length){
text = this.props.metadata.authors.join(', ');
}
return <div className='field authors'>
<label>authors</label>
<div className='value'>
{text}
</div>
</div>
},
render : function(){
console.log(this.props.metadata);
return <div className='metadataEditor'>
<div className='field title'>
<label>title</label>
<input type='text' className='value'
@@ -120,6 +129,8 @@ const MetadataEditor = React.createClass({
</div>
</div>
{this.renderAuthors()}
<div className='field publish'>
<label>publish</label>
<div className='value'>

View File

@@ -67,4 +67,8 @@
.button(@red);
}
}
.authors.field .value{
font-size: 0.8em;
line-height : 1.5em;
}
}