mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
482b66b8a4
Replace mock data with some real functionality.
37 lines
924 B
Text
37 lines
924 B
Text
extends /templates/base
|
|
|
|
block content
|
|
|
|
h1= clan.get('name')
|
|
span.spr.spl.small (owner
|
|
a(href="/user/#{clan.get('ownerID')}")= clan.get('ownerName')
|
|
| )
|
|
div
|
|
if isOwner
|
|
button.btn.btn-sm.btn-warning Delete Clan
|
|
else if isMember
|
|
button.btn.btn-sm.btn-warning Leave Clan
|
|
else
|
|
button.btn.btn-sm.btn-success Join Clan
|
|
|
|
if clan.get('members')
|
|
h3 Clan Members (#{clan.get('members').length})
|
|
table.table.table-striped.table-condensed
|
|
thead
|
|
tr
|
|
th Name
|
|
th Level
|
|
th
|
|
tbody
|
|
each member in clan.get('members')
|
|
tr
|
|
td
|
|
a(href="/user/#{member.id}")= member.name
|
|
td= member.level
|
|
if member.id !== clan.get('ownerID')
|
|
td
|
|
button.btn.btn-sm.btn-warning Remove Member
|
|
else
|
|
td
|
|
|
|
button.btn.btn-sm Load More
|