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

24 lines
622 B
Plaintext

extends master.pug
block tab-content
+locationFilterForm()
table#main-table.table.table-sm.table-borderless.table-hover.table-striped.sticky-header
thead: tr.header
+sortHeader('Name', 'name')
+sortHeader('Cost', 'cost')
th.align-middle Effect
th.align-middle Locations
tbody.data: each item in items
tr(
data-name=item.name
data-cost=item.cost
data-locations=item.locations.join(',')
)
td: strong.text-nowrap= item.name
td.text-right: code= item.cost.toLocaleString()
td: em= item.effect
td: ul.list-horizontal
each location in item.locations
li= location