Skip to content
Snippets Groups Projects
Commit 8e767db0 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Add open/closed state to funds and labs in the listing

parent 956952b7
No related branches found
No related tags found
No related merge requests found
...@@ -21,12 +21,18 @@ ...@@ -21,12 +21,18 @@
</div> </div>
{% endif %} {% endif %}
{% if subpage.deadline %}
<p class="listing__deadline"> <p class="listing__deadline">
<svg class="icon icon--calendar icon--small"><use xlink:href="#calendar"></use></svg> {% if subpage.is_open %}
<span>Next deadline: {{ subpage.deadline|date:"M j, Y" }}</span> {% if subpage.deadline %}
<svg class="icon icon--calendar icon--small"><use xlink:href="#calendar"></use></svg>
<span>Next deadline: {{ subpage.deadline|date:"M j, Y" }}</span>
{% else %}
Open
{% endif %}
{% else %}
Closed
{% endif %}
</p> </p>
{% endif %}
<h4 class="listing__title">{{ subpage.listing_title|default:subpage.title }}</h4> <h4 class="listing__title">{{ subpage.listing_title|default:subpage.title }}</h4>
......
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