Skip to content

Commit

Permalink
credits hide if no members
Browse files Browse the repository at this point in the history
  • Loading branch information
briankelleher committed Apr 27, 2016
1 parent 7902982 commit 0d4ea0d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions www/wp-content/themes/ation2016/templates/single-project.twig
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,17 @@
</div>
</div>

<div class="row">
<div class="col-xs-12">
<p class="large">Credits:
{% if post.get_field('members') %}
{% if post.get_field('members') %}
<div class="row">
<div class="col-xs-12">
<p class="large">Credits:
{% for member in post.get_field('members') %}
<a href="{{ TimberPost(member).link }}">{{member.post_title}}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
{% else %}
None.
{% endif %}
</p>
</p>
</div>
</div>
</div>
{% endif %}
</section>

</article>
Expand Down

0 comments on commit 0d4ea0d

Please sign in to comment.