diff options
author | Madhusudan.C.S | 2011-01-17 04:06:21 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2011-01-17 04:06:21 +0530 |
commit | ab9e94708ec9a9d2cc02c00884a6068fa3aed4b0 (patch) | |
tree | cecd89dd34faba209a274ec817ca64763594d4b7 | |
parent | c5bc7e3d721a729ce557879978640c2fdb8a5591 (diff) | |
download | pytask-ab9e94708ec9a9d2cc02c00884a6068fa3aed4b0.tar.gz pytask-ab9e94708ec9a9d2cc02c00884a6068fa3aed4b0.tar.bz2 pytask-ab9e94708ec9a9d2cc02c00884a6068fa3aed4b0.zip |
Add support for right side menu.
-rw-r--r-- | pytask/templates/_right_sidebar.html | 38 | ||||
-rw-r--r-- | pytask/templates/base.html | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/pytask/templates/_right_sidebar.html b/pytask/templates/_right_sidebar.html new file mode 100644 index 0000000..4926613 --- /dev/null +++ b/pytask/templates/_right_sidebar.html @@ -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 diff --git a/pytask/templates/base.html b/pytask/templates/base.html index ba6fd9e..d8bd54d 100644 --- a/pytask/templates/base.html +++ b/pytask/templates/base.html @@ -52,6 +52,7 @@ {% block rightsidebar %} {% comment %}Additional Right Sidebar elements go here{% endcomment %} {% endblock rightsidebar %} + {% include '_right_sidebar.html' %} </div> <div class="clearer"> |