1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-25 16:31:28 +00:00

Added account nav to newpage and added split table snippet

This commit is contained in:
Scott Tolksdorf
2016-12-01 10:06:23 -05:00
parent a634b76117
commit 8e6fccc969
3 changed files with 35 additions and 1 deletions

View File

@@ -1,5 +1,10 @@
# changelog # changelog
### Thursday, 01/12/2016
- Added in a snippet for a split table
- Added an account nav item to new page
### Sunday, 27/11/2016 - v2.5.1 ### Sunday, 27/11/2016 - v2.5.1
- Fixed the column rendering on the new user page. Really should have tested that better - Fixed the column rendering on the new user page. Really should have tested that better
- Added a hover tooltip to fully read the brew description - Added a hover tooltip to fully read the brew description

View File

@@ -191,6 +191,34 @@ module.exports = [
"</div>\n\n" "</div>\n\n"
].join('\n'); ].join('\n');
}, },
},
{
name : 'Split Table',
icon : 'fa-th-large',
gen : function(){
return [
"<div style='column-count:2'>",
"| d10 | Damage Type |",
"|:---:|:------------|",
"| 1 | Acid |",
"| 2 | Cold |",
"| 3 | Fire |",
"| 4 | Force |",
"| 5 | Lightning |",
"",
"```",
"```",
"",
"| d10 | Damage Type |",
"|:---:|:------------|",
"| 6 | Necrotic |",
"| 7 | Poison |",
"| 8 | Psychic |",
"| 9 | Radiant |",
"| 10 | Thunder |",
"</div>\n\n",
].join('\n');
},
} }
] ]
}, },

View File

@@ -7,7 +7,7 @@ const Markdown = require('naturalcrit/markdown.js');
const Nav = require('naturalcrit/nav/nav.jsx'); const Nav = require('naturalcrit/nav/nav.jsx');
const Navbar = require('../../navbar/navbar.jsx'); const Navbar = require('../../navbar/navbar.jsx');
const EditTitle = require('../../navbar/editTitle.navitem.jsx'); const AccountNavItem = require('../../navbar/account.navitem.jsx');
const IssueNavItem = require('../../navbar/issue.navitem.jsx'); const IssueNavItem = require('../../navbar/issue.navitem.jsx');
const SplitPane = require('naturalcrit/splitPane/splitPane.jsx'); const SplitPane = require('naturalcrit/splitPane/splitPane.jsx');
@@ -133,6 +133,7 @@ const NewPage = React.createClass({
{this.renderSaveButton()} {this.renderSaveButton()}
{this.renderLocalPrintButton()} {this.renderLocalPrintButton()}
<IssueNavItem /> <IssueNavItem />
<AccountNavItem />
</Nav.section> </Nav.section>
</Navbar> </Navbar>
}, },