mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-02 07:49:39 +00:00
move party stats to a modal
This commit is contained in:
parent
174a0d2362
commit
b7425f4964
2 changed files with 11 additions and 8 deletions
|
|
@ -10,16 +10,19 @@
|
|||
<!-- party -->
|
||||
{{#each _partyMembers as :member}}
|
||||
{{#unless equal(:member.id, _userId)}}
|
||||
<figure class="party-avatar-wrap" rel="tooltip" title="{{username(:member.auth)}}" data-placement="bottom">
|
||||
<app:avatar:avatar profile={{:member}} party="true" />
|
||||
<figure class="party-avatar-wrap" rel="popover" data-title="{{username(:member.auth)}}" data-placement="bottom" data-trigger="hover" data-html="true" data-content="
|
||||
<div>
|
||||
<div class="progress progress-danger" style="height:5px; margin:5px">
|
||||
<div class="bar" style="height: 5px; width: {percent(:member.stats.hp, 50)}%;"></div>
|
||||
<div class='progress progress-danger' style='height:5px;'>
|
||||
<div class='bar' style='height: 5px; width: {percent(:member.stats.hp, 50)}%;'></div>
|
||||
</div>
|
||||
<div class="progress progress-warning" style="height:5px; margin:5px">
|
||||
<div class="bar" style="height: 5px; width: {percent(:member.stats.exp, tnl(:member.stats.lvl))}%;"></div>
|
||||
<div class='progress progress-warning' style='height:5px;'>
|
||||
<div class='bar' style='height: 5px; width: {percent(:member.stats.exp, tnl(:member.stats.lvl))}%;'></div>
|
||||
</div>
|
||||
<div>GP: {{floor(:member.stats.gp)}}</div>
|
||||
</div>
|
||||
">
|
||||
<!-- Yes that would have been way cleaner as a derby template `<app:party:member-stats profile={{:member}} />`, but I couldn't get it working -->
|
||||
<app:avatar:avatar profile={{:member}} party="true" />
|
||||
</figure>
|
||||
{{/}}
|
||||
{{/}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue