pytask/templates/task/view.html
author nishanth
Sat, 30 Jan 2010 13:03:09 +0530
changeset 11 d28fcc644fbb
parent 9 554581fa3253
child 14 f2623fb8041a
permissions -rw-r--r--
implemented create task view which needed task.py in events. added a method show_msg to views/user.py and used it in logoff view.
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 />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    10
    <br />Description:<br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    11
    <br />{{ task.desc }}<br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    12
    {% if comments %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    13
        <br/>comments:<br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    14
        {% for comment in comments %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    15
            <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
    16
        {{ comment.data }}<br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    17
        {% endfor %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    18
    {% endif %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    19
    
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    20
    {% if not is_guest %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    21
        <br />Add comment:<br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    22
        <form action="" method="post">
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    23
        <!-- we might even want to use forms here -->
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    24
        <textarea  name="data"></textarea><br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    25
        <input type="submit" value="Submit">
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    26
        </form>
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    27
    {% endif %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    28
{% endblock %}