pytask/templates/task/view.html
author nishanth
Mon, 01 Feb 2010 11:41:26 +0530
changeset 15 c6038cbf8a39
parent 14 f2623fb8041a
child 18 293692eb8f06
permissions -rw-r--r--
addded link to view claims in 'view task' page .
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
     1
{% extends 'base.html' %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
     2
{% block title %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
     3
    {{task.title}}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
     4
{% endblock %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
     5
{% block content %}
9
554581fa3253 corrected a bug in task/view.html .
nishanth
parents: 5
diff changeset
     6
    <a href="/task/browse/">Browse tasks</a>
5
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
     7
    <h3>{{ task.title }}</h3><br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
     8
    <!-- we have to write our own datetime.strftime filter and use in the next line -->
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
     9
    created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a> on {{ task.creation_datetime.ctime }}<br />
14
f2623fb8041a implemented add another mentor functionality to a task.
nishanth
parents: 9
diff changeset
    10
    Mentors:
f2623fb8041a implemented add another mentor functionality to a task.
nishanth
parents: 9
diff changeset
    11
    {% for mentor in mentors %}
f2623fb8041a implemented add another mentor functionality to a task.
nishanth
parents: 9
diff changeset
    12
        <a href="/user/view/uid={{mentor.id}}">{{mentor.username}}|</a>
f2623fb8041a implemented add another mentor functionality to a task.
nishanth
parents: 9
diff changeset
    13
    {% endfor %}
f2623fb8041a implemented add another mentor functionality to a task.
nishanth
parents: 9
diff changeset
    14
    {% if is_mentor %}
f2623fb8041a implemented add another mentor functionality to a task.
nishanth
parents: 9
diff changeset
    15
        <br /><a href="/task/addmentor/tid={{task.id}}">Add another Mentor to this task</a><br />
f2623fb8041a implemented add another mentor functionality to a task.
nishanth
parents: 9
diff changeset
    16
        edit task goes here and it should contain all those add subs and add deps depending on availability<br />
f2623fb8041a implemented add another mentor functionality to a task.
nishanth
parents: 9
diff changeset
    17
    {% endif %}
f2623fb8041a implemented add another mentor functionality to a task.
nishanth
parents: 9
diff changeset
    18
    <hr>
5
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    19
    <br />Description:<br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    20
    <br />{{ task.desc }}<br />
14
f2623fb8041a implemented add another mentor functionality to a task.
nishanth
parents: 9
diff changeset
    21
    <hr>
f2623fb8041a implemented add another mentor functionality to a task.
nishanth
parents: 9
diff changeset
    22
    status of task is {{task.status}}<br />
15
c6038cbf8a39 addded link to view claims in 'view task' page .
nishanth
parents: 14
diff changeset
    23
    {% if user_can_view_claim %}
c6038cbf8a39 addded link to view claims in 'view task' page .
nishanth
parents: 14
diff changeset
    24
        <a href="/task/claim/tid={{task.id}}">View claims</a><br />
c6038cbf8a39 addded link to view claims in 'view task' page .
nishanth
parents: 14
diff changeset
    25
        view claims goes here depending on availability of claim<br />
c6038cbf8a39 addded link to view claims in 'view task' page .
nishanth
parents: 14
diff changeset
    26
    {% endif %}
c6038cbf8a39 addded link to view claims in 'view task' page .
nishanth
parents: 14
diff changeset
    27
    
5
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    28
    {% if comments %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    29
        <br/>comments:<br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    30
        {% for comment in comments %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    31
            <br /><a href="/user/view/uid={{comment.created_by.id}}">{{ comment.created_by.username }}</a> at {{ comment.creation_datetime.ctime }} wrote:<br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    32
        {{ comment.data }}<br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    33
        {% endfor %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    34
    {% endif %}
14
f2623fb8041a implemented add another mentor functionality to a task.
nishanth
parents: 9
diff changeset
    35
5
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    36
    {% if not is_guest %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    37
        <br />Add comment:<br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    38
        <form action="" method="post">
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    39
        <!-- we might even want to use forms here -->
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    40
        <textarea  name="data"></textarea><br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    41
        <input type="submit" value="Submit">
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    42
        </form>
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    43
    {% endif %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    44
{% endblock %}