diff --git a/todo/templates/todo/view_list.html b/todo/templates/todo/view_list.html index f0a2d28..46a08e3 100644 --- a/todo/templates/todo/view_list.html +++ b/todo/templates/todo/view_list.html @@ -90,11 +90,9 @@ Assigned Note Comm - {% ifequal list_slug "mine" %} - List + List {% endifequal %} - Del {% for task in task_list %} @@ -108,7 +106,7 @@ {% if task.overdue_status %}{% endif %} {{ task.created_by }} - {{ task.assigned_to }} + {% if task.assigned_to %}{{ task.assigned_to }}{% else %}Anyone{% endif %} {% if task.note %}≈{% endif %} {% ifnotequal task.comment_set.all.count 0 %}{{ task.comment_set.all.count }}{% endifnotequal %} diff --git a/todo/templates/todo/view_task.html b/todo/templates/todo/view_task.html index 6397214..aec27ad 100644 --- a/todo/templates/todo/view_task.html +++ b/todo/templates/todo/view_task.html @@ -5,19 +5,18 @@ {% block content %} - {% ifequal auth_ok 1 %} + {% if auth_ok %}

{{ task }}

@@ -28,7 +27,7 @@

In list: {{ task.list }}
- Assigned to: {{ task.assigned_to.first_name }} {{ task.assigned_to.last_name }}
+ Assigned to: {% if task.assigned_to %}{{ task.assigned_to.get_full_name }}{% else %}Anyone{% endif %}
Created by: {{ task.created_by.first_name }} {{ task.created_by.last_name }}
Due date: {{ task.due_date }}
Completed: {{ form.completed }}
@@ -42,7 +41,6 @@

Edit Task

- @@ -100,6 +98,6 @@ {% endfor %} - {% endifequal %} + {% endif %} {% endblock %}
Title: {{ form.title }}