templates/task/view.html
changeset 70 a14ec2f09beb
parent 69 49532a0f5071
child 72 9fc60a221016
equal deleted inserted replaced
69:49532a0f5071 70:a14ec2f09beb
     2 {% block title %}
     2 {% block title %}
     3     {{task.title}}
     3     {{task.title}}
     4 {% endblock %}
     4 {% endblock %}
     5 {% block content %}
     5 {% block content %}
     6     {% if task_viewable %}
     6     {% if task_viewable %}
     7         <a href="/task/browse/">Browse tasks</a>
     7         <a href="/task/edit/tid={{task.id}}">Edit task</a>
     8         <h3>{{ task.title }}</h3><br />
     8         <h3>{{ task.title }}</h3><br />
     9         <!-- we have to write our own datetime.strftime filter and use in the next line -->
     9         <!-- we have to write our own datetime.strftime filter and use in the next line -->
    10         created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a> on {{ task.creation_datetime.ctime }}<br />
    10         created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a> on {{ task.creation_datetime.ctime }}<br />
    11         Mentors:
    11         Mentors:
    12         {% for mentor in mentors %}
    12         {% for mentor in mentors %}
    13             <a href="/user/view/uid={{mentor.id}}">{{mentor.username}}|</a>
    13             <a href="/user/view/uid={{mentor.id}}">{{mentor.username}}|</a>
    14         {% endfor %}
    14         {% endfor %}
    15         {% if can_mod_mentors %}
    15         {% if can_mod_mentors %}
    16             <br /><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