Skip to content

Commit

Permalink
Show profile avatar whether uploaded or not
Browse files Browse the repository at this point in the history
  • Loading branch information
lmorchard committed Oct 17, 2011
1 parent b3f33f6 commit 83c8061
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/profiles/templates/profiles/profile_view.html
Expand Up @@ -6,9 +6,7 @@

<h2>Profile for {{ user }}</h2>
<dl class="profile">
{% if profile.avatar %}
<dt class="avatar">Avatar:</dt><dd><img src="{{ profile.avatar.url }}" /></dd>
{% endif %}
<dt class="avatar">Avatar:</dt><dd><img src="{{ user_avatar(profile.user) }}" /></dd>
<dt class="username">Username:</dt><dd>{{ user.username }}</dd>
<dt class="display_name">Display name:</dt><dd>{{ profile.display_name }}</dd>
<dt class="location">Location:</dt><dd>{{ profile.location }}</dd>
Expand Down

0 comments on commit 83c8061

Please sign in to comment.