Skip to content

Commit

Permalink
hide if no picture
Browse files Browse the repository at this point in the history
  • Loading branch information
bak11004 committed Apr 26, 2016
1 parent d561523 commit 5fc46bf
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions www/wp-content/themes/ation2016/templates/page-about.twig
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@
<div class="row">
{% if semester.members %}
{% for member in semester.members %}
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
<a href="{{ member.link }}">
{% if member.get_thumbnail %}
{% if member.get_thumbnail %}
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
<a href="{{ member.link }}">
<img src="{{ member.get_thumbnail.get_src|resize(600,600) }}" class="img-responsive greyscale"/>
{% else %}
{# <p>{{ member.name }}</p> #}
{% endif %}
</a>
</div>
</a>
</div>
{% endif %}
{% endfor %}
{% else %}
<div class="col-xs-12">
Expand Down

0 comments on commit 5fc46bf

Please sign in to comment.