don't show stats popover for main user

This commit is contained in:
Tyler Renelle 2013-05-03 10:56:51 +01:00
parent cda3a82b35
commit b3620f1db0
2 changed files with 4 additions and 4 deletions

View file

@ -11,9 +11,9 @@
data-name="{username(@profile.auth, @profile.profile.name)}"
data-level="{@profile.stats.lvl}"
data-checkpet="{#if @profile.items.pet}hasPet{/}"
data-checkuser="{{#if equal(@profile.id, _user.id)}}isUser{{/}}"
data-checkuser="{{#if @main}}isUser{{/}}"
data-uid="{{@profile.id}}" x-bind="click:profileChangeActive"
rel="popover" data-placement="bottom" data-trigger="hover" data-html="true" data-content="
rel="popover" data-placement="bottom" data-trigger="hover" data-html="true" data-content="{{#unless @main}}
<div>
<div class='progress progress-danger' style='height:5px;'>
<div class='bar' style='height: 5px; width: {percent(@profile.stats.hp, 50)}%;'></div>
@ -25,7 +25,7 @@
<div>GP: {floor(@profile.stats.gp)}</div>
<div>{count(@profile.items.pets)} / 90 Pets Found</div>
</div>
">
{{/}}">
<div class='character-sprites'>
{#with @profile.preferences as :p}
<span class='{:p.gender}_skin_{:p.skin}'></span>

View file

@ -3,7 +3,7 @@
<header class="site-header" role="banner" data-partySize="{#if gt(_partyMembers.length,1)}{truarr(_partyMembers.length)}{else}0{/}">
<!-- avatar -->
<div class="herobox-wrap main-herobox">
<app:avatar:avatar profile={_user}>
<app:avatar:avatar profile={_user} main=true>
</div>
<!-- stat bars -->