@@ -45,26 +45,30 @@ <h1>Past Events</h1>
4545 < div id ="evt-wrapper ">
4646 {% for event in past_events %}
4747 < article class ="past-event ">
48- < header >
49- < h1 > < time datetime > {{ event.time|date:"F j, Y" }}</ time > </ h1 >
50- </ header >
51-
52- < h2 > < a href ="{{ event.event_url }} "> {{ event.name|safe }}</ a > </ h2 >
53- {% if event.description %}
54- < p > {{ event.description|safe|truncatewords_html:25 }}</ p >
55- {% endif %}
56- < a href ="{{ event.event_url }} " class ="read-more "> Read more at the Meetup event page →</ a >
57- < div class ="attendees clearfix ">
58- < h3 > Attendees ({{event.attendees|length}})</ h3 >
59- {% for attendee in event.attendees %}
60- {% if attendee.photo.thumb_url %}
61- < div title ="{{ attendee.name }} " style ="background-image: url( {{ attendee.photo.thumb_url }} ); " class ="attendee "> </ div >
48+ < div class ="details ">
49+ < header >
50+ < h1 > < time datetime > {{ event.time|date:"F j, Y" }}</ time > </ h1 >
51+ </ header >
52+ < h2 > < a href ="{{ event.event_url }} "> {{ event.name|safe }}</ a > </ h2 >
53+ {% if event.description %}
54+ < p > {{ event.description|safe|truncatewords_html:25 }}</ p >
55+ {% endif %}
56+ < a href ="{{ event.event_url }} " class ="read-more "> Read more at the Meetup event page →</ a >
57+ < div class ="attendees clearfix ">
58+ < h3 > Attendees ({{event.attendees|length}})</ h3 >
59+ {% for attendee in event.attendees %}
60+ {% if attendee.photo.thumb_url %}
61+ < div title ="{{ attendee.name }} " style ="background-image: url( {{ attendee.photo.thumb_url }} ); " class ="attendee "> </ div >
62+ {% endif %}
63+ {% endfor %}
64+ </ div >
65+ </ div >
66+ {% if event.photos.0.url %}
67+ < img class ="event-photo " src ="{{ event.photos.0.url }} " />
6268 {% endif %}
69+ </ article >
6370 {% endfor %}
6471 </ div >
65- </ article >
66- {% endfor %}
67- </ div >
6872 </ div >
6973 </ section >
7074 < section class ="resources clearfix ">
0 commit comments