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 %}
+}}}