templates/task/view.html
changeset 167 b61e45074ba1
parent 164 bfe621e64a16
child 171 8f31ed9817fa
equal deleted inserted replaced
166:ac72d641046e 167:b61e45074ba1
     8 
     8 
     9         {% if can_edit %}
     9         {% if can_edit %}
    10             <a href="/task/edit/tid={{task.id}}">Edit task</a>
    10             <a href="/task/edit/tid={{task.id}}">Edit task</a>
    11         {% endif %}
    11         {% endif %}
    12         
    12         
       
    13         {% if can_publish %}
       
    14             <a href="/task/publish/tid={{task.id}}">Publish task</a>
       
    15         {% endif %}
       
    16         
    13         {% if can_close %}
    17         {% if can_close %}
    14             <a href="/task/close/tid={{task.id}}">Close this task</a>
    18             <a href="/task/close/tid={{task.id}}">Close this task</a>
    15         {% endif %}
    19         {% endif %}
    16                     
    20         
    17         {% if can_publish %}
    21         {% if can_delete %}
    18             <a href="/task/publish/tid={{task.id}}">Publish task</a>
    22             <a href="/task/delete/tid={{task.id}}">Delete task</a>
    19         {% endif %}
    23         {% endif %}
    20 
    24 
    21         <hr />created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a>
    25         <hr />created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a>
    22         on {{task.creation_datetime|date:"D d M Y"}} at {{task.creation_datetime|time:"H:i"}}<br />
    26         on {{task.creation_datetime|date:"D d M Y"}} at {{task.creation_datetime|time:"H:i"}}<br />
    23         
    27