mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
49 lines
1.4 KiB
Text
49 lines
1.4 KiB
Text
extends /templates/base
|
|
|
|
block content
|
|
|
|
if clan
|
|
h1= clan.get('name')
|
|
if clan.get('description')
|
|
.clan-description
|
|
each line in clan.get('description').split('\n')
|
|
p= line
|
|
|
|
p
|
|
if isOwner
|
|
button.btn.btn-sm.btn-warning.delete-clan-btn Delete Clan
|
|
else if isMember
|
|
button.btn.btn-sm.btn-warning.leave-clan-btn Leave Clan
|
|
else
|
|
button.btn.btn-sm.btn-success.join-clan-btn Join Clan
|
|
|
|
if owner
|
|
p
|
|
span.spr Chieftain:
|
|
a(href="/user/#{clan.get('ownerID')}")= owner.get('name')
|
|
if stats.averageLevel
|
|
p Average level: #{stats.averageLevel}
|
|
if stats.totalAchievements
|
|
p Total achievements earned: #{stats.totalAchievements}
|
|
|
|
if members
|
|
h3 Heroes (#{members.length})
|
|
table.table.table-striped.table-condensed
|
|
thead
|
|
tr
|
|
th Name
|
|
th Level
|
|
th Achievements
|
|
th
|
|
tbody
|
|
each member in members
|
|
tr
|
|
td
|
|
a(href="/user/#{member.id}")= member.get('name') || 'Anoner'
|
|
td= member.level()
|
|
td
|
|
if memberAchievementsMap && memberAchievementsMap[member.id]
|
|
| #{memberAchievementsMap[member.id].length}
|
|
td
|
|
if isOwner && member.id !== clan.get('ownerID')
|
|
button.btn.btn-sm.btn-warning.remove-member-btn(data-id="#{member.id}") Remove Hero
|