summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authornishanth2010-02-05 16:05:54 +0530
committernishanth2010-02-05 16:05:54 +0530
commitd3e9b0e20c7ab78a4d31fca706459ea72c4ea0ec (patch)
treef10883fb6eef2dc169d96842cfcb6af5cdc45099 /templates
parent68aadc0ccab2fce65c3ade8fb495c375465c7e5e (diff)
downloadpytask-d3e9b0e20c7ab78a4d31fca706459ea72c4ea0ec.tar.gz
pytask-d3e9b0e20c7ab78a4d31fca706459ea72c4ea0ec.tar.bz2
pytask-d3e9b0e20c7ab78a4d31fca706459ea72c4ea0ec.zip
fixed a bug in templates/task/claim.html which required modification of views/task.py; also changed the no.of char limit on task title .
Diffstat (limited to 'templates')
-rw-r--r--templates/task/claim.html18
1 files changed, 11 insertions, 7 deletions
diff --git a/templates/task/claim.html b/templates/task/claim.html
index e758f42..26eceef 100644
--- a/templates/task/claim.html
+++ b/templates/task/claim.html
@@ -1,12 +1,16 @@
{% extends 'base.html' %}
{% block content %}
- List of all the claims for the task <a href="/task/view/tid={{task.id}}">{{task.title}}</a><br />
- {% for claim in claims %}
- <hr />
- <a href="/user/view/uid={{claim.user.id}}">{{claim.user.username}}</a> at {{claim.creation_datetime.ctime}} wrote:<br />
- {{claim.message}}<br />
- {% endfor %}
- {% if task_claimable and is_mentor %}
+ {% if claims %}
+ List of all the claims for the task <a href="/task/view/tid={{task.id}}">{{task.title}}</a><br />
+ {% for claim in claims %}
+ <hr />
+ <a href="/user/view/uid={{claim.user.id}}">{{claim.user.username}}</a> at {{claim.creation_datetime.ctime}} wrote:<br />
+ {{claim.message}}<br />
+ {% endfor %}
+ {% else %}
+ There are no claims for task <a href="/task/view/tid={{task.id}}">{{task.title}}</a> yet.
+ {% endif %}
+ {% if task_claimed and is_mentor %}
<a href="/task/assign/tid={{task.id}}">Assign task</a>
{% endif %}
{% if user_can_claim %}