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

Commit

Permalink
[833026] Multiple event attendees should be a grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 authored and johngian committed Dec 21, 2016
1 parent b453223 commit f0dc35d
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 f0dc35d

Please sign in to comment.