Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
428:77b3b01843b5 | 429:d0f0800eef0c |
---|---|
13 {% if receiver %} | 13 {% if receiver %} |
14 var receiver = "{{ receiver }}"; | 14 var receiver = "{{ receiver }}"; |
15 {% else %} | 15 {% else %} |
16 var receiver = ""; | 16 var receiver = ""; |
17 {% endif %} | 17 {% endif %} |
18 var unreadMsgCount = {{ unread_count }}; | |
18 //]]> | 19 //]]> |
19 </script> | 20 </script> |
20 <script type="text/javascript" src="{{ STATIC_URL }}js/tabbed_messages.js"></script> | 21 <script type="text/javascript" src="{{ STATIC_URL }}js/tabbed_messages.js"></script> |
21 {% endblock %} | 22 {% endblock %} |
22 {% block content %} | 23 {% block content %} |
23 <h2>Your Private Messages (Beta)</h2> | 24 <h2>Your Private Messages</h2> |
24 <p> | |
25 This is an experimental version of the SG101 private message system. Don't worry, if this | |
26 isn't working for you, you can always go back to the | |
27 <a href="{% url 'messages-inbox' %}">current system</a>. Please leave any feedback on this | |
28 change in forums. Thanks! | |
29 </p> | |
30 | 25 |
31 <div id="tabs"> | 26 <div id="tabs"> |
32 <ul> | 27 <ul> |
33 <li><a href="{% url 'messages-beta_inbox' %}">Inbox</a></li> | 28 <li><a href="{% url 'messages-inbox' %}">Inbox</a></li> |
34 <li><a href="{% url 'messages-beta_compose' %}">Compose</a></li> | 29 <li><a href="{% url 'messages-compose' %}">Compose</a></li> |
35 <li><a href="{% url 'messages-beta_outbox' %}">Outbox</a></li> | 30 <li><a href="{% url 'messages-outbox' %}">Outbox</a></li> |
36 <li><a href="{% url 'messages-beta_trash' %}">Trash</a></li> | 31 <li><a href="{% url 'messages-trash' %}">Trash</a></li> |
37 <li><a href="{% url 'messages-beta_options' %}">Options</a></li> | 32 <li><a href="{% url 'messages-options' %}">Options</a></li> |
38 </ul> | 33 </ul> |
39 </div> | 34 </div> |
40 | 35 |
41 <div id="msgDialog"></div> | 36 <div id="msgDialog"></div> |
42 {% endblock %} | 37 {% endblock %} |