summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authornishanth2010-02-04 22:12:48 +0530
committernishanth2010-02-04 22:12:48 +0530
commit6abcf4483cdfed7da478c626f48d22bee8448047 (patch)
tree505dc76ec291e7cf3c4e23add3ec1cca44f334c0 /templates/index.html
parent3ed1f252c1d278fe306f533742d4016f5d3ba49e (diff)
downloadpytask-6abcf4483cdfed7da478c626f48d22bee8448047.tar.gz
pytask-6abcf4483cdfed7da478c626f48d22bee8448047.tar.bz2
pytask-6abcf4483cdfed7da478c626f48d22bee8448047.zip
created forms, views, templates, actions for home_page, browse_task.
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..3154221
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,22 @@
+{% extends 'base.html' %}
+{% block content %}
+ {% if is_guest %}
+ Welcome Guest<br>
+ <a href="/accounts/register/">Register</a>
+ <a href="/accounts/login/">Login</a><br /><br />
+ Recent Tasks:<br />
+ {% for task in task_list %}
+ <a href="/task/view/tid={{ task.id }}">{{ task.title }}</a><br />
+ {% endfor %}
+ {% else %}
+ Welcome {{ user.username }} <br />
+ <a href="/accounts/logout/">logout</a><br />
+ <br />
+ <a href="/task/browse/">Tasks</a><br />
+ <a href="/user/browse/">Users</a><br />
+ <a href="/user/view/uid={{user.id}}">My Profile</a><br />
+ {% endif %}
+ {% if can_create_task %}
+ <a href="/task/create/">Create a task</a><br />
+ {% endif %}
+{% endblock %}