[django-messages] r116 committed - Adding a fixes issue #30

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 5, 2009, 3:29:27 AM10/5/09
to pinax-...@googlegroups.com
Revision: 116
Author: ar...@rcs4u.de
Date: Mon Oct 5 00:29:12 2009
Log: Adding a fixes issue #30
http://code.google.com/p/django-messages/source/detail?r=116

Modified:
/trunk/messages/templates/messages/inbox.html
/trunk/messages/templates/messages/outbox.html
/trunk/messages/templates/messages/trash.html

=======================================
--- /trunk/messages/templates/messages/inbox.html Sun Jul 20 04:42:32 2008
+++ /trunk/messages/templates/messages/inbox.html Mon Oct 5 00:29:12 2009
@@ -1,25 +1,29 @@
{% extends "messages/base.html" %}
{% load i18n %}
{% block content %}
- <h1>{% trans "Inbox" %}</h1>
- <table class="messages">
- <thead>
- <tr><th>{% trans "Sender" %}</th><th>{%
trans "Subject" %}</th><th>{% trans "Received" %}</th><th>{%
trans "Action" %}</th></tr>
- </thead>
- <tbody>
- {% for message in message_list %}
- <tr>
- <td>{{ message.sender }}</td>
- <td>
- {% if message.new %}<strong>{% endif %}
- {% if message.replied %}<em>{% endif %}
- <a href="{{message.get_absolute_url }}">{{ message.subject
}}</a>
- {% if message.replied %}</em>{% endif %}
- {% if message.new %}</strong>{% endif %}</td>
- <td>{{ message.sent_at|date:_("DATETIME_FORMAT") }}</td>
- <td><a href="{% url messages.views.delete message.id %}">{%
trans "delete" %}</a></td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
+<h1>{% trans "Inbox" %}</h1>
+{% if message_list %}
+<table class="messages">
+ <thead>
+ <tr><th>{% trans "Sender" %}</th><th>{%
trans "Subject" %}</th><th>{% trans "Received" %}</th><th>{%
trans "Action" %}</th></tr>
+ </thead>
+ <tbody>
+{% for message in message_list %}
+ <tr>
+ <td>{{ message.sender }}</td>
+ <td>
+ {% if message.new %}<strong>{% endif %}
+ {% if message.replied %}<em>{% endif %}
+ <a href="{{message.get_absolute_url }}">{{ message.subject
}}</a>
+ {% if message.replied %}</em>{% endif %}
+ {% if message.new %}</strong>{% endif %}</td>
+ <td>{{ message.sent_at|date:_("DATETIME_FORMAT") }}</td>
+ <td><a href="{% url messages.views.delete message.id %}">{%
trans "delete" %}</a></td>
+ </tr>
+{% endfor %}
+ </tbody>
+</table>
+{% else %}
+<p>{% trans "No messages." %}</p>
+{% endif %}
{% endblock %}
=======================================
--- /trunk/messages/templates/messages/outbox.html Sun Jul 20 04:42:32 2008
+++ /trunk/messages/templates/messages/outbox.html Mon Oct 5 00:29:12 2009
@@ -2,6 +2,7 @@
{% load i18n %}
{% block content %}
<h1>{% trans "Sent Messages" %}</h1>
+{% if message_lisst %}
<table class="messages">
<thead>
<tr><th>{% trans "Recipient" %}</th><th>{%
trans "Subject" %}</th><th>{% trans "Sent" %}</th><th>{%
trans "Action" %}</th></tr>
@@ -19,4 +20,7 @@
{% endfor %}
</tbody>
</table>
+{% else %}
+<p>{% trans "No messages." %}</p>
+{% endif %}
{% endblock %}
=======================================
--- /trunk/messages/templates/messages/trash.html Sun Jul 20 04:42:32 2008
+++ /trunk/messages/templates/messages/trash.html Mon Oct 5 00:29:12 2009
@@ -2,6 +2,7 @@
{% load i18n %}
{% block content %}
<h1>{% trans "Deleted Messages" %}</h1>
+{% if message_list %}
<table class="messages">
<thead>
<tr><th>{% trans "Sender" %}</th><th>{%
trans "Subject" %}</th><th>{% trans "Date" %}</th><th>{%
trans "Action" %}</th></tr>
@@ -19,6 +20,9 @@
{% endfor %}
</tbody>
</table>
+{% else %}
+<p>{% trans "No messages." %}</p>
+{% endif %}
<br />
<p>{% trans "Deleted Messages are removed from the trash at unregular
intervals, don't rely on this feature for long-time storage." %}</p>
{% endblock %}

Reply all
Reply to author
Forward
0 new messages