summaryrefslogtreecommitdiffstats
path: root/askbot/skins/default/templates/user_profile/user_edit.html
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/skins/default/templates/user_profile/user_edit.html')
-rw-r--r--askbot/skins/default/templates/user_profile/user_edit.html24
1 files changed, 18 insertions, 6 deletions
diff --git a/askbot/skins/default/templates/user_profile/user_edit.html b/askbot/skins/default/templates/user_profile/user_edit.html
index 8f9dd62f..daaa3663 100644
--- a/askbot/skins/default/templates/user_profile/user_edit.html
+++ b/askbot/skins/default/templates/user_profile/user_edit.html
@@ -9,12 +9,24 @@
<div id="main-body" style="width:100%;padding-top:10px">
<form name="" action="{% url edit_user request.user.id %}" method="post">{% csrf_token %}
<div id="left" style="float:left;width:180px">
- {% if request.user.email %}
- {{ macros.gravatar(request.user, 128) }}
- {% else %}
- <img src="{{"/images/nophoto.png"|media}}">
- {% endif %}
- <br><a href="{% url faq %}#gravatar">{% trans %}change picture{% endtrans %}</a>
+ <div class='avatar'>
+ {{ macros.gravatar(view_user, 128) }}
+ {% if request.user == view_user %}
+ <p><a
+ {% if support_custom_avatars %}
+ href="{% url avatar_change %}"
+ {% else %}
+ href="{% url faq %}#gravatar"
+ {% endif %}
+ >{% trans %}change picture{% endtrans %}</a></p>
+ {% if support_custom_avatars %}
+ <p><a
+ href="{% url avatar_delete %}"
+ >{% trans %}remove{% endtrans %}</a>
+ </p>
+ {% endif %}
+ {% endif %}
+ </div>
</div>
<div style="float:right;width:750px;text-align:left;">
<h2>{% trans %}Registered user{% endtrans %}</h2>