Issue 19: Use one template for inbox, outbox and trash
http://code.google.com/p/django-messages/issues/detail?id=19

Comment #1 by [EMAIL PROTECTED]:
currently the three templates display different columns in the list,  
because for
example in the outbox/sent it doesn't make sense to show the sender,  
instead it's
more useful to show the recipient. The opposite is true for the  
inbox/received view.

If all lists share the same template it will either have many if-constructs  
in it or
will show more columns as neccessary.

Can you please give me a use-case so that I understand why it makes sense?

Currently if you want to change the template a view uses without haking
django-messages directly please follow this steps:

* make a copy of messages/urls.py to yourproject/messages_urls.py
* add dictionaries with the template name to the url patterns. example:
   change: url(r'^inbox/$', inbox, name='messages_inbox'),
   to: url(r'^inbox/$', inbox, {'template_name': 'messages/list.html'},
name='messages_inbox'),
* include messages_urls in your root-urlconf instead of messages.urls.




-- 
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