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
|
2014-01-06 01:03:47 +00:00
|
|
|
include ./hall.jade
|
2014-06-07 00:45:38 +00:00
|
|
|
include ./boss.jade
|
2013-10-31 21:37:04 +00:00
|
|
|
|
|
|
|
|
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')
|
2014-06-07 00:45:38 +00:00
|
|
|
div(ng-if='group._id')
|
2013-10-28 05:27:07 +00:00
|
|
|
include ./group
|
2014-06-07 00:45:38 +00:00
|
|
|
div(ng-if='!group._id')
|
2013-12-17 19:12:28 +00:00
|
|
|
div(ng-show='user.invitations.party.id')
|
2014-02-16 13:51:48 +00:00
|
|
|
h2=env.t('invitedTo', {name: '{{user.invitations.party.name}}'})
|
2014-01-22 22:43:58 +00:00
|
|
|
a.btn.btn-success(data-type='party', ng-click='join(user.invitations.party)')=env.t('accept')
|
|
|
|
|
a.btn.btn-danger(ng-click='reject()')=env.t('reject')
|
2013-12-17 19:12:28 +00:00
|
|
|
div(ng-hide='user.invitations.party.id')
|
2014-01-22 22:43:58 +00:00
|
|
|
h2=env.t('createAParty')
|
2013-10-28 05:27:07 +00:00
|
|
|
p
|
2014-01-22 22:43:58 +00:00
|
|
|
=env.t('noPartyText')
|
2013-10-28 05:27:07 +00:00
|
|
|
pre.prettyprint.
|
|
|
|
|
{{user.id}}
|
2014-02-10 13:37:31 +00:00
|
|
|
p
|
|
|
|
|
=env.t('startLFG')
|
2014-04-03 16:17:07 +00:00
|
|
|
|
|
2014-02-10 13:37:31 +00:00
|
|
|
a(href="http://habitrpg.wikia.com/wiki/Board:The_Archery_-_LFG")=env.t('linkLFG')
|
2014-04-03 16:17:07 +00:00
|
|
|
|
|
2014-02-10 13:37:31 +00:00
|
|
|
=env.t('endLFG')
|
2013-10-28 05:27:07 +00:00
|
|
|
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')
|
2014-02-16 13:51:48 +00:00
|
|
|
h3=env.t('invitedTo', {name: '{{invitation.name}}'})
|
2014-01-22 22:43:58 +00:00
|
|
|
a.btn.btn-success(data-type='guild', ng-click='join(invitation)')=env.t('accept')
|
|
|
|
|
a.btn.btn-danger(ng-click='reject(invitation)')=env.t('reject')
|
2013-10-29 22:25:50 +00:00
|
|
|
// Public Groups
|
2014-02-05 18:05:42 +00:00
|
|
|
.col-md-3
|
|
|
|
|
input.form-control(type='text',ng-model='guildSearch', placeholder=env.t('search'))
|
2013-10-29 22:25:50 +00:00
|
|
|
table.table.table-striped
|
|
|
|
|
tr(ng-repeat='group in groups.public | filter:guildSearch')
|
|
|
|
|
td
|
|
|
|
|
ul.pull-right.challenge-accordion-header-specs
|
2014-01-23 16:02:16 +00:00
|
|
|
li='{{group.memberCount}} ' + env.t('members')
|
2013-10-29 22:25:50 +00:00
|
|
|
li
|
|
|
|
|
// join / leave
|
2014-02-08 15:27:34 +00:00
|
|
|
a.btn.btn-sm.btn-danger(ng-show='group._isMember', ng-click='clickLeave(group, $event)')
|
2014-01-31 18:47:48 +00:00
|
|
|
span.glyphicon.glyphicon-ban-circle
|
2014-01-22 22:43:58 +00:00
|
|
|
=env.t('leave')
|
2014-02-08 15:27:34 +00:00
|
|
|
a.btn.btn-sm.btn-success(ng-hide='group._isMember', ng-click='join(group)')
|
2014-01-31 18:47:48 +00:00
|
|
|
span.glyphicon.glyphicon-ok
|
2014-01-22 22:43:58 +00:00
|
|
|
=env.t('join')
|
2013-10-29 22:25:50 +00:00
|
|
|
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')
|
2014-04-15 22:40:21 +00:00
|
|
|
ul.options-submenu
|
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')
|
2014-01-22 22:43:58 +00:00
|
|
|
=env.t('publicGuilds')
|
2013-10-29 22:25:50 +00:00
|
|
|
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')
|
2014-01-22 22:43:58 +00:00
|
|
|
=env.t('createGuild')
|
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')
|
2014-04-15 22:40:21 +00:00
|
|
|
ul.options-menu
|
2013-10-31 21:37:04 +00:00
|
|
|
li(ng-class="{ active: $state.includes('options.social.tavern') }")
|
|
|
|
|
a(ui-sref='options.social.tavern')
|
2014-01-22 22:43:58 +00:00
|
|
|
=env.t('tavern')
|
2013-10-31 21:37:04 +00:00
|
|
|
li(ng-class="{ active: $state.includes('options.social.party') }")
|
|
|
|
|
a(ui-sref='options.social.party')
|
2014-01-22 22:43:58 +00:00
|
|
|
=env.t('party')
|
2013-10-31 21:37:04 +00:00
|
|
|
li(ng-class="{ active: $state.includes('options.social.guilds') }")
|
|
|
|
|
a(ui-sref='options.social.guilds')
|
2014-01-22 22:43:58 +00:00
|
|
|
=env.t('guilds')
|
2013-10-31 21:37:04 +00:00
|
|
|
li(ng-class="{ active: $state.includes('options.social.challenges') }")
|
|
|
|
|
a(ui-sref='options.social.challenges')
|
2014-01-22 22:43:58 +00:00
|
|
|
=env.t('challenges')
|
2014-01-06 01:03:47 +00:00
|
|
|
li(ng-class="{ active: $state.includes('options.social.hall') }")
|
|
|
|
|
a(ui-sref='options.social.hall')
|
2014-01-22 22:43:58 +00:00
|
|
|
=env.t('hall')
|
2013-08-30 00:18:39 +00:00
|
|
|
|
2013-10-28 05:27:07 +00:00
|
|
|
.tab-content
|
|
|
|
|
.tab-pane.active
|
2014-01-22 22:43:58 +00:00
|
|
|
div(ui-view)
|