2013-09-07 16:45:39 +00:00
|
|
|
// FIXME note, due to https://github.com/angular-ui/bootstrap/issues/783 we can't use nested angular-bootstrap tabs
|
|
|
|
|
// Subscribe to that ticket & change this when they fix
|
2013-08-31 18:52:13 +00:00
|
|
|
|
2013-10-31 21:37:04 +00:00
|
|
|
include ./challenges.jade
|
|
|
|
|
|
|
|
|
|
script(type='text/ng-template', id='partials/options.social.tavern.html')
|
2013-10-28 05:27:07 +00:00
|
|
|
include ./tavern
|
2013-08-31 18:52:13 +00:00
|
|
|
|
2013-10-31 21:37:04 +00:00
|
|
|
script(type='text/ng-template', id='partials/options.social.party.html')
|
2013-10-28 05:27:07 +00:00
|
|
|
div(ng-show='group._id')
|
|
|
|
|
include ./group
|
|
|
|
|
div(ng-hide='group._id')
|
|
|
|
|
div(ng-show='user.invitations.party')
|
|
|
|
|
// #with required for the accept/reject buttons
|
|
|
|
|
// {#with _user.invitations.party as :party}
|
|
|
|
|
h2 You're Invited To {{user.invitations.party.name}}
|
|
|
|
|
a.btn.btn-success(data-type='party', ng-click='join(user.invitations.party)') Accept
|
|
|
|
|
a.btn.btn-danger(ng-click='reject()') Reject
|
|
|
|
|
// {/}
|
2013-11-01 20:08:36 +00:00
|
|
|
div(ng-hide='user.invitations.party')
|
2013-10-28 05:27:07 +00:00
|
|
|
h2 Create A Party
|
|
|
|
|
p
|
|
|
|
|
| You are not in a party. You can either create one and invite friends, or if you want to join an existing party, have them enter:
|
|
|
|
|
pre.prettyprint.
|
|
|
|
|
{{user.id}}
|
|
|
|
|
include ./create-group
|
|
|
|
|
|
2013-10-31 21:37:04 +00:00
|
|
|
script(type='text/ng-template', id='partials/options.social.guilds.public.html')
|
2013-10-29 22:25:50 +00:00
|
|
|
div(ng-repeat='invitation in user.invitations.guilds')
|
|
|
|
|
h3 You're Invited To {{invitation.name}}
|
|
|
|
|
a.btn.btn-success(data-type='guild', ng-click='join(invitation)') Accept
|
|
|
|
|
a.btn.btn-danger(ng-click='reject(invitation)') Reject
|
|
|
|
|
// Public Groups
|
|
|
|
|
.options-group.option-large.whatever-options
|
|
|
|
|
input.option-content(type='text',ng-model='guildSearch', placeholder='Search')
|
|
|
|
|
table.table.table-striped
|
|
|
|
|
tr(ng-repeat='group in groups.public | filter:guildSearch')
|
|
|
|
|
td
|
|
|
|
|
ul.pull-right.challenge-accordion-header-specs
|
|
|
|
|
li {{group.memberCount}} member(s)
|
|
|
|
|
li
|
|
|
|
|
// join / leave
|
2013-10-30 21:34:59 +00:00
|
|
|
a.btn.btn-small.btn-danger(ng-show='group._isMember', ng-click='leave(group)')
|
2013-10-29 22:25:50 +00:00
|
|
|
i.icon-ban-circle
|
|
|
|
|
| Leave
|
|
|
|
|
a.btn.btn-small.btn-success(ng-hide='group._isMember', ng-click='join(group)')
|
|
|
|
|
i.icon-ok
|
|
|
|
|
| Join
|
|
|
|
|
h4 {{group.name}}
|
|
|
|
|
p {{group.description}}
|
|
|
|
|
|
2013-10-31 21:37:04 +00:00
|
|
|
script(type='text/ng-template', id='partials/options.social.guilds.detail.html')
|
2013-10-29 22:25:50 +00:00
|
|
|
include ./group
|
|
|
|
|
|
2013-10-31 21:37:04 +00:00
|
|
|
script(type='text/ng-template', id='partials/options.social.guilds.create.html')
|
2013-10-29 22:25:50 +00:00
|
|
|
include ./create-group
|
|
|
|
|
|
2013-10-31 21:37:04 +00:00
|
|
|
script(type='text/ng-template', id='partials/options.social.guilds.html')
|
2013-10-28 05:27:07 +00:00
|
|
|
ul.nav.nav-tabs
|
2013-10-31 21:37:04 +00:00
|
|
|
li(ng-class="{ active: $state.includes('options.social.guilds.public') }")
|
|
|
|
|
a(ui-sref='options.social.guilds.public')
|
2013-10-29 22:25:50 +00:00
|
|
|
| Public Guilds
|
|
|
|
|
li(ng-class="{ active: $stateParams.gid == group._id }", ng-repeat='group in groups.guilds')
|
2013-10-31 21:37:04 +00:00
|
|
|
a(ui-sref="options.social.guilds.detail({gid:group._id})")
|
2013-10-29 22:25:50 +00:00
|
|
|
| {{group.name}}
|
2013-10-31 21:37:04 +00:00
|
|
|
li(ng-class="{ active: $state.includes('options.social.guilds.create') }")
|
|
|
|
|
a(ui-sref='options.social.guilds.create')
|
2013-10-29 22:25:50 +00:00
|
|
|
| Create Guild
|
2013-08-31 18:52:13 +00:00
|
|
|
|
2013-10-29 22:25:50 +00:00
|
|
|
.tab-content
|
|
|
|
|
.tab-pane.active
|
|
|
|
|
div(ui-view)
|
2013-10-28 05:27:07 +00:00
|
|
|
|
2013-10-31 21:37:04 +00:00
|
|
|
script(type='text/ng-template', id='partials/options.social.html')
|
2013-10-28 05:27:07 +00:00
|
|
|
ul.nav.nav-tabs
|
2013-10-31 21:37:04 +00:00
|
|
|
li(ng-class="{ active: $state.includes('options.social.tavern') }")
|
|
|
|
|
a(ui-sref='options.social.tavern')
|
2013-10-28 05:27:07 +00:00
|
|
|
i.icon-eye-close
|
|
|
|
|
| Tavern
|
2013-10-31 21:37:04 +00:00
|
|
|
li(ng-class="{ active: $state.includes('options.social.party') }")
|
|
|
|
|
a(ui-sref='options.social.party')
|
2013-10-28 05:27:07 +00:00
|
|
|
| Party
|
2013-10-31 21:37:04 +00:00
|
|
|
li(ng-class="{ active: $state.includes('options.social.guilds') }")
|
|
|
|
|
a(ui-sref='options.social.guilds')
|
2013-10-28 05:27:07 +00:00
|
|
|
| Guilds
|
2013-10-31 21:37:04 +00:00
|
|
|
li(ng-class="{ active: $state.includes('options.social.challenges') }")
|
|
|
|
|
a(ui-sref='options.social.challenges')
|
|
|
|
|
i.icon-bullhorn
|
|
|
|
|
| Challenges
|
2013-08-30 00:18:39 +00:00
|
|
|
|
2013-10-28 05:27:07 +00:00
|
|
|
.tab-content
|
|
|
|
|
.tab-pane.active
|
|
|
|
|
div(ui-view)
|