2014-07-09 16:41:42 -04:00
|
|
|
span.code-palette-background
|
2014-10-17 00:38:11 -04:00
|
|
|
if entryGroupSlugs
|
|
|
|
// Non-hero; group by entry groups, or maybe nothing.
|
|
|
|
ul(class="nav nav-pills" + (tabbed ? ' multiple-tabs' : ''))
|
|
|
|
each slug, group in entryGroupSlugs
|
|
|
|
li(class=group == "this" || slug == "available-spells" ? "active" : "")
|
|
|
|
a(data-toggle="pill", data-target='#palette-tab-' + slug)
|
|
|
|
h4= entryGroupNames[group]
|
|
|
|
.tab-content
|
|
|
|
each slug, group in entryGroupSlugs
|
|
|
|
div(id="palette-tab-" + slug, class="tab-pane nano" + (group == "this" || slug == defaultGroupSlug ? " active" : ""))
|
|
|
|
div(class="properties properties-" + slug + " nano-content")
|
2015-06-10 18:18:37 -04:00
|
|
|
|
|
|
|
else if tabs
|
|
|
|
// Hero; group by items, but also include tabs
|
|
|
|
ul(class="nav nav-pills multiple-tabs")
|
|
|
|
li.active
|
|
|
|
a(data-toggle="pill", data-target="#palette-tab-this")
|
|
|
|
h4= thisName
|
|
|
|
each entries, tab in tabs
|
|
|
|
li
|
|
|
|
a(data-toggle="pill", data-target='#palette-tab-' + _.string.slugify(tab))
|
|
|
|
h4= tab
|
|
|
|
.tab-content
|
|
|
|
div#palette-tab-this.tab-pane.active
|
|
|
|
.properties.properties-this
|
|
|
|
each entries, tab in tabs
|
|
|
|
div(id="palette-tab-" + _.string.slugify(tab), class="tab-pane")
|
|
|
|
div(class="properties properties-" + _.string.slugify(tab))
|
|
|
|
|
2014-10-17 00:38:11 -04:00
|
|
|
else
|
|
|
|
// Hero; group by items, no tabs.
|
2015-03-25 19:47:11 -04:00
|
|
|
if showsHelp
|
2015-10-05 17:30:02 -04:00
|
|
|
button.btn.btn-sm.btn-info.banner#spell-palette-help-button(data-i18n="common.help")
|
2015-06-10 18:18:37 -04:00
|
|
|
.properties.properties-this
|
2015-03-25 19:47:11 -04:00
|
|
|
else
|
2015-06-10 18:18:37 -04:00
|
|
|
.properties.properties-this.no-help
|