2014-11-27 10:32:57 +00:00
|
|
|
script(type='text/ng-template', id='modals/member.html')
|
|
|
|
|
.modal-header
|
2014-02-05 15:51:35 +00:00
|
|
|
h4
|
2014-11-27 10:32:57 +00:00
|
|
|
span {{::profile.profile.name}}
|
2015-05-16 04:08:26 +00:00
|
|
|
span(ng-if='::contribText && profile.contributor.level') - {{::contribText(profile.contributor, profile.backer)}}
|
2014-11-27 10:32:57 +00:00
|
|
|
.modal-body
|
2014-02-05 15:51:35 +00:00
|
|
|
.container-fluid
|
|
|
|
|
.row
|
|
|
|
|
.col-md-6
|
2015-08-29 02:48:42 +00:00
|
|
|
img.image-rendering-auto(ng-show='::profile.profile.imageUrl', ng-src='{{::profile.profile.imageUrl}}')
|
2015-01-01 19:57:57 +00:00
|
|
|
markdown(ng-show='::profile.profile.blurb', text='::profile.profile.blurb')
|
2014-11-27 10:32:57 +00:00
|
|
|
ul.muted.list-unstyled(ng-if='::profile.auth.timestamps')
|
2014-02-05 15:51:35 +00:00
|
|
|
li {{profile._id}}
|
2014-11-27 10:32:57 +00:00
|
|
|
li(ng-show='::profile.auth.timestamps.created')
|
2014-02-11 18:30:55 +00:00
|
|
|
|
|
2014-03-10 01:29:32 +00:00
|
|
|
=env.t('memberSince')
|
|
|
|
|
|
|
2014-12-25 03:18:50 +00:00
|
|
|
| {{::profile.auth.timestamps.created | date:user.preferences.dateFormat}} -
|
2014-11-27 10:32:57 +00:00
|
|
|
li(ng-show='::profile.auth.timestamps.loggedin')
|
2014-02-11 18:30:55 +00:00
|
|
|
|
|
2014-03-10 01:29:32 +00:00
|
|
|
=env.t('lastLoggedIn')
|
|
|
|
|
|
|
2014-12-25 03:18:50 +00:00
|
|
|
| {{::profile.auth.timestamps.loggedin | date:user.preferences.dateFormat}} -
|
2014-02-05 15:51:35 +00:00
|
|
|
h3=env.t('stats')
|
2015-05-16 04:08:26 +00:00
|
|
|
// @TODO: Figure out why this isn't showing up in front page
|
2014-11-27 10:32:57 +00:00
|
|
|
.label.label-info {{:: {warrior:env.t("warrior"), wizard:env.t("mage"), rogue:env.t("rogue"), healer:env.t("healer")}[profile.stats.class] }}
|
2014-02-05 15:51:35 +00:00
|
|
|
include ../profiles/stats
|
|
|
|
|
.col-md-6
|
2014-11-27 10:32:57 +00:00
|
|
|
.row
|
|
|
|
|
+herobox()
|
|
|
|
|
.row
|
|
|
|
|
h3=env.t('achievements')
|
|
|
|
|
include ../profiles/achievements
|
2014-01-29 21:18:13 +00:00
|
|
|
.modal-footer
|
2014-11-27 10:32:57 +00:00
|
|
|
.btn-group.pull-left(ng-if='::user')
|
2015-02-01 21:26:16 +00:00
|
|
|
button.btn.btn-md.btn-default(ng-if='user.inbox.blocks | contains:profile._id', tooltip=env.t('unblock'), ng-click="user.ops.blockUser({params:{uuid:profile._id}})", tooltip-placement='right')
|
2014-11-27 10:32:57 +00:00
|
|
|
span.glyphicon.glyphicon-plus
|
2015-02-01 21:26:16 +00:00
|
|
|
button.btn.btn-md.btn-default(ng-if='profile._id != user._id && !profile.contributor.admin && !(user.inbox.blocks | contains:profile._id)', tooltip=env.t('block'), ng-click="user.ops.blockUser({params:{uuid:profile._id}})", tooltip-placement='right')
|
2014-11-27 10:32:57 +00:00
|
|
|
span.glyphicon.glyphicon-ban-circle
|
|
|
|
|
button.btn.btn-md.btn-default(tooltip=env.t('sendPM'), ng-click="openModal('private-message',{controller:'MemberModalCtrl'})", tooltip-placement='right')
|
|
|
|
|
span.glyphicon.glyphicon-envelope
|
2015-05-21 12:12:16 +00:00
|
|
|
button.btn.btn-md.btn-default(tooltip=env.t('sendGift'), ng-click="openModal('send-gift',{controller:'MemberModalCtrl'})", tooltip-placement='right')
|
2014-11-25 21:53:52 +00:00
|
|
|
span.glyphicon.glyphicon-gift
|
2014-11-27 10:32:57 +00:00
|
|
|
button.btn.btn-default(ng-click='$close()')=env.t('close')
|
|
|
|
|
|
|
|
|
|
script(type='text/ng-template', id='modals/private-message.html')
|
|
|
|
|
.modal-header
|
|
|
|
|
h4=env.t('pmHeading', {name: "{{profile.profile.name}}"})
|
|
|
|
|
.modal-body
|
2015-04-05 13:24:46 +00:00
|
|
|
textarea.form-control(type='text',rows='5',ui-keydown='{"meta-enter":"sendPrivateMessage(profile._id, _message)"}',placeholder=env.t('needsTextPlaceholder'),ng-model='_message', focus-me)
|
2015-05-24 02:51:40 +00:00
|
|
|
include ../formatting-help
|
2014-11-27 10:32:57 +00:00
|
|
|
.modal-footer
|
2015-03-22 16:37:32 +00:00
|
|
|
//- Due to a quirk in Bootstrap UI, we need to wrap this so the tooltip can
|
2015-03-28 05:21:39 +00:00
|
|
|
//- appear when the button is disabled.
|
|
|
|
|
//
|
|
|
|
|
//- Source: http://getbootstrap.com/javascript/#tooltips
|
|
|
|
|
// "Tooltips on disabled elements require wrapper elements"
|
|
|
|
|
//
|
|
|
|
|
.disabled-tooltip-wrapper(tooltip="{{_message ? '' : env.t('needsText')}}")
|
2015-03-22 16:37:32 +00:00
|
|
|
button.btn.btn-primary(ng-disabled='!_message',ng-click='sendPrivateMessage(profile._id, _message)')=env.t("send")
|
2014-11-27 10:32:57 +00:00
|
|
|
button.btn.btn-default(ng-click='$close()')=env.t('cancel')
|
2014-11-25 21:53:52 +00:00
|
|
|
|
|
|
|
|
script(type='text/ng-template', id='modals/send-gift.html')
|
|
|
|
|
.modal-header
|
2015-05-26 14:02:25 +00:00
|
|
|
h4=env.t('sendGiftHeading', {name: "{{::profile.profile.name}}"})
|
2014-11-25 21:53:52 +00:00
|
|
|
.modal-body
|
|
|
|
|
.panel.panel-default(class="{{gift.type=='gems' ? 'panel-primary' : 'transparent'}}", ng-click='gift.type="gems"')
|
|
|
|
|
.panel-heading
|
|
|
|
|
.pull-right
|
2015-05-26 14:02:25 +00:00
|
|
|
span(ng-show='gift.gems.fromBalance')=env.t('sendGiftGemsBalance', {number: "{{::user.balance*4}}"})
|
2015-05-26 12:18:18 +00:00
|
|
|
span(ng-hide='gift.gems.fromBalance')=env.t('sendGiftCost', {cost: "{{gift.gems.amount/4}}"})
|
|
|
|
|
=env.t('gemsPopoverTitle')
|
2014-11-25 21:53:52 +00:00
|
|
|
.panel-body
|
|
|
|
|
.row
|
|
|
|
|
.col-md-6
|
|
|
|
|
.form-group
|
|
|
|
|
input.form-control(type='number', placeholder='Number of Gems', min='0', max='{{gift.gems.fromBalance ? user.balance*4 : ""}}', ng-model='gift.gems.amount')
|
|
|
|
|
.col-md-6
|
|
|
|
|
.btn-group
|
2015-05-26 12:18:18 +00:00
|
|
|
a.btn.btn-default(ng-class="{active:gift.gems.fromBalance}", ng-click="gift.gems.fromBalance=true")=env.t('sendGiftFromBalance')
|
|
|
|
|
a.btn.btn-default(ng-class="{active:!gift.gems.fromBalance}", ng-click="gift.gems.fromBalance=false")=env.t('sendGiftPurchase')
|
2014-11-25 21:53:52 +00:00
|
|
|
|
|
|
|
|
.panel.panel-default(class="{{gift.type=='subscription' ? 'panel-primary' : 'transparent'}}", ng-click='gift.type="subscription"')
|
2015-05-26 12:18:18 +00:00
|
|
|
.panel-heading=env.t('subscription')
|
2014-11-25 21:53:52 +00:00
|
|
|
.panel-body
|
|
|
|
|
.form-group
|
2014-12-21 03:47:16 +00:00
|
|
|
.radio(ng-repeat='block in Content.subscriptionBlocks | toArray | omit:"discount==true" | orderBy:"months"')
|
|
|
|
|
label
|
|
|
|
|
input(type="radio", name="subRadio", ng-value="block.key", ng-model='gift.subscription.key')
|
2015-05-26 14:02:25 +00:00
|
|
|
=env.t('sendGiftSubscription', {price: '{{::block.price}}', months: '{{::block.months}}'})
|
2014-11-27 01:13:25 +00:00
|
|
|
|
2015-05-26 12:18:18 +00:00
|
|
|
textarea.form-control(rows='3', ng-model='gift.message', placeholder=env.t('sendGiftMessagePlaceholder'))
|
2015-05-24 13:34:02 +00:00
|
|
|
include ../formatting-help
|
2014-11-25 21:53:52 +00:00
|
|
|
|
|
|
|
|
.modal-footer
|
|
|
|
|
- var fromBal = "gift.type=='gems' && gift.gems.fromBalance"
|
|
|
|
|
button.btn.btn-primary(ng-show=fromBal, ng-click='sendGift(profile._id, gift)')=env.t("send")
|
2014-11-30 21:01:58 +00:00
|
|
|
a.btn.btn-primary(ng-hide=fromBal, ng-click='Payments.showStripe({gift:gift, uuid:profile._id})')=env.t('card')
|
2014-12-03 23:43:27 +00:00
|
|
|
a.btn.btn-warning(ng-hide=fromBal, href='/paypal/checkout?_id={{::user._id}}&apiToken={{::user.apiToken}}&gift={{Payments.encodeGift(profile._id, gift)}}') PayPal
|
2015-07-15 17:39:13 +00:00
|
|
|
.btn.btn-success(ng-hide=fromBal, ng-click="Payments.amazonPayments.init({type: 'single', gift: gift, giftedTo: profile._id})") Amazon Payments
|
2014-12-05 03:42:41 +00:00
|
|
|
button.btn.btn-default(ng-click='$close()')=env.t('cancel')
|
|
|
|
|
|
2014-12-05 04:00:48 +00:00
|
|
|
script(type='text/ng-template', id='modals/abuse-flag.html')
|
2014-12-05 03:42:41 +00:00
|
|
|
.modal-header
|
2014-12-05 04:02:34 +00:00
|
|
|
h4!=env.t('abuseFlagModalHeading', {name: "<span class='text-danger'>{{profile.profile.name}}</span>"})
|
2014-12-05 03:42:41 +00:00
|
|
|
.modal-body
|
2014-12-06 04:14:48 +00:00
|
|
|
blockquote
|
2015-01-01 19:57:57 +00:00
|
|
|
markdown(text="abuseObject.text")
|
2014-12-06 04:09:56 +00:00
|
|
|
p!=env.t('abuseFlagModalBody', {firstLinkStart: "<a href='/static/community-guidelines' target='_blank'>", secondLinkStart: "<a href='/static/terms' target='_blank'>", linkEnd: "</a>"})
|
2014-12-05 03:42:41 +00:00
|
|
|
.modal-footer
|
2014-12-12 03:49:42 +00:00
|
|
|
button.pull-left.btn.btn-danger(ng-click='clearFlagCount(abuseObject, groupId)', ng-if='user.contributor.admin && abuseObject.flagCount >= 2')
|
2014-12-11 23:29:01 +00:00
|
|
|
| Reset Flag Count
|
2014-12-05 12:41:40 +00:00
|
|
|
button.btn.btn-primary(ng-click='$close()')=env.t('cancel')
|
2015-07-11 11:23:39 +00:00
|
|
|
button.btn.btn-danger(ng-click='reportAbuse(user, abuseObject, groupId)')=env.t("abuseFlagModalButton")
|
2015-03-16 18:42:03 +00:00
|
|
|
|
|
|
|
|
script(type='text/ng-template', id='modals/remove-member.html')
|
|
|
|
|
.modal-header
|
|
|
|
|
h4=env.t('sureKick')
|
|
|
|
|
.modal-body
|
2015-03-18 18:12:53 +00:00
|
|
|
textarea.form-control(type='text',rows='5',placeholder=env.t('optionalMessage'),ng-model='removeMemberData.message')
|
2015-03-16 18:42:03 +00:00
|
|
|
.modal-footer
|
2015-03-18 18:12:53 +00:00
|
|
|
button.pull-left.btn.btn-danger(ng-click='confirmRemoveMember(true); $close()')=env.t('yesRemove')
|
2015-03-19 16:49:46 +00:00
|
|
|
button.btn.btn-default(ng-click='confirmRemoveMember(false); $close()')=env.t('cancel')
|