Skip to content
Snippets Groups Projects
Unverified Commit c31a158d authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #677 from OpenTechFund/bugfix/656-related-page-closed

Fix for related pages with no deadline always show as Closed.
parents b84e97a9 39b7da89
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