Compare commits
3 Commits
1c3b6c3c5e
...
ef2bbc9812
Author | SHA1 | Date |
---|---|---|
|
ef2bbc9812 | |
|
70f5d9eb15 | |
|
efe7c07817 |
|
@ -43,7 +43,7 @@ module.exports = (plugin, app) => {
|
|||
// build the location
|
||||
let loc = '<a href="/">'+app.live.conf['shortname']+'</a>'
|
||||
let crumbs = req.path.split('/')
|
||||
let title = crumbs.reverse().filter(v=>v!==''&&v!=='db').map(v=>v.charAt(0).toUpperCase()+v.slice(1)).join(' - ')
|
||||
let title = [...crumbs].reverse().filter(v=>v!==''&&v!=='db').map(v=>v.charAt(0).toUpperCase()+v.slice(1)).join(' - ')
|
||||
for (let i = 1; i < crumbs.length; i++) {
|
||||
if (crumbs[i] == '') continue
|
||||
loc += ' → <a href="'+crumbs.slice(0,i).join('/')+'/'+crumbs[i]+'/">'+(crumbs[i].replace('-', ' '))+'</a>'
|
||||
|
|
|
@ -152,13 +152,22 @@ h2 {
|
|||
border-bottom: 1px solid #dde;
|
||||
color: #df3f3f;
|
||||
}
|
||||
h2 > a {
|
||||
color: #df3f3f !important;
|
||||
}
|
||||
h3 {
|
||||
border-bottom: 1px solid #dfdfef;
|
||||
color: #dfdf5f;
|
||||
}
|
||||
h3 > a {
|
||||
color: #dfdf5f !important;
|
||||
}
|
||||
h4 {
|
||||
color: #df9fdf;
|
||||
}
|
||||
h4 > a {
|
||||
color: #df9fdf !important;
|
||||
}
|
||||
a {
|
||||
transition: .05s ease-in-out;
|
||||
}
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
#}}
|
||||
|
||||
{{##def.consumables_table_entry:item:
|
||||
<h2><a href="/db/consumables/{{=item.name || ''}}">{{=item.name || ''}}</a> <span data-json='{{=JSON.stringify(item)}}'></span> </h2>
|
||||
<h3><a href="/db/consumables/{{=item.name || ''}}">{{=item.name || ''}}</a> <span data-json='{{=JSON.stringify(item)}}'></span> </h3>
|
||||
<p>{{=item.description || ''}}</p>
|
||||
{{?item.properties.length}}
|
||||
{{~item.properties :property}}
|
||||
|
@ -197,7 +197,7 @@
|
|||
{{? it.results }}
|
||||
{{#def.entry:it.results[0] || ''}}
|
||||
{{? it.collection === "gear" }}
|
||||
<h1>Gear</h1>
|
||||
<h1><a href="/db/gear/">Gear</a></h1>
|
||||
{{? it.type }}
|
||||
{{? it.type === "weapon"}}
|
||||
<h2>Weapons</h2>
|
||||
|
@ -213,10 +213,10 @@
|
|||
{{#def.misc_table:it.results || ''}}
|
||||
{{?}}
|
||||
{{?? true }}
|
||||
<h2><a href="armor">Armor</a></h2>
|
||||
<h2><a href="misc">Misc</a></h2>
|
||||
<h2><a href="weapon">Weapons</a></h2>
|
||||
<h2><a href="consumable">Consumables</a></h2>
|
||||
<h2><a href="armor/">Armor</a></h2>
|
||||
<h2><a href="misc/">Misc</a></h2>
|
||||
<h2><a href="weapon/">Weapons</a></h2>
|
||||
<h2><a href="consumable/">Consumables</a></h2>
|
||||
{{?}}
|
||||
{{?? it.collection === "specimens" }}
|
||||
{{? it.type }}
|
||||
|
|
Loading…
Reference in New Issue