2015-03-31 16:28:57 -04:00
|
|
|
extends /templates/base
|
|
|
|
|
|
|
|
block content
|
|
|
|
|
2015-04-01 14:56:48 -04:00
|
|
|
h1= clan.get('name')
|
|
|
|
span.spr.spl.small (owner
|
|
|
|
a(href="/user/#{clan.get('ownerID')}")= clan.get('ownerName')
|
|
|
|
| )
|
2015-03-31 16:28:57 -04:00
|
|
|
div
|
2015-04-01 14:56:48 -04:00
|
|
|
if isOwner
|
2015-04-02 14:44:18 -04:00
|
|
|
button.btn.btn-sm.btn-warning.delete-clan-btn Delete Clan
|
2015-04-01 14:56:48 -04:00
|
|
|
else if isMember
|
2015-04-02 14:44:18 -04:00
|
|
|
button.btn.btn-sm.btn-warning.leave-clan-btn Leave Clan
|
2015-04-01 14:56:48 -04:00
|
|
|
else
|
2015-04-02 14:44:18 -04:00
|
|
|
button.btn.btn-sm.btn-success.join-clan-btn Join Clan
|
2015-03-31 16:28:57 -04:00
|
|
|
|
2015-04-01 14:56:48 -04:00
|
|
|
if clan.get('members')
|
|
|
|
h3 Clan Members (#{clan.get('members').length})
|
|
|
|
table.table.table-striped.table-condensed
|
|
|
|
thead
|
2015-03-31 16:28:57 -04:00
|
|
|
tr
|
2015-04-01 14:56:48 -04:00
|
|
|
th Name
|
|
|
|
th Level
|
|
|
|
th
|
|
|
|
tbody
|
2015-04-02 20:00:28 -04:00
|
|
|
each member in members
|
2015-04-01 14:56:48 -04:00
|
|
|
tr
|
2015-03-31 16:28:57 -04:00
|
|
|
td
|
2015-04-02 20:00:28 -04:00
|
|
|
a(href="/user/#{member.id}")= member.get('name') || 'Anoner'
|
|
|
|
td= member.level()
|
2015-04-01 18:24:45 -04:00
|
|
|
if isOwner && member.id !== clan.get('ownerID')
|
2015-04-01 14:56:48 -04:00
|
|
|
td
|
2015-04-02 14:01:37 -04:00
|
|
|
button.btn.btn-sm.btn-warning.remove-member-btn(data-id="#{member.id}") Remove Member
|
2015-04-01 14:56:48 -04:00
|
|
|
else
|
|
|
|
td
|
2015-03-31 16:28:57 -04:00
|
|
|
|
2015-04-01 14:56:48 -04:00
|
|
|
button.btn.btn-sm Load More
|