templates/task/view.html
changeset 72 9fc60a221016
parent 70 a14ec2f09beb
child 76 00a41fbf4958
equal deleted inserted replaced
70:a14ec2f09beb 72:9fc60a221016
    15         {% if can_mod_mentors %}
    15         {% if can_mod_mentors %}
    16             <a href="/task/addmentor/tid={{task.id}}">Add another Mentor to this task</a><br />
    16             <a href="/task/addmentor/tid={{task.id}}">Add another Mentor to this task</a><br />
    17             edit task goes here and it should contain all those add subs and add deps depending on availability<br />
    17             edit task goes here and it should contain all those add subs and add deps depending on availability<br />
    18         {% endif %}
    18         {% endif %}
    19 
    19 
    20         {%  if deps %}
    20         {% if deps %}
    21             <br />The task has following dependencies
    21             <br />The task has following dependencies
    22             {% for dep in deps %}
    22             {% for dep in deps %}
    23                 <a href="/task/view/tid={{dep.id}}">{{dep.title}}</a><br />
    23                 <a href="/task/view/tid={{dep.id}}">{{dep.title}}</a><br />
    24             {% endfor %}
    24             {% endfor %}
    25             {% if can_mod_tasks %}
    25             {% if can_mod_tasks %}
    26                 <a href="/task/addtask/tid={{task.id}}">add more dependencies</a>
    26                 <a href="/task/addtask/tid={{task.id}}">add more dependencies</a>
    27                 <a href="/task/remtask/tid={{task.id}}">remove an existing dependency</a>
    27                 <a href="/task/remtask/tid={{task.id}}">remove an existing dependency</a>
    28             {% endif %}
    28             {% endif %}
    29         {% else %}
    29         {% else %}
    30             {%if can_mod_tasks %}
    30             {% if can_mod_tasks %}
    31                 <a href="/task/addtask/tid={{task.id}}">add a subtask/dependency </a>
    31                 <a href="/task/addtask/tid={{task.id}}">add a subtask/dependency </a>
    32             {%endif%}
    32             {% endif %}
    33         {% endif %}
    33         {% endif %}
    34         
    34         
    35         <hr>
    35         <hr>
    36         <br />Description:<br />
    36         <br />Description:<br />
    37         <br />{{ task.desc }}<br />
    37         <br />{{ task.desc }}<br />
    41         {% if assigned_users %}
    41         {% if assigned_users %}
    42             Users working on this task:
    42             Users working on this task:
    43             {% for user in assigned_users %}
    43             {% for user in assigned_users %}
    44                 <a href="/user/view/uid={{user.id}}">{{user.username}}</a>|
    44                 <a href="/user/view/uid={{user.id}}">{{user.username}}</a>|
    45             {% endfor %}
    45             {% endfor %}
       
    46             {% if is_mentor %}
       
    47                 <a href="/task/user/remove/">Remove an existing user</a>
    46             <br />
    48             <br />
       
    49             {% endif %}
    47         {% endif %}
    50         {% endif %}
    48         {%if can_assign_credits%}
    51         {% if can_assign_credits %}
    49             <a href="/task/assigncredits/tid={{task.id}}">Assign credits</a>
    52             <a href="/task/assigncredits/tid={{task.id}}">Assign credits</a>
    50         {%endif%}
    53         {% endif %}
    51         {% if not is_guest %}
    54         {% if not is_guest and task_claimable %}
    52             <a href="/task/claim/tid={{task.id}}">View claims</a><br />
    55             <a href="/task/claim/tid={{task.id}}">View claims</a><br />
    53         {% endif %}
    56         {% endif %}
    54         
    57         
    55         {% if comments %}
    58         {% if comments %}
    56             <hr />
    59             <hr />