pytask/templates/task/claim.html
changeset 118 f88135529c74
parent 116 124ccd27ed4f
child 119 ec7f2f4256f5
equal deleted inserted replaced
117:c693def6510f 118:f88135529c74
     1 {% extends 'base.html' %}
     1 {% extends 'base.html' %}
     2 {% block content %}
     2 {% block content %}
     3     {% if can_claim %}
     3     {% if can_claim %}
     4     Propose a claim to work on this task.<br />
     4     Propose a claim to work on this task.<br />
     5     {% endif %}
     5     {% endif %}
     6     {% if claims %}
     6     {% if old_claims %}
     7         List of all the claims for the task <a href="/task/view/tid={{task.uniq_key}}">{{task.title}}</a><br />
     7         List of all the claims for the task <a href="/task/view/tid={{task.uniq_key}}">{{task.title}}</a><br />
     8         {% for claim in claims %}
     8         {% for claim in old_claims %}
     9             <hr />
     9             <hr />
    10             <a href="/user/view/uid={{claim.claimed_by.id}}">{{claim.claimed_by.username}}</a>
    10             <a href="/user/view/uid={{claim.claimed_by.id}}">{{claim.claimed_by.username}}</a>
    11             on {{claim.claim_datetime|date:"D d M Y"}} at {{claim.claim_datetime|time:"H:i"}} wrote:<br />
    11             on {{claim.claim_datetime|date:"D d M Y"}} at {{claim.claim_datetime|time:"H:i"}} wrote:<br />
    12             {{claim.proposal|linebreaksbr}}<br />
    12             {{claim.proposal|linebreaksbr}}<br />
    13         {% endfor %}
    13         {% endfor %}
    18                 Be the first to claim the task.<br />
    18                 Be the first to claim the task.<br />
    19             {% endif %}
    19             {% endif %}
    20         {% else %}
    20         {% else %}
    21             The task cannot be claimed at this stage.<br />
    21             The task cannot be claimed at this stage.<br />
    22         {% endif %}
    22         {% endif %}
    23         <a href="/task/view/tid={{task.id}}">Click here</a> to view the task.<br />
       
    24     {% endif %}
    23     {% endif %}
    25     {% if task_claimed and is_creator %}
    24     {% if task_claimed and is_creator %}
    26         <a href="/task/select/tid={{task.id}}">Select a user to assign the work.</a>
    25         <a href="/task/select/tid={{task.id}}">Select a user to assign the work.</a>
    27     {% endif %}
    26     {% endif %}
    28 
    27