BattleSim/client/views/battle_list.jade

16 lines
513 B
Plaintext

.battle-list
h2 Battle List (#{battles.length} battles)
.battle-list-collection
if battles.length == 0
p.empty There are no active battles happening at this time.
each battle in battles
.battle-list-item-wrapper
.battle-list-item.spectate.clearfix(data-battle-id=battle[0])
.left
span.player= battle[1]
span.vs VS
span.player= battle[2]
.right
span.fake_link.elapsed-time(data-time-start=Date.now() - battle[3])