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

2 views
Skip to first unread message

pirate-...@googlecode.com

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

Added:
/wiki/pp_has_mail.wiki

=======================================
--- /dev/null
+++ /wiki/pp_has_mail.wiki Wed Feb 9 04:33:43 2011
@@ -0,0 +1,31 @@
+#summary To load this tag include {% load notificationtags %} at the top
of the html file.
+#sidebar TableOfContents
+
+= Custom Tag: `pp_has_mail` =
+====_Module: pirate_messges_====
+
+This template tag populates the namespace `pp_messages` with a boolean
`has_mail` value and integer `count` that inform the template if the user
has unread notifications, and how many.
+
+==_Arguments and Parameters_==
+
+ * user: the user we need notifications for
+
+==_Return value_==
+
+ * `pp_messages.has_mail`: if the user has unread notifications: True
+ * `pp_messages.count`: number of unread messages
+
+==_Usage Notes_==
+ * *Assumptions*: None
+
+ * *Errors*: None
+
+==_Examples_==
+====Basic form====
+The following code will display the reputation integer.
+{{{
+ {% pp_has_mail user=request.user %}
+ {{ pp_messages.has_mail }}
+ {{ pp_messages.count }}
+ {% endpp_has_mail %}
+}}}

Reply all
Reply to author
Forward
0 new messages