templates/task/view.html
changeset 218 59107ce0a618
parent 191 3bfe70742aa8
child 219 f04a1ec7a07f
equal deleted inserted replaced
217:307f699e6102 218:59107ce0a618
    25     on {{task.creation_datetime|date:"D d M Y"}} at {{task.creation_datetime|time:"H:i"}}<br />
    25     on {{task.creation_datetime|date:"D d M Y"}} at {{task.creation_datetime|time:"H:i"}}<br />
    26     
    26     
    27     {% ifequal task.status "UP" %}
    27     {% ifequal task.status "UP" %}
    28         Task can be viewed by:
    28         Task can be viewed by:
    29     {% else %}
    29     {% else %}
    30         Mentors:
    30         Reviewers:
    31     {% endifequal %}
    31     {% endifequal %}
    32     
    32     
    33     {% for mentor in mentors %}
    33     {% for reviewer in reviewers %}
    34         <a href="/user/view/uid={{mentor.id}}">{{mentor.username}}</a>
    34         <a href="/user/view/uid={{reviewer.id}}">{{reviewer.username}}</a>
    35     {% endfor %}
    35     {% endfor %}
    36     
    36     
    37     {% if can_mod_mentors %}
    37     {% if can_mod_reviewers %}
    38         <a href="/task/addmentor/tid={{task.id}}">
    38         <a href="/task/addreviewer/tid={{task.id}}">
    39         {% ifequal task.status "UP" %}
    39         {% ifequal task.status "UP" %}
    40             Request others to view/edit the task
    40             Request others to view/edit the task
    41         {% else %}
    41         {% else %}
    42             Add another Mentor to this task
    42             Add another Reviewer to this task
    43         {% endifequal %}</a>
    43         {% endifequal %}</a>
    44     {% endif %}
    44     {% endif %}
    45     <br />
    45     <br />
    46     
    46     
    47     <hr />
    47     <hr />
   115     {% if assigned_users %}
   115     {% if assigned_users %}
   116         Users working on this task:
   116         Users working on this task:
   117         {% for user in assigned_users %}
   117         {% for user in assigned_users %}
   118             <a href="/user/view/uid={{user.id}}">{{user.username}}</a>
   118             <a href="/user/view/uid={{user.id}}">{{user.username}}</a>
   119         {% endfor %}
   119         {% endfor %}
   120         {% if is_mentor %}
   120         {% if is_reviewer %}
   121             <a href="/task/remuser/tid={{task.id}}">Remove an existing user</a>
   121             <a href="/task/remuser/tid={{task.id}}">Remove an existing user</a>
   122         {% endif %}
   122         {% endif %}
   123         <br />
   123         <br />
   124     {% endif %}
   124     {% endif %}
   125     
   125     
   127         <a href="/task/assigncredits/tid={{task.id}}">View/Assign credits</a>
   127         <a href="/task/assigncredits/tid={{task.id}}">View/Assign credits</a>
   128     {% endif %}
   128     {% endif %}
   129     
   129     
   130     {% if task_claimable %}
   130     {% if task_claimable %}
   131         <a href="/task/claim/tid={{task.id}}">
   131         <a href="/task/claim/tid={{task.id}}">
   132         {% if is_mentor %}
   132         {% if is_reviewer %}
   133             View claims
   133             View claims
   134         {% else %}
   134         {% else %}
   135             Claim the task
   135             Claim the task
   136         {% endif %}</a>
   136         {% endif %}</a>
   137     {% endif %}
   137     {% endif %}
   157             <!-- we might even want to use forms here -->
   157             <!-- we might even want to use forms here -->
   158             <textarea  name="data"></textarea><br />
   158             <textarea  name="data"></textarea><br />
   159             <input type="submit" value="Submit">
   159             <input type="submit" value="Submit">
   160             </form>
   160             </form>
   161         {% else %}
   161         {% else %}
   162             {% if is_mentor %}
   162             {% if is_reviewer %}
   163             Add comment:<br />
   163             Add comment:<br />
   164                 <form action="" method="post">
   164                 <form action="" method="post">
   165                 <!-- we might even want to use forms here -->
   165                 <!-- we might even want to use forms here -->
   166                 <textarea  name="data"></textarea><br />
   166                 <textarea  name="data"></textarea><br />
   167                 <input type="submit" value="Submit">
   167                 <input type="submit" value="Submit">