Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1291 from johngian/833026
Browse files Browse the repository at this point in the history
[833026] Multiple event attendees should be a grid
  • Loading branch information
johngian authored Dec 21, 2016
2 parents 6679c4f + f0dc35d commit 95834b0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion remo/events/templates/view_event.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,18 @@ Mozilla Reps - {{ event.name }}
</div>
</div>
<!-- END Mashup code -->

{% macro display_attendee(attendee) -%}
{% if event|get_total_attendees >= 3 %}
<div class="row">
<div class="event-single-attendee">
<div class="large-3 small-3 columns grid-profile-image">
<img src="{{ attendee|get_avatar_url }}"
class="profiles-people-avatar"
alt="Avatar">
</div>
</div>
</div>
{% else %}
<div class="event-single-attendee">
<div class="row">
<div class="large-3 small-3 columns grid-profile-image">
Expand All @@ -316,6 +326,7 @@ Mozilla Reps - {{ event.name }}
</div>
</div>
</div>
{% endif %}
{%- endmacro %}
<div class="row">
<div class="large-7 columns">
Expand Down

0 comments on commit 95834b0

Please sign in to comment.