7th-saga/web/views/accessories.pug

45 lines
1.4 KiB
Plaintext

extends master.pug
block tab-content
+apprenticeFilterForm()
table#main-table.table.table-sm.table-borderless.table-hover.table-striped.sticky-header
thead: tr.header
+sortHeader('Name', 'name')
+sortHeader('Defense', 'defense')
+sortHeader('Cost', 'cost')
+sortHeader('Fire', 'res-fire')
+sortHeader('Ice', 'res-ice')
+sortHeader('Thunder', 'res-thunder')
+sortHeader('Vacuum', 'res-vacuum')
+sortHeader('Debuff', 'res-debuff')
th.align-middle Users
th.align-middle Locations
tbody.data: each item in accessories
tr(
data-name=item.name
data-defense=item.defense
data-cost=item.cost
data-res-fire=item.resistance.fire
data-res-ice=item.resistance.ice
data-res-thunder=item.resistance.thunder
data-res-vacuum=item.resistance.vacuum
data-res-debuff=item.resistance.debuff
data-users=item.users.join(',')
)
td: strong= item.name
td.text-right: code= item.defense
td.text-right: code= item.cost.toLocaleString()
td.text-right: code= item.resistance.fire
td.text-right: code= item.resistance.ice
td.text-right: code= item.resistance.thunder
td.text-right: code= item.resistance.vacuum
td.text-right: code= item.resistance.debuff
td: ul.list-horizontal
each char in item.users
li= char
td: ul.list-horizontal
each location in item.locations
li= location