2015-03-31 16:28:57 -04:00
|
|
|
extends /templates/base
|
|
|
|
|
|
|
|
block content
|
|
|
|
|
2015-04-03 16:22:07 -04:00
|
|
|
p
|
2015-05-16 09:45:51 -04:00
|
|
|
input.create-clan-name(type='text', data-i18n="[placeholder]clans.new_name", placeholder='New clan name')
|
2015-04-03 17:09:43 -04:00
|
|
|
p
|
2015-05-16 09:45:51 -04:00
|
|
|
textarea.create-clan-description(rows=2, data-i18n="[placeholder]clans.new_description", placeholder='New clan description')
|
2015-04-10 17:33:16 -04:00
|
|
|
p
|
|
|
|
input(type='checkbox').private-clan-checkbox
|
2015-05-16 09:45:51 -04:00
|
|
|
span.spl(data-i18n="clans.make_private") Make clan private
|
2015-04-10 17:33:16 -04:00
|
|
|
span.spl (
|
2015-07-02 21:44:13 -04:00
|
|
|
a.private-more-info(data-i18n="clans.private_preview")
|
2015-04-10 17:33:16 -04:00
|
|
|
span )
|
2015-04-03 16:22:07 -04:00
|
|
|
p
|
2015-05-16 09:45:51 -04:00
|
|
|
button.btn.btn-success.create-clan-btn(data-i18n="clans.create_clan") Create New Clan
|
2015-03-31 16:28:57 -04:00
|
|
|
|
|
|
|
div(role='tabpanel')
|
|
|
|
ul.nav.nav-tabs(role='tablist')
|
|
|
|
li.active(role='presentation')
|
2015-05-16 09:45:51 -04:00
|
|
|
a(href='#public-clans', aria-controls='public-clans', role='tab', data-toggle='tab', data-i18n="clans.public_clans") Public Clans
|
2015-03-31 16:28:57 -04:00
|
|
|
li(role='presentation')
|
2015-05-16 09:45:51 -04:00
|
|
|
a(href='#my-clans', aria-controls='my-clans', role='tab', data-toggle='tab', data-i18n="clans.my_clans") My Clans
|
2015-03-31 16:28:57 -04:00
|
|
|
|
|
|
|
.tab-content
|
|
|
|
.tab-pane.active#public-clans(role='tabpanel')
|
|
|
|
table.table.table-striped.table-condensed
|
|
|
|
thead
|
|
|
|
tr
|
2015-05-16 09:45:51 -04:00
|
|
|
th(data-i18n="clans.clan_name") Clan Name
|
|
|
|
th(data-i18n="play.heroes") Heroes
|
|
|
|
th(data-i18n="clans.chieftain") Chieftain
|
2015-03-31 16:28:57 -04:00
|
|
|
th
|
|
|
|
tbody
|
2015-04-01 14:56:48 -04:00
|
|
|
if publicClans.length
|
|
|
|
each clan in publicClans
|
|
|
|
tr
|
|
|
|
td
|
|
|
|
if clan.get('ownerID') === me.id
|
|
|
|
a(href="/clans/#{clan.id}", style='font-weight:bold')= clan.get('name')
|
|
|
|
else
|
|
|
|
a(href="/clans/#{clan.id}")= clan.get('name')
|
2015-11-04 19:00:54 -05:00
|
|
|
td= clan.get('memberCount')
|
2015-04-01 14:56:48 -04:00
|
|
|
td
|
2015-04-03 12:52:25 -04:00
|
|
|
if idNameMap && idNameMap[clan.get('ownerID')]
|
|
|
|
a(href="/user/#{clan.get('ownerID')}")= idNameMap[clan.get('ownerID')]
|
|
|
|
else
|
|
|
|
a(href="/user/#{clan.get('ownerID')}") Anoner
|
2015-04-01 14:56:48 -04:00
|
|
|
td
|
|
|
|
if myClanIDs.indexOf(clan.id) < 0
|
2015-05-16 09:45:51 -04:00
|
|
|
button.btn.btn-success.join-clan-btn(data-id="#{clan.id}", data-i18n="clans.join_clan") Join Clan
|
2015-04-01 14:56:48 -04:00
|
|
|
else if clan.get('ownerID') !== me.id
|
2015-05-16 09:45:51 -04:00
|
|
|
button.btn.btn-xs.btn-warning.leave-clan-btn(data-id="#{clan.id}", data-i18n="clans.leave_clan") Leave Clan
|
2015-04-01 14:56:48 -04:00
|
|
|
|
2015-03-31 16:28:57 -04:00
|
|
|
.tab-pane#my-clans(role='tabpanel')
|
|
|
|
table.table.table-striped.table-condensed
|
|
|
|
thead
|
|
|
|
tr
|
2015-05-16 09:45:51 -04:00
|
|
|
th(data-i18n="clans.clan_name") Clan Name
|
|
|
|
th(data-i18n="play.heroes") Heroes
|
|
|
|
th(data-i18n="clans.chieftain") Chieftain
|
|
|
|
th(data-i18n="clans.type") Type
|
2015-03-31 16:28:57 -04:00
|
|
|
th
|
|
|
|
tbody
|
2015-04-01 14:56:48 -04:00
|
|
|
if myClans.length
|
|
|
|
each clan in myClans
|
|
|
|
tr
|
|
|
|
td
|
2015-04-01 18:24:45 -04:00
|
|
|
if clan.get('ownerID') === me.id
|
|
|
|
a(href="/clans/#{clan.id}", style='font-weight:bold')= clan.get('name')
|
|
|
|
else
|
|
|
|
a(href="/clans/#{clan.id}")= clan.get('name')
|
2015-11-04 19:00:54 -05:00
|
|
|
td= clan.get('memberCount')
|
2015-04-01 14:56:48 -04:00
|
|
|
td
|
2015-04-03 12:52:25 -04:00
|
|
|
if idNameMap && idNameMap[clan.get('ownerID')]
|
|
|
|
a(href="/user/#{clan.get('ownerID')}")= idNameMap[clan.get('ownerID')]
|
|
|
|
else
|
|
|
|
a(href="/user/#{clan.get('ownerID')}") Anoner
|
2015-04-15 14:12:35 -04:00
|
|
|
td= clan.get('type')
|
2015-04-01 14:56:48 -04:00
|
|
|
td
|
|
|
|
if clan.get('ownerID') !== me.id
|
2015-05-16 09:45:51 -04:00
|
|
|
button.btn.btn-xs.btn-warning.leave-clan-btn(data-id="#{clan.id}", data-i18n="clans.leave_clan") Leave Clan
|