diff gpp/templates/messages/tabbed_base.html @ 429:d0f0800eef0c

Making the jquery tabbed version of the messages app the current version and removing the old. Also figured out how to dynamically update the base template's count of unread messages when messages are read.
author Brian Neal <bgneal@gmail.com>
date Tue, 03 May 2011 02:56:58 +0000
parents 77b3b01843b5
children
line wrap: on
line diff
--- a/gpp/templates/messages/tabbed_base.html	Sun May 01 02:11:48 2011 +0000
+++ b/gpp/templates/messages/tabbed_base.html	Tue May 03 02:56:58 2011 +0000
@@ -15,26 +15,21 @@
 {% else %}
    var receiver = "";
 {% endif %}
+   var unreadMsgCount = {{ unread_count }};
 //]]>
 </script>
 <script type="text/javascript" src="{{ STATIC_URL }}js/tabbed_messages.js"></script>
 {% endblock %}
 {% block content %}
-<h2>Your Private Messages (Beta)</h2>
-<p>
-This is an experimental version of the SG101 private message system. Don't worry, if this
-isn't working for you, you can always go back to the
-<a href="{% url 'messages-inbox' %}">current system</a>. Please leave any feedback on this
-change in forums. Thanks!
-</p>
+<h2>Your Private Messages</h2>
 
 <div id="tabs">
    <ul>
-      <li><a href="{% url 'messages-beta_inbox' %}">Inbox</a></li>
-      <li><a href="{% url 'messages-beta_compose' %}">Compose</a></li>
-      <li><a href="{% url 'messages-beta_outbox' %}">Outbox</a></li>
-      <li><a href="{% url 'messages-beta_trash' %}">Trash</a></li>
-      <li><a href="{% url 'messages-beta_options' %}">Options</a></li>
+      <li><a href="{% url 'messages-inbox' %}">Inbox</a></li>
+      <li><a href="{% url 'messages-compose' %}">Compose</a></li>
+      <li><a href="{% url 'messages-outbox' %}">Outbox</a></li>
+      <li><a href="{% url 'messages-trash' %}">Trash</a></li>
+      <li><a href="{% url 'messages-options' %}">Options</a></li>
    </ul>
 </div>