{% extends "base.html" %} {% block title %}{{ location.type.location_name_singular | get_translated_text }} #{{ location.id }}: {{ location | get_location_name(False) }} — {{ service_name }}{% endblock %} {% block content %}

{{ location.type.location_name_singular | get_translated_text }} #{{ location.id }}: {% for ancestor in ancestors %} {{ ancestor | get_location_name(False) }} {{ import_information_symbol(ancestor) }} / {% endfor %} {{ location | get_location_name(False) }} {{ import_information_symbol(location) }}

{% if location.is_hidden %}

{% if locations_tree and not is_full_location_tree_hidden(locations_map, locations_tree) %} {{_("This location has been hidden from location lists, but will be shown because it contains other locations that have not been hidden.") }} {% else %} {{_("This location has been hidden from location lists.") }} {% endif %}

{% endif %} {% if location.type is not none and not location.type.enable_object_assignments %}

{{_("Objects may not be assigned to locations of this type.") }}

{% elif not location.enable_object_assignments %}

{{_("Objects may not be assigned to this location.") }}

{% endif %} {% if not config['DISABLE_TOPICS'] and location.topics %}

{{ _('Topics') }}: {% for topic in location.topics %} {{ topic.name | get_translated_text }} {% endfor %}

{% endif %} {% include "locations/responsible_users.html" %} {% if locations_tree %}

{{ _('Sub-Locations') }}

{% endif %} {% if location.description %}
{{ location.description | get_translated_text }}
{% endif %} {% if location.component is not none %}

{{ _('Other Databases') }}

{{ _('Created on %(component_name)s', component_url=url_for('.component', component_id=location.component.id), component_name=location.component.get_name()) }} {% endif %} {% if location.type.enable_capacities %}

{{ _('Capacity') }}

{% if stored_objects or capacities %} {% else %}

{{ _('No storage capacity has been configured for this location.') }}

{% endif %} {% endif %}
{% if descendent_location_ids %}
{% else %} {{ _('View Objects')}} {% endif %} {% if Permissions.WRITE in permissions %} {% if location.fed_id is none %} {{ _('Edit Location')}} {% endif %} {% if location.type.enable_sub_locations %} {{ _('Create Sub-Location')}} {% endif %} {% endif %} {% if Permissions.GRANT in permissions %} {{ _('Edit Permissions') }} {% endif %}
{% if location_log_entries %}

{{ _('Location Log') }}

{% for log_entry in location_log_entries %} {% if log_entry.user %} {% set user_name = log_entry.user.get_name() %} {% elif log_entry.user_id %} {% set user_name = _('User #%(user_id)s', user_id=log_entry.user_id) %} {% else %} {% set user_name = _('An unknown user') %} {% endif %} {% if log_entry.user_id %} {% set user_url = url_for('.user_profile', user_id=log_entry.user_id) %} {% else %} {% set user_url = '' %} {% endif %} {% if log_entry.type == LocationLogEntryType.CREATE_LOCATION %} {% elif log_entry.type == LocationLogEntryType.UPDATE_LOCATION %} {% elif log_entry.type == LocationLogEntryType.ADD_OBJECT %} {% if 'object_id' in log_entry %} {% else %} {% endif %} {% elif log_entry.type == LocationLogEntryType.CHANGE_OBJECT %} {% if 'object_id' in log_entry %} {% else %} {% endif %} {% elif log_entry.type == LocationLogEntryType.REMOVE_OBJECT %} {% if 'object_id' in log_entry %} {% if 'new_location_id' in log_entry and log_entry['new_location_id'] is not none %} {% else %} {% endif %} {% else %} {% endif %} {% else %} {% endif %} {% endfor %}
{{ _('Datetime') }}
{{ log_entry.utc_datetime | babel_format_datetime }} {% if log_entry.user_id %} {{ _('%(user_name)s created the location.', user_url=user_url, user_name=user_name) }} {% else %} {{ _('The location was created.') }} {% endif %} {% if log_entry.user_id %} {{ _('%(user_name)s updated the information for this location.', user_url=user_url, user_name=user_name) }} {% else %} {{ _('The information for this location was updated.') }} {% endif %} {{ _('%(user_name)s assigned %(object_name)s to this location.', user_url=user_url, user_name=user_name, object_url=url_for('.object', object_id=log_entry.object_id, _anchor='locations'), object_name=_('%(object_name)s (#%(object_id)s)', object_id=log_entry.object_id, object_name=log_entry.object.name | get_translated_text) if ('object' in log_entry and log_entry.object and log_entry.object.name) else _('Object #%(object_id)s', object_id=log_entry.object_id)) }} {{ _('View') }} {{ _('%(user_name)s assigned an object to this location.', user_url=user_url, user_name=user_name) }} {{ _('%(user_name)s updated the information for %(object_name)s.', user_url=user_url, user_name=user_name, object_url=url_for('.object', object_id=log_entry.object_id, _anchor='locations'), object_name=_('%(object_name)s (#%(object_id)s)', object_id=log_entry.object_id, object_name=log_entry.object.name | get_translated_text) if ('object' in log_entry and log_entry.object and log_entry.object.name) else _('Object #%(object_id)s', object_id=log_entry.object_id)) }} {{ _('View') }} {{ _('%(user_name)s updated the information for an object at this location.', user_url=user_url, user_name=user_name) }} {{ _('%(user_name)s assigned %(object_name)s to %(location_name)s.', user_url=user_url, user_name=user_name, object_url=url_for('.object', object_id=log_entry.object_id, _anchor='locations'), object_name=_('%(object_name)s (#%(object_id)s)', object_id=log_entry.object_id, object_name=log_entry.object.name | get_translated_text) if ('object' in log_entry and log_entry.object and log_entry.object.name) else _('Object #%(object_id)s', object_id=log_entry.object_id), location_url=url_for('.location', location_id=log_entry.new_location_id), location_name=_('%(location_name)s (#%(location_id)s)', location_id=log_entry.new_location_id, location_name=log_entry.new_location.name | get_translated_text) if ('new_location' in log_entry and log_entry.new_location and log_entry.new_location.name) else _('Location #%(location_id)s', location_id=log_entry.new_location_id)) }} {{ _('%(user_name)s assigned %(object_name)s to a different location or to a responsible user.', user_url=user_url, user_name=user_name, object_url=url_for('.object', object_id=log_entry.object_id, _anchor='locations'), object_name=_('%(object_name)s (#%(object_id)s)', object_id=log_entry.object_id, object_name=log_entry.object.name | get_translated_text) if ('object' in log_entry and log_entry.object and log_entry.object.name) else _('Object #%(object_id)s', object_id=log_entry.object_id)) }} {{ _('View') }} {{ _('%(user_name)s assigned an object from this location to a different location or to a responsible user.', user_url=user_url, user_name=user_name) }} {{ _('Unknown event') }}
{% endif %} {% endblock %}