templates/task/view.html
changeset 12 a93eebabfeb1
child 16 ad6dd152aff3
equal deleted inserted replaced
11:7c9fea7e28c8 12:a93eebabfeb1
       
     1 {% extends 'base.html' %}
       
     2 {% block title %}
       
     3     {{task.title}}
       
     4 {% endblock %}
       
     5 {% block content %}
       
     6     <a href="/task/browse/pg=1">Browse tasks</a>
       
     7     <h3>{{ task.title }}</h3><br />
       
     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 />
       
    10     <br />Description:<br />
       
    11     <br />{{ task.desc }}<br />
       
    12     {% if comments %}
       
    13         <br/>comments:<br />
       
    14         {% for comment in comments %}
       
    15             <br /><a href="/user/view/uid={{comment.created_by.id}}">{{ comment.created_by.username }}</a> at {{ comment.creation_datetime.ctime }} wrote:<br />
       
    16         {{ comment.data }}<br />
       
    17         {% endfor %}
       
    18     {% endif %}
       
    19     
       
    20     {% if not is_guest %}
       
    21         <br />Add comment:<br />
       
    22         <form action="" method="post">
       
    23         <!-- we might even want to use forms here -->
       
    24         <textarea  name="data"></textarea><br />
       
    25         <input type="submit" value="Submit">
       
    26         </form>
       
    27     {% endif %}
       
    28 {% endblock %}