[snowy] Make header-username clickable



commit ac5d29b45808fd42c7a48bd6ec3ba9fb5dc1f81d
Author: Christoffer Buchholz <christoffer buchholz gmail com>
Date:   Mon Oct 3 20:24:23 2011 +0200

    Make header-username clickable
    
    The header-avatar is already clickable, so why should the username not be?

 templates/base.html |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/templates/base.html b/templates/base.html
index 1c5f907..d847663 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -34,7 +34,7 @@
                 <td id="header-auth">
                     {% if user.is_authenticated %}
                     <h3>
-                        {{ user }}
+                        <a href="{% url note_index user.username %}">{{ user }}</a>
                     </h3>
                     <p><a href="{% url preferences %}">{% trans "preferences" %}</a> / <a href="{% url django.contrib.auth.views.logout %}">{% trans "log out" %}</a></p>
                     {% else %}
@@ -44,7 +44,7 @@
                 </td>
                 <td id="header-avatar">
                     {% if user.is_authenticated %}
-                    <a href="{% url notes.views.note_index user.username %}">{% gravatar_img_for_user user 64 %}</a>
+                    <a href="{% url note_index user.username %}">{% gravatar_img_for_user user 64 %}</a>
                     {% endif %}
                 </td>
             </tr>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]