diff options
author | nishanth | 2010-02-04 22:12:48 +0530 |
---|---|---|
committer | nishanth | 2010-02-04 22:12:48 +0530 |
commit | 6abcf4483cdfed7da478c626f48d22bee8448047 (patch) | |
tree | 505dc76ec291e7cf3c4e23add3ec1cca44f334c0 /templates/task/view.html | |
parent | 3ed1f252c1d278fe306f533742d4016f5d3ba49e (diff) | |
download | pytask-6abcf4483cdfed7da478c626f48d22bee8448047.tar.gz pytask-6abcf4483cdfed7da478c626f48d22bee8448047.tar.bz2 pytask-6abcf4483cdfed7da478c626f48d22bee8448047.zip |
created forms, views, templates, actions for home_page, browse_task.
Diffstat (limited to 'templates/task/view.html')
-rw-r--r-- | templates/task/view.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/task/view.html b/templates/task/view.html new file mode 100644 index 0000000..62393dd --- /dev/null +++ b/templates/task/view.html @@ -0,0 +1,28 @@ +{% extends 'base.html' %} +{% block title %} + {{task.title}} +{% endblock %} +{% block content %} + <a href="/task/browse/pg=1">Browse tasks</a> + <h3>{{ task.title }}</h3><br /> + <!-- we have to write our own datetime.strftime filter and use in the next line --> + created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a> on {{ task.creation_datetime.ctime }}<br /> + <br />Description:<br /> + <br />{{ task.desc }}<br /> + {% if comments %} + <br/>comments:<br /> + {% for comment in comments %} + <br /><a href="/user/view/uid={{comment.created_by.id}}">{{ comment.created_by.username }}</a> at {{ comment.creation_datetime.ctime }} wrote:<br /> + {{ comment.data }}<br /> + {% endfor %} + {% endif %} + + {% if not is_guest %} + <br />Add comment:<br /> + <form action="" method="post"> + <!-- we might even want to use forms here --> + <textarea name="data"></textarea><br /> + <input type="submit" value="Submit"> + </form> + {% endif %} +{% endblock %} |