diff --git a/opentech/templates/includes/relatedcontent_card.html b/opentech/templates/includes/relatedcontent_card.html index b60ecb4473e722b5ff0759748fdcf6d58dffc3ba..a4cce86ef95a4e139b4c14aca5e8ff69aca376af 100644 --- a/opentech/templates/includes/relatedcontent_card.html +++ b/opentech/templates/includes/relatedcontent_card.html @@ -3,11 +3,10 @@ {% with page=page.specific %} <a class="card" href="{% pageurl page %}"> <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> - Next deadline: - <span>{{ page.deadline|date:"M j, Y" }}</span> - {% else %} + Next deadline: <span>{{ page.deadline|date:"M j, Y" }}</span> + {% elif page.can_open %} Closed {% endif %} </h6>