Skip to content

Commit 7a3b351

Browse files
committed
Rename Jinja variable
* The issue is a name collision in Jinja * renamed "messages" to "notifications", because the section that displays them is called "notifications"
1 parent c167218 commit 7a3b351

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

askbot/jinja2/user_inbox/responses.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% trans %}notifications{% endtrans %}
55
{% endblock %}
66
{% block inbox_content %}
7-
{% if messages %}
7+
{% if notifications %}
88
<div class="js-manage-messages">
99
<a class="js-mark-as-seen">{% trans %}mark seen{% endtrans %}</a> |
1010
<a class="js-delete">{% trans %}delete{% endtrans %}</a>
@@ -15,7 +15,7 @@
1515
{% endif %}
1616
<p class="action-status"><span></span></p>
1717
<div class="messages">
18-
{% for message in messages %}{# messages are grouped by question, using the "nested_messages" #}
18+
{% for message in notifications %}{# messages are grouped by question, using the "nested_messages" #}
1919
<div class="js-message-group">
2020
<h2><input type="checkbox" />"{{ message.title.strip()|escape}}"</h2>
2121
<div class="message{% if message.is_new %} highlight new{% else %} seen{% endif %}"

askbot/views/users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ def user_responses(request, user, context):
10641064
'tab_name' : 'inbox',
10651065
'inbox_section': section,
10661066
'page_title' : _('profile - responses'),
1067-
'messages' : filtered_message_list,
1067+
'notifications' : filtered_message_list,
10681068
}
10691069
context.update(data)
10701070
template = 'user_inbox/responses.html'

0 commit comments

Comments
 (0)