pytask/templates/task/view.html
changeset 14 f2623fb8041a
parent 9 554581fa3253
child 15 c6038cbf8a39
equal deleted inserted replaced
13:4da58abdf6ff 14:f2623fb8041a
     5 {% block content %}
     5 {% block content %}
     6     <a href="/task/browse/">Browse tasks</a>
     6     <a href="/task/browse/">Browse tasks</a>
     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> on {{ task.creation_datetime.ctime }}<br />
       
    10     Mentors:
       
    11     {% for mentor in mentors %}
       
    12         <a href="/user/view/uid={{mentor.id}}">{{mentor.username}}|</a>
       
    13     {% endfor %}
       
    14     {% if is_mentor %}
       
    15         <br /><a href="/task/addmentor/tid={{task.id}}">Add another Mentor to this task</a><br />
       
    16         edit task goes here and it should contain all those add subs and add deps depending on availability<br />
       
    17     {% endif %}
       
    18     <hr>
    10     <br />Description:<br />
    19     <br />Description:<br />
    11     <br />{{ task.desc }}<br />
    20     <br />{{ task.desc }}<br />
       
    21     <hr>
       
    22     status of task is {{task.status}}<br />
       
    23     view claims goes here depending on availability of claim<br />
    12     {% if comments %}
    24     {% if comments %}
    13         <br/>comments:<br />
    25         <br/>comments:<br />
    14         {% for comment in comments %}
    26         {% 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 />
    27             <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 />
    28         {{ comment.data }}<br />
    17         {% endfor %}
    29         {% endfor %}
    18     {% endif %}
    30     {% endif %}
    19     
    31 
    20     {% if not is_guest %}
    32     {% if not is_guest %}
    21         <br />Add comment:<br />
    33         <br />Add comment:<br />
    22         <form action="" method="post">
    34         <form action="" method="post">
    23         <!-- we might even want to use forms here -->
    35         <!-- we might even want to use forms here -->
    24         <textarea  name="data"></textarea><br />
    36         <textarea  name="data"></textarea><br />