pytask/templates/task/view.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 21 Jan 2011 02:11:25 +0530
changeset 506 db2edf922849
parent 488 c4e9771a274b
child 508 438afe31fffd
permissions -rw-r--r--
Fix styling issues.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
431
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
     1
{% extends "base.html" %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
     2
506
db2edf922849 Fix styling issues.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 488
diff changeset
     3
435
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
     4
{% load form_helpers %}
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
     5
349
1cc8d0b2eefb commenting on a task works as of now and there is a lot to do with view task
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     6
{% block title %}
431
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
     7
  {{task.title}}
349
1cc8d0b2eefb commenting on a task works as of now and there is a lot to do with view task
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     8
{% endblock %}
431
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
     9
349
1cc8d0b2eefb commenting on a task works as of now and there is a lot to do with view task
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    10
{% block content %}
431
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    11
  <h3>{{ task.title }}</h3>
417
b37e541bf950 Manipulate all the templates to use {% url %} templatetag instead of hard coded URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 382
diff changeset
    12
431
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    13
  {% if can_edit %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    14
    <a href="{% url edit_task task.id %}">Edit task</a>
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    15
  {% endif %}
349
1cc8d0b2eefb commenting on a task works as of now and there is a lot to do with view task
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    16
431
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    17
  {% if can_approve %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    18
    <a href="{% url approve_task task.id %}">Approve task</a>
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    19
  {% endif %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    20
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    21
  {% if can_close %}
435
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    22
    <a href="{% url close_task task.id %}">Close task</a>
431
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    23
  {% endif %}
350
4cc40503bf3c view task is now in some shape atleast
Nishanth Amuluru <nishanth@fossee.in>
parents: 349
diff changeset
    24
431
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    25
  <hr />created by
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    26
  <a href="{% url view_user_profile task.created_by.id %}">
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    27
    {{ task.created_by.username }}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    28
  </a>
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    29
  on {{task.creation_datetime|date:"D d M Y"}} at 
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    30
  {{task.creation_datetime|time:"H:i"}}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    31
  <br />
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    32
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    33
  {% if reviewers %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    34
    Reviewers:
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    35
    {% for reviewer in reviewers %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    36
      <a href="{% url view_user_profile reviewer.id %}">{{reviewer.username}}</a>
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    37
    {% endfor %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    38
  {% endif %}
349
1cc8d0b2eefb commenting on a task works as of now and there is a lot to do with view task
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    39
431
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    40
  {% if can_mod_reviewers %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    41
    <a href="{% url addreviewer_task task.id %}">
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    42
    Add a Reviewer to this task</a>
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    43
  {% endif %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    44
  <br />
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    45
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    46
  <hr />
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    47
  <b>Description:</b><br />
350
4cc40503bf3c view task is now in some shape atleast
Nishanth Amuluru <nishanth@fossee.in>
parents: 349
diff changeset
    48
431
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    49
  {{ task.desc|linebreaksbr }}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    50
  <br /><br /><hr />
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    51
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    52
  {% if task.tags.count %}
417
b37e541bf950 Manipulate all the templates to use {% url %} templatetag instead of hard coded URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 382
diff changeset
    53
431
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    54
    Tags: 
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    55
    {% for tag in task.tags %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    56
      {{tag}}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    57
    {% endfor %}
365
32457bce3437 prettified a few pages
Nishanth Amuluru <nishanth@fossee.in>
parents: 356
diff changeset
    58
    <hr />
349
1cc8d0b2eefb commenting on a task works as of now and there is a lot to do with view task
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    59
431
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    60
  {% endif %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    61
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    62
  {% if selected_users %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    63
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    64
    Users working on this task:
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    65
    {% for user in selected_users %}
488
c4e9771a274b Use the right url reverse name for profile views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    66
      <a href="{% url view_user_profile user.id %}">{{user.username}}</a>
431
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    67
    {% endfor %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    68
    <br />
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    69
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    70
  {% endif %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    71
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    72
  {% if task_claimable %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    73
    <a href="{% url claim_task task.id %}">View claims</a>
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    74
  {% endif %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    75
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    76
  <a href="{% url view_work task.id %}">View submitted work reports</a>
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    77
  <hr />
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    78
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    79
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    80
  {% if comments %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    81
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    82
    comments:<br /><br />
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    83
    {% for comment in comments %}
488
c4e9771a274b Use the right url reverse name for profile views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    84
      <a href="{% url view_user_profile comment.commented_by.id %}">
431
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    85
        {{ comment.commented_by.username }}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    86
      </a> 
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    87
      on {{ comment.comment_datetime|date:"D d M Y"}} at 
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    88
      {{comment.comment_datetime|time:"H:i"}} wrote:
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    89
      <br />
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    90
      {{ comment.data|linebreaksbr }}<br />
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    91
    {% endfor %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    92
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    93
  {% endif %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    94
  <hr />
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    95
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    96
  {% if can_comment %}
350
4cc40503bf3c view task is now in some shape atleast
Nishanth Amuluru <nishanth@fossee.in>
parents: 349
diff changeset
    97
    Add comment:<br />
431
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    98
    {% as_div_form form "Comment Form" csrf_token "Submit" %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
    99
  {% endif %}
350
4cc40503bf3c view task is now in some shape atleast
Nishanth Amuluru <nishanth@fossee.in>
parents: 349
diff changeset
   100
349
1cc8d0b2eefb commenting on a task works as of now and there is a lot to do with view task
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
   101
{% endblock %}