pytask/templates/task/view.html
changeset 141 ed2dadfc829a
parent 129 13e171f09941
child 143 da4c6b1cec7d
equal deleted inserted replaced
140:8fcde6f8f750 141:ed2dadfc829a
    21     {% if can_delete %}
    21     {% if can_delete %}
    22         <a href="/task/delete/tid={{task.uniq_key}}">Delete task</a>
    22         <a href="/task/delete/tid={{task.uniq_key}}">Delete task</a>
    23     {% endif %}
    23     {% endif %}
    24     -->
    24     -->
    25 
    25 
    26     <hr />created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a>
    26     <hr />created by <a href="/profile/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a>
    27     on {{task.creation_datetime|date:"D d M Y"}} at {{task.creation_datetime|time:"H:i"}}<br />
    27     on {{task.creation_datetime|date:"D d M Y"}} at {{task.creation_datetime|time:"H:i"}}<br />
    28     
    28     
    29     {% if reviewers %}
    29     {% if reviewers %}
    30 	    {% ifequal task.status "UP" %}
    30 	    {% ifequal task.status "UP" %}
    31 		Task can be viewed by:
    31 		Task can be viewed by:
    32 	    {% else %}
    32 	    {% else %}
    33 		Reviewers:
    33 		Reviewers:
    34 	    {% endifequal %}
    34 	    {% endifequal %}
    35 	    
    35 	    
    36 	    {% for reviewer in reviewers %}
    36 	    {% for reviewer in reviewers %}
    37 		<a href="/user/view/uid={{reviewer.id}}">{{reviewer.username}}</a>
    37 		<a href="/profile/user/view/uid={{reviewer.id}}">{{reviewer.username}}</a>
    38 	    {% endfor %}
    38 	    {% endfor %}
    39     {% endif %}
    39     {% endif %}
    40 
    40 
    41     
    41     
    42     {% if can_mod_reviewers %}
    42     {% if can_mod_reviewers %}
    62     {% endif %}
    62     {% endif %}
    63 
    63 
    64     
    64     
    65     <!--
    65     <!--
    66     {% ifequal task.status "CD" %}
    66     {% ifequal task.status "CD" %}
    67         Task has been closed by <a href="/user/view={{closing_notification.sent_from.id}}">{{closing_notification.sent_from.username}}</a>
    67         Task has been closed by <a href="/profile/user/view={{closing_notification.sent_from.id}}">{{closing_notification.sent_from.username}}</a>
    68         on {{closing_notification.sent_date|date:"D d M Y"}} at {{closing_notification.sent_date|time:"H:i"}}<br />
    68         on {{closing_notification.sent_date|date:"D d M Y"}} at {{closing_notification.sent_date|time:"H:i"}}<br />
    69         <b>Reason: </b>{{closing_notification.remarks}}<br />
    69         <b>Reason: </b>{{closing_notification.remarks}}<br />
    70     {% endifequal %}
    70     {% endifequal %}
    71     
    71     
    72     {% ifequal task.status "CM" %}
    72     {% ifequal task.status "CM" %}
    73         Task has been marked complete by <a href="/user/view={{completed_notification.sent_from.id}}">
    73         Task has been marked complete by <a href="/profile/user/view={{completed_notification.sent_from.id}}">
    74         {{completed_notification.sent_from.username}}</a>
    74         {{completed_notification.sent_from.username}}</a>
    75         on {{completed_notification.sent_date|date:"D d M Y"}} at {{completed_notification.sent_date|time:"H:i"}}<br />
    75         on {{completed_notification.sent_date|date:"D d M Y"}} at {{completed_notification.sent_date|time:"H:i"}}<br />
    76     {% endifequal %}
    76     {% endifequal %}
    77         
    77         
    78     {% ifequal task.status "OP" %}
    78     {% ifequal task.status "OP" %}
    85     -->
    85     -->
    86         
    86         
    87     {% if selected_users %}
    87     {% if selected_users %}
    88         Users working on this task:
    88         Users working on this task:
    89         {% for user in selected_users %}
    89         {% for user in selected_users %}
    90             <a href="/user/view/uid={{user.id}}">{{user.username}}</a>
    90             <a href="/profile/user/view/uid={{user.id}}">{{user.username}}</a>
    91         {% endfor %}
    91         {% endfor %}
    92         <br />
    92         <br />
    93     {% endif %}
    93     {% endif %}
    94     
    94     
    95     {% if task_claimable %}
    95     {% if task_claimable %}
   106     
   106     
   107         <hr />
   107         <hr />
   108     {% if comments %}
   108     {% if comments %}
   109         comments:<br /><br />
   109         comments:<br /><br />
   110         {% for comment in comments %}
   110         {% for comment in comments %}
   111             <a href="/user/view/uid={{comment.commented_by.id}}">{{ comment.commented_by.username }}</a> 
   111             <a href="/profile/user/view/uid={{comment.commented_by.id}}">{{ comment.commented_by.username }}</a> 
   112             on {{ comment.comment_datetime|date:"D d M Y"}} at {{comment.comment_datetime|time:"H:i"}} wrote:<br />
   112             on {{ comment.comment_datetime|date:"D d M Y"}} at {{comment.comment_datetime|time:"H:i"}} wrote:<br />
   113         {{ comment.data|linebreaksbr }}<br />
   113         {{ comment.data|linebreaksbr }}<br />
   114         {% endfor %}
   114         {% endfor %}
   115     {% endif %}
   115     {% endif %}
   116     <hr />
   116     <hr />