Skip to content

Commit

Permalink
show registration deadline on overview page
Browse files Browse the repository at this point in the history
  • Loading branch information
shiltemann committed Aug 21, 2024
1 parent 6f2f33f commit b8377bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _layouts/event.html
Original file line number Diff line number Diff line change
Expand Up @@ -424,12 +424,16 @@ <h3>Promote the Event</h3>
{% elsif event.registration.open == false %}
<a href="#" class="btn btn-primary btn-lg btn-block">Registration opens soon!</a>
{% else %}
<a href="{{ event.registration.link }}" class="btn btn-primary btn-lg btn-block">Register Now</a>
<a href="{{ event.registration.link }}" class="btn btn-primary btn-lg btn-block">Register Now!</a>
{% if event.registration.deadline %}
<p style="margin-top:1em"><b>Deadline:</b> {{event.registration.deadline | date: "%-d %B %Y" }}</p>
{% endif %}
{% endif %}
{% endif %}
{% endunless %}
<hr/>

<b> Event details </b>
<table>
<tr><td style="min-width: 2rem">{% icon event-date %}</td><td>{{ event | collapse_date_pretty }}</td></tr>
<tr><td>{% icon event-location %}</td><td>{% if event.location %}{{ event.location | format_location }}{% else %}Please set a location{% endif %}</td></tr>
Expand Down

0 comments on commit b8377bc

Please sign in to comment.