{% 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 %}
{% 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 %} {% include "locations/responsible_users.html" %} {% if locations_tree %}{{ location.description | get_translated_text }}{% endif %} {% if location.component is not none %}
{{ _('No storage capacity has been configured for this location.') }}
{% endif %} {% endif %} {% if location_log_entries %}{{ _('Datetime') }} | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ log_entry.utc_datetime | babel_format_datetime }} | {% 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 %}{% 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 %} | {% elif log_entry.type == LocationLogEntryType.UPDATE_LOCATION %} | {% 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 %} | {% elif log_entry.type == LocationLogEntryType.ADD_OBJECT %} {% if 'object_id' in log_entry %} | {{ _('%(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') }} | {% else %}{{ _('%(user_name)s assigned an object to this location.', user_url=user_url, user_name=user_name) }} | {% endif %} {% elif log_entry.type == LocationLogEntryType.CHANGE_OBJECT %} {% if 'object_id' in log_entry %} | {{ _('%(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') }} | {% else %}{{ _('%(user_name)s updated the information for an object at this location.', user_url=user_url, user_name=user_name) }} | {% 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 %} | {{ _('%(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)) }} | {% else %}{{ _('%(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)) }} | {% endif %}{{ _('View') }} | {% else %}{{ _('%(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) }} | {% endif %} {% else %} | {{ _('Unknown event') }} | {% endif %} |