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

28 lines
718 B
Plaintext
Raw Normal View History

2021-02-16 17:03:42 +00:00
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