pytask/templates/task/view.html
author nishanth
Mon, 01 Feb 2010 11:10:29 +0530
changeset 14 f2623fb8041a
parent 9 554581fa3253
child 15 c6038cbf8a39
permissions -rw-r--r--
implemented add another mentor functionality to a task.
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 />
f2623fb8041a implemented add another mentor functionality to a task.
nishanth
parents: 9
diff changeset
    23
    view claims goes here depending on availability of claim<br />
5
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    24
    {% if comments %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    25
        <br/>comments:<br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    26
        {% for comment in comments %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    27
            <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
    28
        {{ comment.data }}<br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    29
        {% endfor %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    30
    {% endif %}
14
f2623fb8041a implemented add another mentor functionality to a task.
nishanth
parents: 9
diff changeset
    31
5
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    32
    {% if not is_guest %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    33
        <br />Add comment:<br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    34
        <form action="" method="post">
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    35
        <!-- we might even want to use forms here -->
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    36
        <textarea  name="data"></textarea><br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    37
        <input type="submit" value="Submit">
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    38
        </form>
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    39
    {% endif %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    40
{% endblock %}