2014-01-06 01:03:47 +00:00
|
|
|
script(type='text/ng-template', id='partials/options.social.hall.html')
|
|
|
|
|
ul.nav.nav-tabs
|
|
|
|
|
li(ng-class="{ active: $state.includes('options.social.hall.heroes') }")
|
|
|
|
|
a(ui-sref='options.social.hall.heroes')
|
2014-01-22 22:34:06 +00:00
|
|
|
=env.t('hallHeroes')
|
2014-01-06 01:03:47 +00:00
|
|
|
li(ng-class="{ active: $state.includes('options.social.hall.patrons') }")
|
|
|
|
|
a(ui-sref='options.social.hall.patrons')
|
2014-01-22 22:34:06 +00:00
|
|
|
=env.t('hallPatrons')
|
2014-01-06 01:03:47 +00:00
|
|
|
|
|
|
|
|
.tab-content
|
|
|
|
|
.tab-pane.active
|
|
|
|
|
div(ui-view)
|
|
|
|
|
|
|
|
|
|
script(type='text/ng-template', id='partials/options.social.hall.heroes.html')
|
|
|
|
|
div.well(ng-if='user.contributor.admin')
|
2014-01-22 22:34:06 +00:00
|
|
|
h2=env.t('rewardUser')
|
2014-01-06 01:03:47 +00:00
|
|
|
form.form-horizontal(ng-submit='loadHero(_heroID)')
|
|
|
|
|
.-options
|
|
|
|
|
.option-group.option-large
|
2014-01-22 22:34:06 +00:00
|
|
|
input.option-content(type='text', ng-model='_heroID', placeholder=env.t('UUID'))
|
|
|
|
|
button.btn(type='submit')=env.t('loadUser')
|
2014-01-06 01:03:47 +00:00
|
|
|
form.form-horizontal(ng-show='hero', ng-submit='saveHero(hero)')
|
|
|
|
|
h3 {{hero.profile.name}}
|
|
|
|
|
.-options
|
|
|
|
|
.control-group.option-large
|
2014-01-22 22:34:06 +00:00
|
|
|
input.option-content(type='text', ng-model='hero.contributor.text', placeholder=env.t('conTitle'))
|
2014-01-06 01:03:47 +00:00
|
|
|
.control-group.option-medium
|
|
|
|
|
input.option-content(type='number', step="any", ng-model='hero.contributor.level')
|
2014-01-22 22:34:06 +00:00
|
|
|
span.input-suffix =env.t('conLevel')
|
2014-01-06 01:03:47 +00:00
|
|
|
br
|
2014-01-22 22:34:06 +00:00
|
|
|
small=env.t('conText')
|
|
|
|
|
a(target='_blank', href='https://trello.com/c/wkFzONhE/277-contributor-gear')=env.t('moreDetails')
|
2014-01-06 01:03:47 +00:00
|
|
|
.control-group.option-large
|
2014-01-22 22:34:06 +00:00
|
|
|
textarea.option-content(style='height:15em;', placeholder=env.t('contributions'), ng-model='hero.contributor.contributions')
|
2014-01-06 01:03:47 +00:00
|
|
|
//-include ../../shared/formatting-help
|
|
|
|
|
.control-group.option-medium
|
|
|
|
|
label.checkbox
|
|
|
|
|
input(type='checkbox', ng-model='hero.contributor.admin')
|
2014-01-22 22:34:06 +00:00
|
|
|
=env.t('admin')
|
2014-01-06 01:03:47 +00:00
|
|
|
|
|
|
|
|
hr
|
|
|
|
|
|
|
|
|
|
.control-group.option-medium
|
|
|
|
|
input.option-content(type='number', step="any", ng-model='hero.balance')
|
|
|
|
|
span.input-suffix Balance
|
|
|
|
|
p
|
2014-01-22 22:34:06 +00:00
|
|
|
small `user.balance` + =env.t('USD1') + '<em>' + =env.t('not') + '</em>' =env.t('USD2')
|
2014-01-06 01:03:47 +00:00
|
|
|
|
|
|
|
|
.control-group.option-medium
|
|
|
|
|
label.checkbox
|
|
|
|
|
input(type='checkbox', ng-model='hero.purchased.ads')
|
2014-01-22 22:34:06 +00:00
|
|
|
=env.t('hideads')
|
2014-01-06 01:03:47 +00:00
|
|
|
|
|
|
|
|
// h4 Backer Status
|
|
|
|
|
// Add backer stuff like tier, disable adds, etcs
|
2014-01-22 22:34:06 +00:00
|
|
|
button.btn-primary(type='submit')=env.t('save')
|
2014-01-06 01:03:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
table.table.table-striped
|
|
|
|
|
tr
|
|
|
|
|
thead
|
|
|
|
|
tr
|
2014-01-22 22:34:06 +00:00
|
|
|
th =env.t('name')
|
|
|
|
|
th(ng-if='user.contributor.admin')=env.t('UUID')
|
|
|
|
|
th =env.t('conLevel')
|
|
|
|
|
th =env.t('title')
|
|
|
|
|
th =env.t('contributions')
|
2014-01-06 01:03:47 +00:00
|
|
|
tr(ng-repeat='hero in heroes')
|
|
|
|
|
td
|
2014-01-22 22:34:06 +00:00
|
|
|
span(ng-if='hero.contributor.admin',popover=env.t('gamemaster'),popover-trigger='mouseenter',popover-placement='right')
|
2014-01-06 01:03:47 +00:00
|
|
|
a.label(class='label-contributor-{{hero.contributor.level}}', ng-class='{"label-npc": hero.backer.npc}', ng-click='clickMember(hero._id, true)')
|
2014-01-06 04:04:56 +00:00
|
|
|
| {{hero.profile.name}}
|
|
|
|
|
i.icon-star.icon-white
|
2014-01-06 01:03:47 +00:00
|
|
|
span(ng-if='!hero.contributor.admin')
|
|
|
|
|
a.label(class='label-contributor-{{hero.contributor.level}}', ng-class='{"label-npc": hero.backer.npc}', ng-click='clickMember(hero._id, true)') {{hero.profile.name}}
|
|
|
|
|
td(ng-if='user.contributor.admin') {{hero._id}}
|
|
|
|
|
td {{hero.contributor.level}}
|
|
|
|
|
td {{hero.contributor.text}}
|
|
|
|
|
td
|
|
|
|
|
markdown(ng-model='hero.contributor.contributions', target='_blank')
|
|
|
|
|
|
|
|
|
|
script(type='text/ng-template', id='partials/options.social.hall.patrons.html')
|
2014-01-06 02:58:19 +00:00
|
|
|
table.table.table-striped(infinite-scroll="loadMore()")
|
2014-01-06 01:03:47 +00:00
|
|
|
tr
|
|
|
|
|
thead
|
|
|
|
|
tr
|
2014-01-22 22:34:06 +00:00
|
|
|
th =env.t('name')
|
|
|
|
|
th(ng-if='user.contributor.admin')=env.t('UUID')
|
|
|
|
|
th =env.t('backertier')
|
2014-01-06 01:03:47 +00:00
|
|
|
tr(ng-repeat='patron in patrons')
|
|
|
|
|
td
|
|
|
|
|
a.label(class='label-contributor-{{patron.contributor.level}}', ng-class='{"label-npc": patron.backer.npc}', ng-click='clickMember(patron._id, true)') {{patron.profile.name}}
|
|
|
|
|
td(ng-if='user.contributor.admin') {{patron._id}}
|
2014-01-22 22:34:06 +00:00
|
|
|
td {{patron.backer.tier}}
|