Skip to content

Commit

Permalink
Only load images through gravatar
Browse files Browse the repository at this point in the history
  • Loading branch information
Knut Hühne committed Jul 7, 2016
1 parent 43ab91d commit bac3a9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions foundation/organisation/templates/organisation/member.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{% load markdown_deux_tags %}
{% load thumbnail %}
{% load staticfiles %}

{% with person=member.person %}
<div class="profile">
<span class="image"
style="background-image: url({{ person.gravatar_url }}{% if person.photo %}?default={{person.photo.url}}{% endif %});">
{% thumbnail person.photo "116" as im %}
<img src="{{ im.url }}" alt="" />
{% endthumbnail %}
<img src="{% static 'img/blank.png'%}" alt="" />
</span>
<h3 class="name">{{ person.name }}</h3>
{% if member.title %}
Expand Down
Binary file added static/img/blank.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bac3a9b

Please sign in to comment.