home_page is now in some shape
authorNishanth Amuluru <nishanth@fossee.in>
Sun, 09 Jan 2011 15:09:13 +0530
changeset 364 2763afa1c2a2
parent 363 9b0812962133
child 365 32457bce3437
home_page is now in some shape
pytask/templates/base.html
pytask/templates/index.html
pytask/templates/registration/login.html
--- a/pytask/templates/base.html	Sun Jan 09 15:01:30 2011 +0530
+++ b/pytask/templates/base.html	Sun Jan 09 15:09:13 2011 +0530
@@ -14,10 +14,11 @@
         <div id="left">
         <ul id="nav">
             <li><a href="/" title="home">home</a></li>
-            {% if user.is_authenticated %}
+	    <br />
                 <li><a href="/task/browse/" title="tasks">tasks</a></li>
                 <li><a href="/textbook/" title="textbook">textbooks</a></li>
                 <br />
+            {% if user.is_authenticated %}
                 <li><a href="/profile/notf/browse/" title="notifications">
 			{{ user|notf_dsp }}
                 </a></li>
@@ -25,6 +26,7 @@
                 <li><a href="/profile/view">profile</a></li>
                 <li><a href="/accounts/logout/">logout</a></li>
             {% else %}
+                <li><a href="/accounts/register/" title="register">register</a></li>
                 <li><a href="/accounts/login/" title="login">login</a></li>
             {% endif %}
         </ul>
--- a/pytask/templates/index.html	Sun Jan 09 15:01:30 2011 +0530
+++ b/pytask/templates/index.html	Sun Jan 09 15:09:13 2011 +0530
@@ -1,9 +1,9 @@
 {% extends 'base.html' %}
 {% block content %}
     {% if not user %}
-        Welcome Guest<br>
-        <a href="/accounts/register/">Register</a>
-        <a href="/accounts/login/">Login</a><br /><br />
+    Checkout the tasks on the left panel for tasks that have been recently created.<br />
+    Checkout the textbooks for textbooks that have been added to the project.<br />
+
     {% else %}
         Logged in as {{ user.username }} <br /><br />
     {% endif %}
--- a/pytask/templates/registration/login.html	Sun Jan 09 15:01:30 2011 +0530
+++ b/pytask/templates/registration/login.html	Sun Jan 09 15:09:13 2011 +0530
@@ -5,6 +5,5 @@
 {{ form.as_p }}
 <input type="submit" value="Login" />
 </form>
-<a href="/accounts/register">New User Sign up</a>
 <a href="/accounts/password/reset">Forgot password?</a>
 {% endblock %}