mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 15:31:16 +00:00
don't show stats popover for main user
This commit is contained in:
parent
cda3a82b35
commit
b3620f1db0
2 changed files with 4 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 -->
|
||||
|
|
|
|||
Loading…
Reference in a new issue