pytask/templates/base.html
changeset 69 c6bca38c1cbf
parent 60 696309b5ad59
child 126 2763afa1c2a2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/templates/base.html	Sat Jan 08 11:20:57 2011 +0530
@@ -0,0 +1,49 @@
+<html>
+<head>
+    <title>{% block title %}PyTasks{% endblock %}</title>
+    {% block js_script %} {% endblock %}
+    <link rel=stylesheet href="/static/css/base.css" type="text/css" >
+</head>
+{% load user_tags %}
+<body>
+<div id="wrapper">
+    <div id="header">
+        <h2><a href="/">PyTasks</a></h2>
+    </div>
+    <div id="container">
+        <div id="left">
+        <ul id="nav">
+            <li><a href="/" title="home">home</a></li>
+            {% if user.is_authenticated %}
+                <li><a href="/task/browse/" title="tasks">tasks</a></li>
+                <li><a href="/textbook/" title="textbook">textbooks</a></li>
+                <br />
+                <li><a href="/profile/notf/browse/" title="notifications">
+			{{ user|notf_dsp }}
+                </a></li>
+                <br>
+                <li><a href="/profile/view">profile</a></li>
+                <li><a href="/accounts/logout/">logout</a></li>
+            {% else %}
+                <li><a href="/accounts/login/" title="login">login</a></li>
+            {% endif %}
+        </ul>
+        </div>
+        <div id="center">
+            {% block content %}This is the default content{% endblock %}
+        </div>
+        <div id="right">
+            <!--{% if user.is_authenticated %}
+            <a href="/accounts/logout">logout</a> 
+            {% endif %}-->
+        </div>
+        <div class="clearer">
+        </div>
+    </div>
+    <div id="footer">
+    Designed by <a href="http://fossee.in">FOSSEE</a>
+    </div>
+</div> 
+
+</body>
+</html>