Skip to content

Commit

Permalink
Merge pull request #871 from dotKom/display-registration-end
Browse files Browse the repository at this point in the history
Display registration end date after regisration has opened
  • Loading branch information
hernil committed Sep 3, 2014
2 parents d984faf + 00357e9 commit b7d1efe
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions templates/events/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,23 @@ <h2 id="event-details-heading">
{% endif %}
</div>
<div class="col-xs-12 col-sm-4 col-md-4">
<div class="event-hero-title">Påmeldingsstart</div>
<div class="event-hero-large-text">
{% if attendance_event.registration_start > now %}
<div class="event-hero-title">Påmeldingsstart</div>
<div class="event-hero-large-text">
<span class="break">{{ attendance_event.registration_start|date:"H.i" }}</span>
<span class="date-small">{{ attendance_event.registration_start|date:"d. M Y" }}</span>
<div class="event-hero-large-text">
<span class="break">{{ attendance_event.registration_start|date:"H.i" }}</span>
<span class="date-small">{{ attendance_event.registration_start|date:"d. M Y" }}</span>
</div>
</div>
</div>
{% else %}
<div class="event-hero-title">Påmeldingsslutt</div>
<div class="event-hero-large-text">
<div class="event-hero-large-text">
<span class="break">{{ attendance_event.registration_end|date:"H.i" }}</span>
<span class="date-small">{{ attendance_event.registration_end|date:"d. M Y" }}</span>
</div>
</div>
{% endif %}
</div>
</div>
</div>
Expand Down

0 comments on commit b7d1efe

Please sign in to comment.