mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
75 lines
2.2 KiB
Text
75 lines
2.2 KiB
Text
|
extends /templates/base
|
||
|
|
||
|
block content
|
||
|
|
||
|
ol.breadcrumb
|
||
|
li
|
||
|
a(href="/")
|
||
|
span.glyphicon.glyphicon-home
|
||
|
li.active Clans
|
||
|
|
||
|
div
|
||
|
button.btn.btn-sm.btn-success Create New Clan
|
||
|
span.spr.spl
|
||
|
input(type='text' placeholder='New clan name')
|
||
|
br
|
||
|
|
||
|
div(role='tabpanel')
|
||
|
ul.nav.nav-tabs(role='tablist')
|
||
|
li.active(role='presentation')
|
||
|
a(href='#public-clans' aria-controls='public-clans', role='tab', data-toggle='tab') Public Clans
|
||
|
li(role='presentation')
|
||
|
a(href='#my-clans' aria-controls='my-clans', role='tab', data-toggle='tab') My Clans
|
||
|
|
||
|
.tab-content
|
||
|
.tab-pane.active#public-clans(role='tabpanel')
|
||
|
table.table.table-striped.table-condensed
|
||
|
thead
|
||
|
tr
|
||
|
th Clan Name
|
||
|
th Members
|
||
|
th Owner
|
||
|
th
|
||
|
tbody
|
||
|
each clan in publicClans
|
||
|
tr
|
||
|
td
|
||
|
if clan.owner === 'mrsmith'
|
||
|
a(href="/clans/#{clan.id}", style='font-weight:bold')= clan.title
|
||
|
else
|
||
|
a(href="/clans/#{clan.id}")= clan.title
|
||
|
td= clan.memberCount
|
||
|
td
|
||
|
a(href="/user/#{clan.ownerID}")= clan.owner
|
||
|
td
|
||
|
if !clan.member
|
||
|
button.btn.btn-sm.btn-success Join Clan
|
||
|
else if clan.owner !== 'mrsmith'
|
||
|
button.btn.btn-sm.btn-warning Leave Clan
|
||
|
button.btn.btn-sm Load More
|
||
|
|
||
|
.tab-pane#my-clans(role='tabpanel')
|
||
|
table.table.table-striped.table-condensed
|
||
|
thead
|
||
|
tr
|
||
|
th Clan Name
|
||
|
th Members
|
||
|
th Owner
|
||
|
th
|
||
|
tbody
|
||
|
each clan in myClans
|
||
|
tr
|
||
|
td
|
||
|
if clan.owner === 'mrsmith'
|
||
|
a(href="/clans/#{clan.id}", style='font-weight:bold')= clan.title
|
||
|
else
|
||
|
a(href="/clans/#{clan.id}")= clan.title
|
||
|
td= clan.memberCount
|
||
|
td
|
||
|
a(href="/user/#{clan.ownerID}")= clan.owner
|
||
|
td
|
||
|
if clan.owner !== 'mrsmith'
|
||
|
button.btn.btn-sm.btn-warning Leave Clan
|
||
|
|
||
|
button.btn.btn-sm Load More
|