Show "Anyone" for unassigned tasks in search results

This commit is contained in:
Scot Hacker 2016-04-09 23:22:45 -07:00
parent 9b6418c7b1
commit 37bb0fb5a2

View file

@ -1,7 +1,6 @@
{% extends "todo/base.html" %} {% extends "todo/base.html" %}
{% block title %}Search results{% endblock %} {% block title %}Search results{% endblock %}
{% block body_id %}post_search{% endblock %}
{% block content_title %} {% block content_title %}
<h2 class="page_title">Search</h2> <h2 class="page_title">Search</h2>
@ -15,7 +14,7 @@
<p><strong><a href="{% url 'todo-task_detail' f.id %}">{{ f.title }}</a></strong><br /> <p><strong><a href="{% url 'todo-task_detail' f.id %}">{{ f.title }}</a></strong><br />
<span class="minor"> <span class="minor">
On list: <a href="{% url 'todo-incomplete_tasks' f.list.id f.list.slug %}">{{ f.list.name }}</a><br /> On list: <a href="{% url 'todo-incomplete_tasks' f.list.id f.list.slug %}">{{ f.list.name }}</a><br />
Assigned to: {{ f.assigned_to }} (created by: {{ f.created_by }})<br /> Assigned to: {% if f.assigned_to %}{{ f.assigned_to }}{% else %}Anyone{% endif %} (created by: {{ f.created_by }})<br />
Complete: {{ f.completed|yesno:"Yes,No" }} Complete: {{ f.completed|yesno:"Yes,No" }}
</span> </span>
</p> </p>