templates/task/view.html
changeset 176 13ceb76fd0a3
parent 171 8f31ed9817fa
child 185 f65e62255e47
equal deleted inserted replaced
175:10a488a6fbba 176:13ceb76fd0a3
   134             <hr />
   134             <hr />
   135             comments:<br /><br />
   135             comments:<br /><br />
   136             {% for comment in comments %}
   136             {% for comment in comments %}
   137                 <a href="/user/view/uid={{comment.created_by.id}}">{{ comment.created_by.username }}</a> 
   137                 <a href="/user/view/uid={{comment.created_by.id}}">{{ comment.created_by.username }}</a> 
   138                 on {{ comment.creation_datetime|date:"D d M Y"}} at {{comment.creation_datetime|time:"H:i"}} wrote:<br />
   138                 on {{ comment.creation_datetime|date:"D d M Y"}} at {{comment.creation_datetime|time:"H:i"}} wrote:<br />
   139             {{ comment.data }}<br /><br />
   139             {{ comment.data|linebreaksbr }}<br /><br />
   140             {% endfor %}
   140             {% endfor %}
   141         {% endif %}
   141         {% endif %}
   142 
   142 
   143         {% if not is_guest %}
   143         {% if not is_guest %}
   144         <hr />
   144         <hr />
       
   145         {% if error_msg %}
       
   146             {{error_msg}}<br />
       
   147         {% endif %}
   145             {% ifnotequal task.status "CM" %}
   148             {% ifnotequal task.status "CM" %}
   146                 Add comment:<br />
   149                 Add comment:<br />
   147                 <form action="" method="post">
   150                 <form action="" method="post">
   148                 <!-- we might even want to use forms here -->
   151                 <!-- we might even want to use forms here -->
   149                 <textarea  name="data"></textarea><br />
   152                 <textarea  name="data"></textarea><br />