2015-03-31 16:28:57 -04:00
|
|
|
extends /templates/base
|
|
|
|
|
|
|
|
block content
|
|
|
|
|
2015-04-03 12:52:25 -04:00
|
|
|
if clan
|
2015-04-10 17:33:16 -04:00
|
|
|
h1 #{clan.get('name')}
|
|
|
|
if clan.get('type') === 'private'
|
|
|
|
small (private)
|
2015-04-03 17:09:43 -04:00
|
|
|
if clan.get('description')
|
|
|
|
.clan-description
|
|
|
|
each line in clan.get('description').split('\n')
|
|
|
|
p= line
|
|
|
|
|
2015-04-03 17:48:00 -04:00
|
|
|
h5 Summary
|
|
|
|
table.table.table-condensed.stats-table
|
2015-04-03 14:05:37 -04:00
|
|
|
if owner
|
2015-04-03 17:48:00 -04:00
|
|
|
tr
|
|
|
|
td
|
|
|
|
span.spr Chieftain
|
|
|
|
td
|
2015-04-03 19:44:35 -04:00
|
|
|
span.spr.player-hero-icon(data-memberid="#{clan.get('ownerID')}")
|
2015-04-03 17:48:00 -04:00
|
|
|
a(href="/user/#{clan.get('ownerID')}")= owner.get('name')
|
2015-04-03 14:05:37 -04:00
|
|
|
if stats.averageLevel
|
2015-04-03 17:48:00 -04:00
|
|
|
tr
|
|
|
|
td Average Level
|
|
|
|
td= stats.averageLevel
|
2015-04-03 14:05:37 -04:00
|
|
|
if stats.totalAchievements
|
2015-04-03 17:48:00 -04:00
|
|
|
tr
|
2015-04-03 18:52:16 -04:00
|
|
|
td Total Achievements
|
2015-04-03 17:48:00 -04:00
|
|
|
td= stats.totalAchievements
|
|
|
|
|
|
|
|
p
|
|
|
|
if isOwner
|
2015-04-06 13:07:16 -04:00
|
|
|
button.btn.btn-xs.btn-warning.delete-clan-btn Delete Clan
|
2015-04-03 17:48:00 -04:00
|
|
|
else if isMember
|
2015-04-06 13:07:16 -04:00
|
|
|
button.btn.btn-xs.btn-warning.leave-clan-btn Leave Clan
|
2015-04-03 17:48:00 -04:00
|
|
|
else
|
2015-04-06 13:07:16 -04:00
|
|
|
button.btn.btn-lg.btn-success.join-clan-btn Join Clan
|
2015-04-03 17:48:00 -04:00
|
|
|
|
|
|
|
div
|
|
|
|
span.spl.spr.join-link-prompt Invite:
|
|
|
|
input.join-clan-link(type="text", readonly, value="#{joinClanLink}")
|
|
|
|
.small *Invite players to this Clan by sending them this link.
|
|
|
|
|
2015-04-03 12:52:25 -04:00
|
|
|
if members
|
2015-04-03 16:22:07 -04:00
|
|
|
h3 Heroes (#{members.length})
|
2015-04-01 14:56:48 -04:00
|
|
|
table.table.table-striped.table-condensed
|
|
|
|
thead
|
2015-03-31 16:28:57 -04:00
|
|
|
tr
|
2015-04-03 19:44:35 -04:00
|
|
|
th
|
2015-04-03 20:21:30 -04:00
|
|
|
th
|
|
|
|
td Name
|
2015-04-01 14:56:48 -04:00
|
|
|
th Level
|
2015-04-03 14:05:37 -04:00
|
|
|
th Achievements
|
2015-04-06 13:19:35 -04:00
|
|
|
th Latest Achievement
|
2015-04-01 14:56:48 -04:00
|
|
|
th
|
|
|
|
tbody
|
2015-04-02 20:00:28 -04:00
|
|
|
each member in members
|
2015-04-01 14:56:48 -04:00
|
|
|
tr
|
2015-04-03 20:21:30 -04:00
|
|
|
td.hero-icon-cell
|
2015-04-03 19:44:35 -04:00
|
|
|
span.spr.player-hero-icon(data-memberid="#{member.id}")
|
2015-04-03 20:21:30 -04:00
|
|
|
td.code-language-cell
|
|
|
|
if memberLanguageMap && memberLanguageMap[member.id]
|
|
|
|
span.code-language-cell(style="background-image: url(/images/common/code_languages/#{memberLanguageMap[member.id]}_small.png)", title=memberLanguageMap[member.id])
|
|
|
|
td
|
2015-04-02 20:00:28 -04:00
|
|
|
a(href="/user/#{member.id}")= member.get('name') || 'Anoner'
|
|
|
|
td= member.level()
|
2015-04-03 14:05:37 -04:00
|
|
|
td
|
|
|
|
if memberAchievementsMap && memberAchievementsMap[member.id]
|
|
|
|
| #{memberAchievementsMap[member.id].length}
|
2015-04-06 13:19:35 -04:00
|
|
|
td
|
|
|
|
if memberAchievementsMap && memberAchievementsMap[member.id] && memberAchievementsMap[member.id].length
|
|
|
|
span= memberAchievementsMap[member.id][0].get('achievementName')
|
2015-04-03 14:05:37 -04:00
|
|
|
td
|
|
|
|
if isOwner && member.id !== clan.get('ownerID')
|
2015-04-06 13:07:16 -04:00
|
|
|
button.btn.btn-xs.btn-warning.remove-member-btn(data-id="#{member.id}") Remove Hero
|