28 lines
718 B
Plaintext
28 lines
718 B
Plaintext
|
extends master.pug
|
||
|
|
||
|
block tab-content
|
||
|
div.row: div.col-12.col-md-6: div.table-responsive
|
||
|
table.table.table-sm.table-borderless.table-hover.table-striped
|
||
|
thead: tr
|
||
|
+sortHeader('Name')
|
||
|
+sortHeader('Power')
|
||
|
+sortHeader('Cost')
|
||
|
th.align-middle Users
|
||
|
th.align-middle Locations
|
||
|
tbody: each weapon in weapons
|
||
|
tr(
|
||
|
data-name=weapon.name
|
||
|
data-power=weapon.attack
|
||
|
data-cost=weapon.cost
|
||
|
)
|
||
|
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
|
||
|
|