Skip to content
Snippets Groups Projects
Commit 39b7da89 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Fix for related pages with no deadline always show as Closed.

parent b84e97a9
No related branches found
No related tags found
No related merge requests found
...@@ -3,11 +3,10 @@ ...@@ -3,11 +3,10 @@
{% with page=page.specific %} {% with page=page.specific %}
<a class="card" href="{% pageurl page %}"> <a class="card" href="{% pageurl page %}">
<h6 class="card__subheading"> <h6 class="card__subheading">
{% if page.deadline %} {% if page.is_open %}
<svg class="icon icon--calendar apply-bar__icon"><use xlink:href="#calendar"></use></svg> <svg class="icon icon--calendar apply-bar__icon"><use xlink:href="#calendar"></use></svg>
Next deadline: Next deadline: <span>{{ page.deadline|date:"M j, Y" }}</span>
<span>{{ page.deadline|date:"M j, Y" }}</span> {% elif page.can_open %}
{% else %}
Closed Closed
{% endif %} {% endif %}
</h6> </h6>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment