challenges: fix up htmls to use new party-member subscription methods

This commit is contained in:
Tyler Renelle
2013-05-26 15:09:41 +01:00
parent 03c40c1571
commit 079e7eb30f
4 changed files with 14 additions and 14 deletions
+6 -6
View File
@@ -1,5 +1,5 @@
<header:>
<header class="site-header {#if _user.preferences.hideHeader}hidden{/}" role="banner" data-partySize="{#if gt(_partyMembers.length,1)}{truarr(_partyMembers.length)}{else}0{/}">
<header class="site-header {#if _user.preferences.hideHeader}hidden{/}" role="banner" data-partySize="{#if gt(_party.memebers.length,1)}{truarr(_party.members.length)}{else}0{/}">
<!-- avatar -->
<div class="herobox-wrap main-herobox">
<app:avatar:avatar profile={_user} main=true>
@@ -27,10 +27,10 @@
<!-- I have an idea to use this loop for the user's herobox/avatar as well
NOTE TO SELF: Ask Tyler if some kind of inter-leaving is possible
where we can put ONE of the results of this loop BEFORE the progress bars, and the rest after-->
{{#each _partyMembers as :member}}
<div class="herobox-wrap" style="{{#if equal(:member.id, _userId)}}display:none;{{/}}">
{{#unless equal(:member.id, _userId)}}
<app:avatar:avatar profile={{:member}} party="true" />
{{#each _party.members as :memberId}}
<div class="herobox-wrap" style="{{#if equal(:memberId, _userId)}}display:none;{{/}}">
{{#unless equal(:memberId, _userId)}}
<app:avatar:avatar profile={{_members[:memberId]}} party="true" />
<!-- Would be way cleaner as a Derby template `data-content="<app:party:member-stats profile={{:member}} />"`, but it was just printing HTML as text -->
<!-- I've re-implemented the rollover using the actual `herobox`/avatar template and data-attributes.
This Derby template idea would have been really handy but this is pretty versatile, and keeps it all in the avatar section -->
@@ -39,4 +39,4 @@
{{/}}
<app:alerts:hiding-bailey />
</header>
</header>