From dbd58a4c85a660119bb9a66fd035063f4693d6ed Mon Sep 17 00:00:00 2001 From: briankelleher Date: Thu, 10 Mar 2016 14:28:52 -0500 Subject: [PATCH] if no students in semester --- .../themes/ation2016/templates/archive-semester.twig | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/www/wp-content/themes/ation2016/templates/archive-semester.twig b/www/wp-content/themes/ation2016/templates/archive-semester.twig index b5f9608..9a20941 100644 --- a/www/wp-content/themes/ation2016/templates/archive-semester.twig +++ b/www/wp-content/themes/ation2016/templates/archive-semester.twig @@ -3,8 +3,12 @@ {% block content %}

{{title}}

- {% for post in posts %} - {% include ['tease-'~post.post_type~'.twig', 'tease.twig'] %} - {% endfor %} + {% if posts %} + {% for post in posts %} + {% include ['tease-'~post.post_type~'.twig', 'tease.twig'] %} + {% endfor %} + {% else %} +

No Students.

+ {% endif %}
{% endblock %} \ No newline at end of file