templates/task/view.html
changeset 96 2881ed1c52b0
parent 95 e4034904f82e
child 111 c272d4c601cd
equal deleted inserted replaced
95:e4034904f82e 96:2881ed1c52b0
     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/edit/tid={{task.id}}">Edit task</a>
     7         {% if is_mentor %}
       
     8             <a href="/task/edit/tid={{task.id}}">Edit task</a>
       
     9         {% endif %}
     8         <h3>{{ task.title }}</h3><br />
    10         <h3>{{ task.title }}</h3><br />
     9         <!-- we have to write our own datetime.strftime filter and use in the next line -->
    11         <!-- 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 />
    12         created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a> on {{ task.creation_datetime.ctime }}<br />
    11         Mentors:
    13         Mentors:
    12         {% for mentor in mentors %}
    14         {% for mentor in mentors %}