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