0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-04 16:52:38 +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

@@ -191,6 +191,34 @@ module.exports = [
"</div>\n\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 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 SplitPane = require('naturalcrit/splitPane/splitPane.jsx');
@@ -133,6 +133,7 @@ const NewPage = React.createClass({
{this.renderSaveButton()}
{this.renderLocalPrintButton()}
<IssueNavItem />
<AccountNavItem />
</Nav.section>
</Navbar>
},