author | nishanth |
Fri, 29 Jan 2010 19:27:26 +0530 | |
changeset 5 | aea7e764c033 |
child 9 | 554581fa3253 |
permissions | -rw-r--r-- |
5
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
1 |
{% extends 'base.html' %} |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
2 |
{% block title %} |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
3 |
{{task.title}} |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
4 |
{% endblock %} |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
5 |
{% block content %} |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
6 |
<a href="/task/browse/pg=1">Browse tasks</a> |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
7 |
<h3>{{ task.title }}</h3><br /> |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
8 |
<!-- we have to write our own datetime.strftime filter and use in the next line --> |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
9 |
created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a> on {{ task.creation_datetime.ctime }}<br /> |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
10 |
<br />Description:<br /> |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
11 |
<br />{{ task.desc }}<br /> |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
12 |
{% if comments %} |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
13 |
<br/>comments:<br /> |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
14 |
{% for comment in comments %} |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
15 |
<br /><a href="/user/view/uid={{comment.created_by.id}}">{{ comment.created_by.username }}</a> at {{ comment.creation_datetime.ctime }} wrote:<br /> |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
16 |
{{ comment.data }}<br /> |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
17 |
{% endfor %} |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
18 |
{% endif %} |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
19 |
|
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
20 |
{% if not is_guest %} |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
21 |
<br />Add comment:<br /> |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
22 |
<form action="" method="post"> |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
23 |
<!-- we might even want to use forms here --> |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
24 |
<textarea name="data"></textarea><br /> |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
25 |
<input type="submit" value="Submit"> |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
26 |
</form> |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
27 |
{% endif %} |
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff
changeset
|
28 |
{% endblock %} |