From 37bb0fb5a2eac123b616470fac9f6634d882bf82 Mon Sep 17 00:00:00 2001 From: Scot Hacker Date: Sat, 9 Apr 2016 23:22:45 -0700 Subject: [PATCH] Show "Anyone" for unassigned tasks in search results --- todo/templates/todo/search_results.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/todo/templates/todo/search_results.html b/todo/templates/todo/search_results.html index 23543db..c1fdbe4 100644 --- a/todo/templates/todo/search_results.html +++ b/todo/templates/todo/search_results.html @@ -1,7 +1,6 @@ {% extends "todo/base.html" %} {% block title %}Search results{% endblock %} -{% block body_id %}post_search{% endblock %} {% block content_title %}

Search

@@ -15,7 +14,7 @@

{{ f.title }}
On list: {{ f.list.name }}
- Assigned to: {{ f.assigned_to }} (created by: {{ f.created_by }})
+ Assigned to: {% if f.assigned_to %}{{ f.assigned_to }}{% else %}Anyone{% endif %} (created by: {{ f.created_by }})
Complete: {{ f.completed|yesno:"Yes,No" }}