pytask/templates/_left_sidebar.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Mon, 17 Jan 2011 02:51:55 +0530
changeset 433 b8b8337efbb8
child 446 44c87dedbe66
permissions -rw-r--r--
Restructure the entire base template and move the left sidebar to another subtemplate.

{% load user_tags %}

<div id="navheader">
Navigation
</div>
<ul id="nav">
  <li><a href="{% url home_page %}" title="home">Home</a></li>
  <br />
  <li><a href="{% url browse_tasks %}" title="tasks">Tasks</a></li>
  <li><a href="{% url browse_textbooks %}" title="textbook">Textbooks</a></li>
  <br />

  {% 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>