31 lines
824 B
Plaintext
31 lines
824 B
Plaintext
extends master.pug
|
|
|
|
block tab-content
|
|
|
|
div.row: div.col-12.col-md-8
|
|
+apprenticeFilterForm()
|
|
table#main-table.table.table-sm.table-borderless.table-hover.table-striped.sticky-header
|
|
thead: tr.header
|
|
+sortHeader('Name', 'name')
|
|
+sortHeader('Power', 'power')
|
|
+sortHeader('Cost', 'cost')
|
|
th.align-middle Users
|
|
th.align-middle Locations
|
|
tbody.data: each weapon in weapons
|
|
tr(
|
|
data-name=weapon.name
|
|
data-power=weapon.attack
|
|
data-cost=weapon.cost
|
|
data-users=weapon.users.join(',')
|
|
)
|
|
td: strong= weapon.name
|
|
td.text-right: code= weapon.attack
|
|
td.text-right: code= weapon.cost.toLocaleString()
|
|
td: ul.list-horizontal
|
|
each char in weapon.users
|
|
li= char
|
|
td: ul.list-horizontal
|
|
each location in weapon.locations
|
|
li= location
|
|
|