Add support for right side menu.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Mon, 17 Jan 2011 04:06:21 +0530
changeset 439 66bdb28ebaf6
parent 438 f861c753e55a
child 440 56ea209e559f
Add support for right side menu.
pytask/templates/_right_sidebar.html
pytask/templates/base.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/templates/_right_sidebar.html	Mon Jan 17 04:06:21 2011 +0530
@@ -0,0 +1,38 @@
+{% load user_tags %}
+
+<div id="navheader">
+  {% if user.is_authenticated %}
+    {{ user.username }} Actions
+  {% else %}
+    Login Form
+  {% endif %}
+</div>
+<ul id="nav">
+
+  {% if user.is_authenticated %}
+
+    <li>
+      <a href="{% url browse_notifications %}" title="notifications">
+        {{ user|notf_dsp }}
+      </a>
+    </li>
+    <br>
+    <li><a href="{% url view_profile %}">Profile</a></li>
+    <li><a href="{% url auth_logout %}">Logout</a></li>
+
+  {% else %}
+
+    <li>
+      <a href="{% url registration_register %}" title="register">
+        Register
+      </a>
+    </li>
+    <li>
+      <a href="{% url auth_login %}" title="login">
+        Login
+      </a>
+    </li>
+
+  {% endif %}
+
+</ul>
\ No newline at end of file
--- a/pytask/templates/base.html	Mon Jan 17 04:06:06 2011 +0530
+++ b/pytask/templates/base.html	Mon Jan 17 04:06:21 2011 +0530
@@ -52,6 +52,7 @@
         {% block rightsidebar %}
           {% comment %}Additional Right Sidebar elements go here{% endcomment %}
         {% endblock rightsidebar %}
+        {% include '_right_sidebar.html' %}
       </div>
 
       <div class="clearer">