changeset 543 | 57b0f8f80ebf |
parent 508 | 438afe31fffd |
child 547 | 1bfa67f465b4 |
--- a/pytask/templates/task/view.html Tue Feb 01 04:33:35 2011 +0530 +++ b/pytask/templates/task/view.html Tue Feb 01 04:34:05 2011 +0530 @@ -15,7 +15,13 @@ <h3>{{ task.title }}</h3> {% if can_edit %} - <a href="{% url edit_task task.id %}">Edit task</a> + {% if edit_url %} + <a href="{{ edit_url }}"> + {% else %} + <a href="{% url edit_task task.id %}"> + {% endif %} + Edit task + </a> {% endif %} {% if can_approve %}