[snowy] Show username in note breadcrumb if request.user != author



commit a7d588650abfe98d36bc64786d8edf4526daf29f
Author: Jeff Schroeder <jeffschroeder computer org>
Date:   Mon Jan 3 22:23:47 2011 -0800

    Show username in note breadcrumb if request.user != author
    
    Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=625231

 notes/templates/notes/note_detail.html |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/notes/templates/notes/note_detail.html b/notes/templates/notes/note_detail.html
index 3d15d84..a04495d 100644
--- a/notes/templates/notes/note_detail.html
+++ b/notes/templates/notes/note_detail.html
@@ -75,9 +75,10 @@
 {% endblock %}
 {% block content %}
 <table id="content-layout" cellspacing="0" cellpadding="0">
-    {% if notebook %}
+    {% if notebook or request.user != author %}
     <tr><td>
-        <span id="breadcrumb">{{ notebook|safe }} &raquo; {{ title|safe }}</span>
+        {# FIXME: Proper l10n for "'s" #}
+        <span id="breadcrumb">{% if request.user != author %}<a href="{% url user_index author.username %}">{{ author.username }}{% trans "'s" %}</a> {% trans "Notes" %} &raquo; {% endif %}{% if notebook %}{{ notebook|safe }} &raquo; {% endif %}{{ title|safe }}</span>
     </td></tr>
     {% endif %}
     <tr>



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