Skip to content

Commit

Permalink
Step 17.27: Refactor PartyRsvpsList
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela authored and Dotan Simha committed Nov 22, 2016
1 parent 60e9742 commit 81b8b7d
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions imports/ui/components/partyRsvpsList/partyRsvpsList.html
@@ -1,10 +1,26 @@
Who is coming: Yes -
{{ (partyRsvpsList.rsvps | filter:{rsvp:'yes'}).length }}
Maybe -
{{ (partyRsvpsList.rsvps | filter:{rsvp:'maybe'}).length }}
No -
{{ (partyRsvpsList.rsvps | filter:{rsvp:'no'}).length }}

<party-rsvp-users rsvps="partyRsvpsList.rsvps" type="yes"></party-rsvp-users>
<party-rsvp-users rsvps="partyRsvpsList.rsvps" type="maybe"></party-rsvp-users>
<party-rsvp-users rsvps="partyRsvpsList.rsvps" type="no"></party-rsvp-users>
<div class="rsvp-sum">
<div class="rsvp-amount">
<div class="amount">
{{ (partyRsvpsList.rsvps | filter:{rsvp:'yes'}).length || 0 }}
</div>
<div class="rsvp-title">
YES
</div>
</div>
<div class="rsvp-amount">
<div class="amount">
{{ (partyRsvpsList.rsvps | filter:{rsvp:'maybe'}).length || 0 }}
</div>
<div class="rsvp-title">
MAYBE
</div>
</div>
<div class="rsvp-amount">
<div class="amount">
{{ (partyRsvpsList.rsvps | filter:{rsvp:'no'}).length || 0 }}
</div>
<div class="rsvp-title">
NO
</div>
</div>
</div>

0 comments on commit 81b8b7d

Please sign in to comment.