Skip to content
Snippets Groups Projects
Unverified Commit 10905d4b authored by Tom Wiesing's avatar Tom Wiesing
Browse files

people: Hide images when they don't exist

This commit updates the people_list page and people template to handle
cases where a specific person does not have an assoicated image.
parent 4dfe2486
No related branches found
No related tags found
No related merge requests found
Pipeline #4481 passed
......@@ -14,7 +14,7 @@
<h5>{{role.name}}(s)</h5></li>
{% for person in rollers %}
<li class="collection-item avatar">
<img src="/{{person.pic}}" alt="" class="circle"/>
{% if person.pic %}<img src="/{{person.pic}}" alt="" class="circle"/>{% endif %}
<a href="{{person.url}}" class="title">{{person.fullname}}</a>
<p>
{% if person.start_date %}
......
......@@ -9,7 +9,9 @@ layout: default
<div class="col s12 m5 right">
<div class="card">
<div class="card-image">
<img src="/{{page.pic}}" width="300"/>
{% if page.pic %}
<img src="/{{page.pic}}" width="300"/>
{% endif %}
</div>
<div class="card-content">
<span class="card-title">{{ page.fullname }}</span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment