pytask/templates/task/view.html
author anoop
Mon, 01 Feb 2010 17:30:30 +0530
changeset 22 943a35c14cf7
parent 18 293692eb8f06
permissions -rw-r--r--
added browse users functionality, added user/browse.html, fixed view my profile template.
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 />
18
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents: 15
diff changeset
    23
    {% if assigned_user %}
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents: 15
diff changeset
    24
        Task has been assigned to <a href="/user/view/uid={{assigned_user.id}}">{{assigned_user.username}}</a><br />
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents: 15
diff changeset
    25
    {% endif %}
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents: 15
diff changeset
    26
    {% if not is_guest %}
15
c6038cbf8a39 addded link to view claims in 'view task' page .
nishanth
parents: 14
diff changeset
    27
        <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
    28
    {% endif %}
c6038cbf8a39 addded link to view claims in 'view task' page .
nishanth
parents: 14
diff changeset
    29
    
5
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    30
    {% if comments %}
18
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents: 15
diff changeset
    31
        <hr />
5
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    32
        <br/>comments:<br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    33
        {% for comment in comments %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    34
            <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
    35
        {{ comment.data }}<br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    36
        {% endfor %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    37
    {% endif %}
14
f2623fb8041a implemented add another mentor functionality to a task.
nishanth
parents: 9
diff changeset
    38
5
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    39
    {% if not is_guest %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    40
        <br />Add comment:<br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    41
        <form action="" method="post">
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    42
        <!-- we might even want to use forms here -->
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    43
        <textarea  name="data"></textarea><br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    44
        <input type="submit" value="Submit">
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    45
        </form>
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    46
    {% endif %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    47
{% endblock %}