2013-08-31 21:47:03 +00:00
a.pull-right.gem-wallet(rel='popover', data-trigger='hover', data-title='Guild Bank', data-content='Gems which your Guild leader can use for prizes in the upcoming <a target=_blank href="https://trello.com/card/challenges-individual-party-guild-public/50e5d3684fe3a7266b0036d6/58">Challenges</a> feature.', data-placement='bottom', data-html='true')
2013-08-30 00:18:39 +00:00
// <span class="task-action-btn tile flush bright add-gems-btn">+ </span>
span.task-action-btn.tile.flush.neutral
.Gems
2013-09-06 03:28:30 +00:00
| {{group.balance * 4 | number:0 }} Guild Gems
2013-08-30 00:18:39 +00:00
.row-fluid
.span4
2013-09-09 20:15:57 +00:00
2013-09-09 20:34:41 +00:00
// ------ Information -------
.modal(style='position: relative;top: auto;left: auto;right: auto;margin: 0 auto 20px;z-index: 1;max-width: 100%;')
.modal-header
h3 {{group.name}}
.modal-body
div.whatever-options(ng-show='_editing.group')
.control-group.option-large
label.control-label Group Name
input.option-content(type='text', ng-model='group.name', placeholder='Group Name')
.control-group.option-large
label.control-label Description
textarea.option-content(style='height:15em;', placeholder='Description', ng-model='group.description')
.control-group.option-large
label.control-label Logo URL
input.option-content(type='url', placeholder='Logo URL', ng-model='group.logo')
.control-group.option-large
form.form-inline(x-bind='submit:groupAddWebsite', ng-submit='notPorted()')
input.option-content(type='url', placeholder='Website', value='{{_newGroupWebsite}}')
input.btn(type='submit', value='Add')
2013-09-09 20:15:57 +00:00
2013-09-09 20:34:41 +00:00
h4 Assign Group Leader
select#group-leader-selection
option(ng-repeat='member in group.members', selected='member._id == _new.groupLeader') {{username(member.auth,member.profile.name)}}
button(x-bind='click:assignGroupLeader', ng-click='notPorted()') Assign
2013-09-09 20:15:57 +00:00
2013-09-09 20:34:41 +00:00
div(ng-show='group.websites')
h4 Resources
ul.unstyled
li
a(ng-repeat='website in group.websites', x-bind='click:removeAt', ng-click='notPorted()')
i.icon-trash
a(target='_blank', href='{{website}}') {{website}}
2013-09-09 20:15:57 +00:00
2013-09-09 20:34:41 +00:00
div(ng-show='!_editing.group')
img.pull-right(ng-show='group.logo', style='max-width:150px', ng-src='{{group.logo}}')
markdown(ng-model='group.description')
div(ng-show='group.websites')
h4 Websites
ul.unstyled
li(ng-repeat='website in group.websites')
a(target='_blank', ng-href='{{website}}') {{website}}
2013-08-30 00:18:39 +00:00
2013-09-09 20:34:41 +00:00
// ------ Information -------
.modal(style='position: relative;top: auto;left: auto;right: auto;margin: 0 auto 20px;z-index: 1;max-width: 100%;')
.modal-header
h3 Members
.modal-body
table.table.table-striped
tr(ng-repeat='member in group.members')
td
// allow leaders to ban members
div(ng-show='group.leader == user.id && user.id!=member._id')
// {{#with group.members[$index]}}
a(x-bind='click:removeAt', data-refresh='true', data-confirm='Boot this member?')
i.icon-ban-circle(tooltip='Boot Member')
// {{/}}
a(data-toggle='modal', data-target='#avatar-modal-{{member._id}}')
span(ng-class='{"badge badge-info": group.leader==member._id}')
| {{username(member.auth, member.profile.name)}}
td ({{member._id}})
.modal-footer.whatever-options
form.form-inline(ng-submit='invite(group, invitee)')
//.alert.alert-danger(ng-show='_groupError') {{_groupError}}
.control-group.option-large
input.option-content(type='text', placeholder='User Id', ng-model='invitee')
input.btn(type='submit', value='Invite')
2013-08-30 00:18:39 +00:00
2013-09-09 20:34:41 +00:00
//-accordion-group(heading='Challenges')
span.label
i.icon-bullhorn
| Challenges
| coming soon!
a(target='_blank', href='https://trello.com/card/challenges-individual-party-guild-public/50e5d3684fe3a7266b0036d6/58') Details
//-{#if group.challenges}
//- <table class="table table-striped">
//- {#each group.challenges as :challenge}
//- <tr><td>
//- {:challenge.name}
//- </td></tr>
//- {/}
//- </table>
//- Visit the <span class=label><i class=icon-bullhorn></i> Challenges</span> for more information.
//-{else}
//- No challenges yet, visit the <span class=label><i class=icon-bullhorn></i> Challenges</span> tab to create one.
//-{/}
2013-09-01 03:41:01 +00:00
a.btn.btn-danger(data-id='{{group.id}}', ng-click='leave(group)') Leave
2013-08-30 00:18:39 +00:00
.span8
2013-09-09 20:15:57 +00:00
div(ng-if='group.leader == user.id')
div.blah-options(ng-show='_editing.group')
button.btn.btn-primary.pull-right(ng-click='_editing.group = false') Save
2013-08-30 00:18:39 +00:00
i.icon-ok
2013-09-09 20:15:57 +00:00
.option-large
textarea.option-content(style='height:15em;', placeholder='Message from group leader', ng-model='group.leaderMessage')
div(ng-hide='_editing.group')
button.btn.btn-default.pull-right(ng-click='_editing.group = true') Edit Group
2013-08-30 00:18:39 +00:00
table(ng-show='group.leaderMessage')
tr
td
2013-09-09 20:15:57 +00:00
app:avatar:avatar(profile='{{Members.members[group.leader]}}')
2013-08-30 00:18:39 +00:00
td
.popover.static-popover.fade.right.in
.arrow
2013-09-09 20:15:57 +00:00
h3.popover-title {{username(Members.members[group.leader].auth, Members.members[group.leader].profile.name)}}
.popover-content
markdown(ng-model='group.leaderMessage')
2013-09-07 01:03:44 +00:00
div(ng-controller='ChatCtrl')
h3 Chat
include ./chat-box
2013-08-30 00:18:39 +00:00
2013-09-07 01:03:44 +00:00
ul.unstyled.tavern-chat
include ./chat-message