templates/task/view.html
changeset 134 3a49a7e23442
parent 126 e5377fdaf110
child 156 7cad1e92713d
equal deleted inserted replaced
133:34187a80d279 134:3a49a7e23442
     4 {% endblock %}
     4 {% endblock %}
     5 {% block content %}
     5 {% block content %}
     6     {% if task_viewable %}
     6     {% if task_viewable %}
     7         <h3>{{ task.title }}</h3><br />
     7         <h3>{{ task.title }}</h3><br />
     8         <!-- we have to write our own datetime.strftime filter and use in the next line -->
     8         <!-- we have to write our own datetime.strftime filter and use in the next line -->
     9         created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a> on {{ task.creation_datetime.ctime }}<br />
     9         created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a>
       
    10         on {{task.creation_datetime|date:"D d M Y"}} at {{task.creation_datetime|time:"H:i"}}<br />
    10 
    11 
    11         {% if is_mentor %}
    12         {% if is_mentor %}
    12         
    13         
    13             {% ifequal task.status "UP" %}
    14             {% ifequal task.status "UP" %}
    14                 <a href="/task/edit/tid={{task.id}}">Edit task</a>
    15                 <a href="/task/edit/tid={{task.id}}">Edit task</a>