[pirate-politics] r592 committed - Created wiki page through web user interface.

2 views
Skip to first unread message

pirate-...@googlecode.com

unread,
Feb 9, 2011, 7:47:02 AM2/9/11
to pirate-poli...@googlegroups.com
Revision: 592
Author: fragro
Date: Wed Feb 9 04:38:19 2011
Log: Created wiki page through web user interface.
http://code.google.com/p/pirate-politics/source/detail?r=592

Added:
/wiki/pp_notification_unread_list_get.wiki

=======================================
--- /dev/null
+++ /wiki/pp_notification_unread_list_get.wiki Wed Feb 9 04:38:19 2011
@@ -0,0 +1,34 @@
+#summary To load this tag include {% load notificationtags %} at the top
of the html file.
+#sidebar TableOfContents
+
+= Custom Tag: `pp_notification_unread_list_get` =
+====_Module: pirate_messges_====
+
+This template tag populates the namespace `pp_messages` with a list of
messages that have not been read by the user.
+
+==_Arguments and Parameters_==
+
+ * user: the user we need notifications for
+
+==_Return value_==
+
+ * `pp_messages.notifications`: list of Notification objects
+
+==_Usage Notes_==
+ * *Assumptions*: After this templatetag is called, unread messages become
read.
+
+ * *Errors*: None
+
+==_Examples_==
+====Basic form====
+The following code will display the reputation integer.
+{{{
+ {% pp_notification_unread_list_get user=request.user %}
+ {% for note in pp_messages.notifications %}
+ {{pp_messages.receiver }}
+ {{pp_messages.sender }}
+ {{pp_messages.link }} #link to comment/issue/solution
+ {{pp_messages.text }} #textual description of notification
+ {% endfor %}
+ {% endpp_notification_unread_list_get %}
+}}}

Reply all
Reply to author
Forward
0 new messages