0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-14 02:02:51 +00:00

got the changelog page working, yayyyyyyyyyy

This commit is contained in:
Scott
2016-02-19 20:14:28 -05:00
parent ac8579ccc9
commit 8d61a21fa7
8 changed files with 54 additions and 10 deletions

View File

@@ -90,6 +90,14 @@ var Statusbar = React.createClass({
</a>
},
renderChangelogButton : function(){
if(this.props.editId || this.props.shareId) return null;
return <a className='changelogButton' target='_blank' href='/homebrew/changelog'>
Changelog <i className='fa fa-file-text-o' />
</a>
},
renderShare : function(){
if(!this.props.shareId) return null;
@@ -138,6 +146,7 @@ var Statusbar = React.createClass({
</a>
</div>
<div className='controls right'>
{this.renderChangelogButton()}
{this.renderStatus()}
{this.renderInfo()}
{this.renderSourceButton()}

View File

@@ -58,6 +58,14 @@
background-color : fade(@green, 70%);
}
}
.changelogButton{
.animate(background-color);
color : white;
text-decoration : none;
&:hover{
background-color : fade(@purple, 70%);
}
}
.deleteButton{
.animate(background-color);
color : white;