Skip to content

Commit

Permalink
if no students in semester
Browse files Browse the repository at this point in the history
  • Loading branch information
briankelleher committed Mar 10, 2016
1 parent 9f2fccd commit dbd58a4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions www/wp-content/themes/ation2016/templates/archive-semester.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
{% block content %}
<div class="container">
<h1>{{title}}</h1>
{% 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 %}
<p>No Students.</p>
{% endif %}
</div>
{% endblock %}

0 comments on commit dbd58a4

Please sign in to comment.