0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-02 12:52:38 +00:00

initial commit

This commit is contained in:
Víctor Losada Hernández
2024-05-02 11:38:00 +02:00
parent d2965e1122
commit 3c1f8804af
2 changed files with 18 additions and 4 deletions

View File

@@ -47,6 +47,19 @@ const SharePage = createClass({
this.props.brew.shareId;
},
renderEditLink : function(){
if(!this.props.brew.editId) return;
let editLink = this.props.brew.editId;
if(this.props.brew.googleId && !this.props.brew.stubbed) {
editLink = this.props.brew.googleId + editLink;
}
return <Nav.item color='orange' href={`/edit/${editLink}`}>
edit
</Nav.item>;
},
render : function(){
return <div className='sharePage sitePage'>
<Meta name='robots' content='noindex, nofollow' />
@@ -67,6 +80,7 @@ const SharePage = createClass({
<Nav.item color='blue' href={`/source/${this.processShareId()}`}>
view
</Nav.item>
{this.renderEditLink()}
<Nav.item color='blue' href={`/download/${this.processShareId()}`}>
download
</Nav.item>