Template
zerok opened this issue · comments
http://code.google.com/p/django-notification/issues/detail?id=4
Reported by jjconti, May 20, 2008
This is a template example. It can be use with the include tag from any
other-app-template.This is an example from my code:
{% include "../../notifications/templates/notices.html" %}
NOTE: in other-app-view you should use the notice_for function:
d = {'notices': notices_for(request.user)}
and get it result rendered.
Details
It's in spanish.
- Internationalization should be done.
- url tag should be used to get the url for a certain view (for example
archive or delete).CSS
CSS example for the classes used in the template:
.notice { border: solid #CCC; border-width :0 1px 1px 0; background-color: #EDF3FE; margin: 10px 0px 10px 0px; padding: 10px; width: 250px; } .first-notice { font-weight: bold; }