div
b-modal#profile(title="Profile", size='lg', :hide-footer="true")
div(slot='modal-header')
.profile-actions
button.btn.btn-secondary(@click='sendMessage()')
.svg-icon.message-icon(v-html="icons.message")
button.btn.btn-secondary(v-if='userLoggedIn.inbox.blocks.indexOf(user._id) === -1', :tooltip="$t('unblock')",
@click="blockUser()", tooltip-placement='right')
span.glyphicon.glyphicon-plus
| {{$t('block')}}
button.btn.btn-secondary(v-if='user._id !== this.userLoggedIn._id && userLoggedIn.inbox.blocks.indexOf(user._id) !== -1',
:tooltip="$t('unblock')", @click="unblockUser()", tooltip-placement='right')
span.glyphicon.glyphicon-ban-circle
| {{$t('unblock')}}
button.btn.btn-secondary(@click='openSendGemsModal()')
.svg-icon.gift-icon(v-html="icons.gift")
.row
.col-12
member-details(:member="user")
.row
.col-6.offset-3.text-center.nav
.nav-item(@click='selectedPage = "profile"', :class="{active: selectedPage === 'profile'}") Profile
.nav-item(@click='selectedPage = "stats"', :class="{active: selectedPage === 'stats'}") Stats
.nav-item(@click='selectedPage = "achievements"', :class="{active: selectedPage === 'achievements'}") Achievements
#userProfile.standard-page(v-show='selectedPage === "profile"', v-if='user.profile')
.row
.col-8
.header
h1 {{user.profile.name}}
h4
strong User Id:
| {{user._id}}
.col-4
button.btn.btn-secondary(v-if='user._id === userLoggedIn._id', @click='editing = !editing') Edit
.row(v-if='!editing')
.col-8
.about
h2 About
p(v-markdown='user.profile.blurb')
.photo
h2 Photo
img.img-rendering-auto(v-if='user.profile.imageUrl', :src='user.profile.imageUrl')
.col-4
.info
h2 info
div
strong Joined:
| {{user.auth.timestamps.created}}
div
strong Total Log Ins:
span {{ $t('totalCheckins', {count: user.loginIncentives}) }}
div
| {{getProgressDisplay()}}
.progress
.progress-bar(role='progressbar', :aria-valuenow='incentivesProgress', aria-valuemin='0', aria-valuemax='100', :style='{width: incentivesProgress + "%"}')
span.sr-only {{ incentivesProgress }}% Complete
// @TODO: Implement in V2 .social
.row(v-if='editing')
h1 Edit Profile
.col-12
.alert.alert-info.alert-sm(v-html='$t("communityGuidelinesWarning", managerEmail)')
// TODO use photo-upload instead: https://groups.google.com/forum/?fromgroups=#!topic/derbyjs/xMmADvxBOak
.form-group
label {{ $t('displayName') }}
input.form-control(type='text', :placeholder="$t('fullName')", v-model='editingProfile.name')
.form-group
label {{ $t('photoUrl') }}
input.form-control(type='url', v-model='editingProfile.imageUrl', :placeholder="$t('imageUrl')")
.form-group
label {{ $t('about') }}
textarea.form-control(rows=5, :placeholder="$t('displayBlurbPlaceholder')", v-model='editingProfile.blurb')
// include ../../shared/formatting-help
//- .form-group
//- label Facebook
//- input.form-control(type='text', placeholder="Paste your link here", v-model='editingProfile.facebook')
//- .form-group
//- label Instagram
//- input.form-control(type='text', placeholder="Paste your link here", v-model='editingProfile.instagram')
//- .form-group
//- label Twitter
//- input.form-control(type='text', placeholder="Paste your link here", v-model='editingProfile.twitter')
.col-12.text-center
button.btn.btn-primary(@click='save()') {{ $t("save") }}
button.btn.btn-warning(@click='editing = false') {{ $t("cancel") }}
#achievements.standard-page.container(v-show='selectedPage === "achievements"', v-if='user.achievements')
.row(v-for='(category, key) in achievements')
h2.col-12.text-center {{ $t(key+'Achievs') }}
.col-3.text-center(v-for='(achievment, key) in category.achievements')
.box.achievement-container(:id='key', :class='{"achievement-unearned": !achievment.earned}')
b-popover(:target="'#' + key", triggers="hover", placement="top", :content="achievment.title + achievment.text")
.achievement(:class='achievment.icon + "2x"', v-if='achievment.earned')
.counter.badge.badge-info.stack-count(v-if='achievment.optionalCount') {{achievment.optionalCount}}
.achievement.achievement-unearned(class='achievement-unearned2x', v-if='!achievment.earned')
hr.col-12
.row
.col-6(v-if='user.achievements.challenges')
.achievement-icon.achievement-alien
h2.text-center Challeges Won
div(v-for='chal in user.achievements.challenges')
span {{chal}}
hr
.col-6(v-if='user.achievements.quests')
.achievement-icon.achievement-karaoke
h2.text-center Quests Completed
div(v-for='(value, key) in user.achievements.quests')
span {{ content.quests[key].text() }}
span {{ value }}
#stats.standard-page(v-show='selectedPage === "stats"', v-if='user.preferences')
.row
.col-6
h2.text-center Equipment
.well
.col-4.item-wrapper
.box(:class='{white: equippedItems.eyewear}')
div(:class="`shop_${equippedItems.eyewear}`")
h3 Eyewear
.col-4.item-wrapper
.box(:class='{white: equippedItems.head}')
div(:class="`shop_${equippedItems.head}`")
h3 Head Gear
.col-4.item-wrapper
.box(:class='{white: equippedItems.headAccessory}')
div(:class="`shop_${equippedItems.headAccessory}`")
h3 Head Access.
.col-4.item-wrapper
.box(:class='{white: equippedItems.backAccessory}')
div(:class="`shop_${equippedItems.backAccessory}`")
h3 Back Access.
.col-4.item-wrapper
.box(:class='{white: equippedItems.armor}')
div(:class="`shop_${equippedItems.armor}`")
h3 Armor
.col-4.item-wrapper
.box(:class='{white: equippedItems.bodyAccessory}')
div(:class="`shop_${equippedItems.bodyAccessory}`")
h3 Body Access.
.col-4.item-wrapper
.box(:class='{white: equippedItems.weapon}')
div(:class="`shop_${equippedItems.weapon}`")
h3 Main-Hand
.col-4.item-wrapper
.col-4.item-wrapper
.box(:class='{white: equippedItems.shield}')
div(:class="`shop_${equippedItems.shield}`")
h3 Off-Hand
.col-6
h2.text-center Costume
.well
.col-4.item-wrapper
.box(:class='{white: costumeItems.eyewear}')
div(:class="`shop_${costumeItems.eyewear}`")
h3 Eyewear
.col-4.item-wrapper
.box(:class='{white: costumeItems.head}')
div(:class="`shop_${costumeItems.head}`")
h3 Head Gear
.col-4.item-wrapper
.box(:class='{white: costumeItems.headAccessory}')
div(:class="`shop_${costumeItems.headAccessory}`")
h3 Head Access.
.col-4.item-wrapper
.box(:class='{white: costumeItems.backAccessory}')
div(:class="`shop_${costumeItems.backAccessory}`")
h3 Back Access.
.col-4.item-wrapper
.box(:class='{white: costumeItems.armor}')
div(:class="`shop_${costumeItems.armor}`")
h3 Armor
.col-4.item-wrapper
.box(:class='{white: costumeItems.bodyAccessory}')
div(:class="`shop_${costumeItems.bodyAccessory}`")
h3 Body Access.
.col-4.item-wrapper
.box(:class='{white: costumeItems.weapon}')
div(:class="`shop_${costumeItems.weapon}`")
h3 Main-Hand
.col-4.item-wrapper
.box(:class='{white: user.preferences.background}')
div(:class="user.preferences.background")
h3 Background
.col-4.item-wrapper
.box(:class='{white: costumeItems.shield}')
div(:class="`shop_${costumeItems.shield}`")
h3 Off-Hand
.row.pet-mount-row
.col-6
h2.text-center(v-once) {{ $t('pets') }}
.well.pet-mount-well
.row.col-12
.col-4
.box(:class='{white: user.items.currentPet}')
div(:class="user.items.currentPet")
.col-8
div
| {{ formatAnimal(user.items.currentPet, 'pet') }}
div
strong {{ $t('petsFound') }}:
| {{ totalCount(user.items.pets) }}
div
strong {{ $t('beastMasterProgress') }}:
| {{ beastMasterProgress(user.items.pets) }}
.col-6
h2.text-center(v-once) {{ $t('mounts') }}
.well.pet-mount-well
.row.col-12
.col-4
.box(:class='{white: user.items.currentMount}')
div(:class="user.items.currentMount")
.col-8
div
| {{ formatAnimal(user.items.currentMount, 'mount') }}
div
strong {{ $t('mountsTamed') }}:
span {{ totalCount(user.items.mounts) }}
div
strong {{ $t('mountMasterProgress') }}:
span {{ mountMasterProgress(user.items.mounts) }}
#attributes.row
hr.col-12
h2.col-12 Attributes
.col-6(v-for="(statInfo, stat) in stats")
.row.col-12.stats-column
.col-4.attribute-label
span.hint(:popover-title='$t(statInfo.title)', popover-placement='right',
:popover='$t(statInfo.popover)', popover-trigger='mouseenter')
.stat-title(:class='stat') {{ $t(statInfo.title) }}
strong.number {{ statsComputed[stat] }}
.col-6
ul.bonus-stats
li
strong Level:
| {{statsComputed.levelBonus[stat]}}
li
strong Equipment:
| {{statsComputed.gearBonus[stat]}}
li
strong Class:
| {{statsComputed.classBonus[stat]}}
li
strong Allocated:
| {{user.stats[stat]}}
li
strong Buffs:
| {{user.stats.buffs[stat]}}
#allocation(v-if='user._id === userLoggedIn._id')
.row.title-row
.col-6
h3(v-if='userLevel100Plus', v-once) {{ $t('noMoreAllocate') }}
h3(v-if='user.stats.points || userLevel100Plus')
| Points Available
.counter.badge(v-if='user.stats.points || userLevel100Plus')
| {{user.stats.points}}
.col-6
.float-right
toggle-switch(:label="$t('autoAllocation')", v-model='user.preferences.automaticAllocation', @change='userset({"preferences.automaticAllocation": Boolean(user.preferences.automaticAllocation), "preferences.allocationMode": "taskbased"})')
.row
.col-3(v-for='(statInfo, stat) in allocateStatsList')
.box.white.row.col-12
.col-8
div(:class='stat') {{ $t(stats[stat].title) }}
.number {{ user.stats[stat] }}
.points pts
.col-4
.up(v-if='user.stats.points', @click='allocate(stat)')
private-message-modal(:userIdToMessage='userIdToMessage')
send-gems-modal(:userReceivingGems='userReceivingGems')