[snowy] Show username in note breadcrumb if request.user != author
- From: Jeff Schroeder <jschroeder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [snowy] Show username in note breadcrumb if request.user != author
- Date: Wed, 5 Jan 2011 01:00:29 +0000 (UTC)
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 }} » {{ 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" %} » {% endif %}{% if notebook %}{{ notebook|safe }} » {% endif %}{{ title|safe }}</span>
</td></tr>
{% endif %}
<tr>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]