Skip to content
Snippets Groups Projects
Commit 6bb7f76e authored by Chris Lawton's avatar Chris Lawton
Browse files

adding listing deadline to apply home page listings if there is one

parent 1d7cca03
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,12 @@ ...@@ -4,6 +4,12 @@
<div class="listing listing--not-a-link"> <div class="listing listing--not-a-link">
<div> <div>
<h4 class="listing__title listing__title--link"> <h4 class="listing__title listing__title--link">
{% if details.deadline %}
<p class="listing__deadline">
<svg class="icon icon--calendar icon--small"><use xlink:href="#calendar"></use></svg>
<span>Next deadline: {{ details.deadline|date:"M j, Y" }}</span>
</p>
{% endif %}
{# details may be None, so be more verbose in the handling of the title #} {# details may be None, so be more verbose in the handling of the title #}
{% if page.title %} {% if page.title %}
{% if details %} {% if details %}
......
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