Browse Source

Avatar as shortcut to Avatar CP

Ralfp 12 years ago
parent
commit
260b583eed
1 changed files with 4 additions and 0 deletions
  1. 4 0
      templates/cranefly/profiles/profile.html

+ 4 - 0
templates/cranefly/profiles/profile.html

@@ -9,7 +9,11 @@
     <div class="container">
     <div class="container">
       {{ messages_list(messages) }}
       {{ messages_list(messages) }}
       <div class="header-row">
       <div class="header-row">
+        {% if profile.id == user.id and not user.avatar_ban %}
+        <a href="{% url 'usercp_avatar' %}"><img src="{{ profile.get_avatar() }}" class="header-avatar tooltip-right" title="{% trans %}Click to jump to your Avatar Settings{% endtrans %}"></a>
+        {% else %}
         <img src="{{ profile.get_avatar() }}" class="header-avatar">
         <img src="{{ profile.get_avatar() }}" class="header-avatar">
+        {% endif %}
         <div class="header-side">
         <div class="header-side">
           <h1>{{ profile.username }} <small>{% if profile.title or profile.rank.title -%}
           <h1>{{ profile.username }} <small>{% if profile.title or profile.rank.title -%}
             <strong>{% if profile.title %}{{ _(profile.title) }}{% elif profile.rank.title %}{{ _(profile.rank.title) }}{% endif %}</strong>; {% endif %}
             <strong>{% if profile.title %}{{ _(profile.title) }}{% elif profile.rank.title %}{{ _(profile.rank.title) }}{% endif %}</strong>; {% endif %}