Skip to content

Commit

Permalink
Reference key_photo by path
Browse files Browse the repository at this point in the history
  • Loading branch information
gthole committed Feb 20, 2016
1 parent 7cbbc4c commit 0563a8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gedgo/templates/default/person-card.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="card row">
<div class="col-xs-5">
<a href="/gedgo/{{ somebody.gedcom.id }}/{{ somebody.pointer }}/"><img src="{% if somebody.photos %}{{ MEDIA_URL }}default/thumbs/{{ somebody.key_photo }}{% else %}{{ STATIC_URL }}img/generic_person.gif{% endif %}" class="thumb img-rounded"></a>
<a href="/gedgo/{{ somebody.gedcom.id }}/{{ somebody.pointer }}/"><img src="{% if somebody.photos %}{{ MEDIA_URL }}{{ somebody.key_photo.thumb }}{% else %}{{ STATIC_URL }}img/generic_person.gif{% endif %}" class="thumb img-rounded"></a>
</div>
<div class="card-content col-xs-7">
<h4 class="card-title"><a href="/gedgo/{{ somebody.gedcom.id }}/{{ somebody.pointer }}/">{{ somebody.full_name }}</a></h4>
Expand Down
4 changes: 2 additions & 2 deletions gedgo/templates/default/person.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
{% block content %}
<div class="row">
<div class="col-xs-5">
<a href="{% if person.photos %}{{ MEDIA_URL }}gedcom/{{ person.key_photo }}{% else %}#{% endif %}">
<img src="{% if person.photos %}{{ MEDIA_URL }}default/thumbs/{{ person.key_photo }}{% else %}{{ STATIC_URL }}img/generic_person.gif{% endif %}" class="thumb img-rounded">
<a href="{% if person.photos %}{{ MEDIA_URL }}{{ person.key_photo.name }}{% else %}#{% endif %}">
<img src="{% if person.photos %}{{ MEDIA_URL }}{{ person.key_photo.thumb }}{% else %}{{ STATIC_URL }}img/generic_person.gif{% endif %}" class="thumb img-rounded">
</a>
</div>
<div class="col-xs-7">
Expand Down

0 comments on commit 0563a8a

Please sign in to comment.