Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 30 by rockmhoward: Have templates display "No messages." if the  
message_list is empty.
http://code.google.com/p/django-messages/issues/detail?id=30

What steps will reproduce the problem?
1. Go to Inbox, Sent (i,e., outbox) or Trash
2. If the message_list is empty, an empty table is shown.

Unless the CSS has been improved to beautify the empty table case, the
resulting empty table is quite ugly which is a turn off for new users.
I would prefer to see a simple message like "No messages." instead.


The fix:
In each of inbox.html, outbox.html and trash.html:

On the line after the <h1>...</h1> and before the <table class="messages">,
insert:
{% if message_list %}

On the line after </table>, insert:
{% else %}
<p>No messages.</p>
{% endif %}

That will do it.



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to