mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-11 04:42:42 +00:00
Added sanitizeHtml function to Homebrew model to generate HTML from the brew for the source page.
Moved `source` page generation function to a new function module. Added option to function to create plain text download with a sanitized filename and made it accessible from a new page: `download`. Added the `download` item to the BrewItem so it appears on each brew on the User page. Added `sanitize-filename` dependency to `package.json`.
This commit is contained in:
@@ -62,7 +62,7 @@ const SharePage = createClass({
|
||||
<Nav.item href={`/source/${this.processShareId()}`} color='teal' icon='fa-code'>
|
||||
view source
|
||||
</Nav.item>
|
||||
<Nav.item href={`/source_dl/${this.processShareId()}`} color='red' icon='fa-download'>
|
||||
<Nav.item href={`/download/${this.processShareId()}`} color='red' icon='fa-download'>
|
||||
download source
|
||||
</Nav.item>
|
||||
<RecentNavItem brew={this.props.brew} storageKey='view' />
|
||||
|
||||
Reference in New Issue
Block a user