{% extends "name/base.html" %} {% block title %}Search{% endblock %} {% block content %} {% if not name_list %}

Search {{ name_app_title }}

No results

{% else %} {# Begin search results. #}
{% if request.GET.order != "name_a" %} Names (Sort Dsc.) {% else %} Names (Sort Asc.) {% endif %} {% if request.GET.order != "begin_a" %} Start Date (Asc.) {% else %} Start Date (Desc.) {% endif %} {% if request.GET.order != "end_a" %} End Date (Asc.) {% else %} End Date (Desc.) {% endif %}
{% for entry in name_list %} {# TODO: Make sure the merged names are not sent via search #} {% if entry.is_active and entry.merged_with == None %} {% endif %} {% endfor %}
{{ entry.name }} {# If disambiguation exists, show as small print #} {% if entry.disambiguation %} ({{ entry.disambiguation }}) {% endif %} {{ entry.begin }} {{ entry.end }}
{# If user is authenticated, add edit button #} {% if user.is_authenticated %} Edit {% endif %}
{% endif %} {% if is_paginated %} {% include "name/_pagination.html" %} {% endif %} {% endblock %}