{% extends "name/base.html" %} {% load staticfiles %} {% load name_extras %} {% block title %}{{ name.name }}{% endblock %} {% block head-extra %} {% endblock head-extra %} {% block content %}
{% with name.location_set.current_location as current_location %} {% if name.is_building and current_location %}
{% endif %} {% endwith %}

{{ name.name }}

{% if user.is_authenticated %}
Edit
{% endif %}
{# Locations #} {% if name.is_building %} {% for l in name.location_set.all %} {% endfor %} {% endif %} {% if name.disambiguation %} {% endif %} {# FIXME: There is a lot of nesting here #} {% if name.begin %} {% endif %} {% if name.end %} {% endif %} {% if name.biography %} {% endif %} {% if name.variant_set.all %} {% if name.is_organization %} {% elif name.is_building %} {% else %} {% endif %} {% endif %} {% with name.note_set.public_notes as public_notes %} {% if public_notes %} {% endif %} {% endwith %}
Authorized: {{ name.name }}
Name Type: {{ name.get_name_type_label }}
Location: ({% if l.is_current %}current{% else %}former{% endif %}) {{ l.latitude }}, {{ l.longitude }}
URI:
Disambiguation: {{ name.disambiguation }}
{{ name.get_date_display.begin }}: {% if name.is_personal %} {{ name.begin }} {% elif name.is_organization %} {{ name.begin }} {% elif name.is_building %} {{ name.begin }} {% elif name.is_event %} {{ name.begin }} {% else %} {{ name.begin }} {% endif %}
{{ name.get_date_display.end }}: {% if name.is_personal %} {{ name.end }} {% else %} {{ name.end }} {% endif %}
{% if name.is_personal %} Biographical Info: {% else %} History: {% endif %} {{ name.render_biography|safe }}
Links:
    {% if name.identifier_set.exists %} {% for link in name.identifier_set.all %} {% if name.is_active and link.visible %}
  • {% if link.type.icon_path %} icon {% else %} {% endif %} {% if "http" in link|escape or ".edu" in link|escape or ".com" in link|escape %} {{ link.type }}: {{ link }} {% else %} {% if "@" in link|escape %} {{ link.type }}: {{ link }} {% else %} {{ link.type }}: {{ link }} {% endif %} {% endif %}
  • {% endif %} {% endfor %} {% endif %}
Variant Name:Also Known As:Publishes As:
    {% for variant in name.variant_set.all %}
  • {% if name.is_personal %} {{ variant }} {% else %} {{ variant }} {% endif %}
  • {% endfor %}
Notes: {{ public_notes|join:"
" }}
{# This will only display if the Name is a Building #} {% if name.is_building and name.has_current_location %} {% with name.location_set.current_location as current_location %} Building Location {% endwith %} {% endif %}

Alternate Formats

MADS/XML JSON
{% endblock content %}