{% extends "base.html" %} {% block title %}{% if (show_object_type_and_id_on_object_page_text is none and not config['HIDE_OBJECT_TYPE_AND_ID_ON_OBJECT_PAGE']) or show_object_type_and_id_on_object_page_text %}{% if object_type is not none %}{{ object_type }}{% else %}{{ _('Object') }}{% endif %} #{{ object_id }}{% if name %}: {% endif %}{% endif %}{{ name | get_translated_text(default='—') }} — {{ service_name }}{% endblock %} {% block head %} {{ super() }} {% endblock %} {% block stylesheets %} {{ super() }} {% endblock %} {% set id_prefix_root = "object" %} {% set property_path = () %} {% block sidebar %} {% endblock %} {% block content %} {% if is_archived %} {% endif %}

{% if (show_object_type_and_id_on_object_page_text is none and not config['HIDE_OBJECT_TYPE_AND_ID_ON_OBJECT_PAGE']) or show_object_type_and_id_on_object_page_text %}{% if object_type is not none %}{{ object_type }}{% else %}{{ _('Object') }}{% endif %} #{{ object_id }}{% if name %}: {% endif %}{% endif %}{{ name | get_translated_text(default='—') }} {{ import_information_symbol(object) }}

{{ _('Information') }}

{% if not config['DISABLE_INSTRUMENTS'] %}
{% if instrument is not none %} {{ instrument.name | get_translated_text }} {{ import_information_symbol(instrument) }} {% else %}—{% endif %}
{% endif %}
{% if action is not none %} {{ action.name | get_translated_text(default=_('Unnamed Action')) }} {{ import_information_symbol(action) }} {% else %}—{% endif %}
{% block includes %} {# counter for plotly_chart_plots #} {% set plot_counter = namespace(value=0) %} {% set indent_level = 0 %} {% set show_indent_border = False %} {% if data is not none and schema is not none %} {% if previous_version_data_diff %} {% set diff = previous_version_data_diff %} {% set previous_schema = previous_version_schema %} {% else %} {% set diff = none %} {% set previous_schema = none %} {% endif %} {% include "objects/view/any.html" %} {% endif %} {% endblock %} {% if data is none or schema is none %}
{{ _('This object has been imported without data.') }}
{% endif %}
{% if languages | length > 1 %}
{% endif %} {% if not is_archived %} {% if not current_user.is_readonly %} {% if user_may_edit %}
{{ _('Edit Object') }}
{% endif %} {% if user_may_edit and new_schema_available %}
{{ _('Update Schema') }}
{% endif %} {% if user_may_grant %}
{{ _('Edit Permissions') }}
{% endif %} {% if project and current_user.is_authenticated%}
{{ _('View Project Group') }}
{% endif %} {% if user_may_use_as_template and data and action is not none and not action.disable_create_objects and (current_user.is_admin or not action.admin_only) and action.type_id is not none and not action.type.disable_create_objects %}
{% if new_schema_available %} {% else %} {{ _('Use as Template') }} {% endif %}
{% endif %} {% if action is not none and usable_in_action_types and not current_user.is_readonly and current_user.is_authenticated %} {% for usable_in_action_type in usable_in_action_types %}
{% endfor %} {% endif %} {% endif %} {% if action is not none and action.type is not none and action.type.enable_labels %}
{% endif %}
{% if show_scicat_export %}
{{ _('Export to %(scicat_name)s', scicat_name=config['SCICAT_NAME']) }}
{% elif scicat_url %}
{{ _('View on %(scicat_name)s', scicat_name=config['SCICAT_NAME']) }}
{% endif %} {% if show_dataverse_export %}
{% if dataverse_export_task_created %} {% else %} {{ _('Export to %(dataverse_name)s', dataverse_name=config['DATAVERSE_NAME']) }} {% endif %}
{% elif dataverse_url %}
{{ _('View on %(dataverse_name)s', dataverse_name=config['DATAVERSE_NAME']) }}
{% endif %} {% if notebook_templates and jupyterhub_templates_url %}
{% endif %} {% endif %} {% if restore_form is not none and not component %}
{{ restore_form.csrf_token() }}
{% endif %}
{% if schema and 'workflow_view' in schema and workflow | length > 0 %}

{% if 'title' in schema['workflow_view'] %}{{ schema['workflow_view']['title'] | get_translated_text }}{% else %}{{ _('Workflow') }}{% endif %}

{# counter for plotly_chart_plots #} {% set plot_counter = namespace(value=0) %} {% for elem in workflow %}

{% if elem.is_referenced %} {% if elem.is_referencing %} {% else %} {% endif %} {% else %} {% endif %} {% if ((show_object_type_and_id_on_object_page_text is none and not config['HIDE_OBJECT_TYPE_AND_ID_ON_OBJECT_PAGE']) or show_object_type_and_id_on_object_page_text) or elem.object is none %} {% if elem.action is not none and elem.action.type is not none %} {{ elem.action.type.object_name | get_translated_text }} {% else %} {{ _('Object') }} {% endif %} #{{ elem.object_id }}{% if elem.object and elem.object.name %}: {% endif %} {% endif %} {% if elem.object and elem.object.name %} {{ elem.object.name | get_translated_text(default='—') }} {% endif %} {% if elem.object %} {{ import_information_symbol(elem.object) }} {% endif %}

{% if elem.object is not none and elem.action and not ('show_action_info' in schema['workflow_view'] and not schema['workflow_view']['show_action_info']) %}
{% if elem.action %} {% if elem.action.user is not none %} {{ elem.action.user.get_name() }} {{ import_information_symbol(elem.action.user) }} / {% endif %} {% if not config['DISABLE_INSTRUMENTS'] and elem.action.instrument %} {{ elem.action.instrument.name | get_translated_text }} {{ import_information_symbol(elem.action.instrument) }} — {% endif %} {{ elem.action.name | get_translated_text(default=_('Unnamed Action')) }} {{ import_information_symbol(elem.action) }} {% else %}—{% endif %}
{% endif %} {% if elem.object is none %}
{{ _('You do not have sufficient permissions to access this object.', help_url='https://scientific-it-systems.iffgit.fz-juelich.de/SampleDB/user_guide/objects.html#permissions') }}
{% elif elem.object.data is none or elem.object.schema is none %}
{{ _('This object has been imported without data.') }}
{% else %} {% set workflow_display_mode = True %} {% set object_id = elem.object_id %} {% set id_prefix_root = "workflow_" ~ elem.object_id %} {% set property_path = () %} {% set id_prefix = id_prefix_for_property_path(property_path, id_prefix_root) %} {% set data = elem.object.data %} {% set schema = elem.object.schema %} {% set files = elem.files %} {% set indent_level = 0 %} {% set show_indent_border = False %} {% include "objects/view/any.html" %} {% endif %}
{% endfor %} {% endif %} {% if not is_archived %} {% if action is not none and action.type.enable_files %}

{{ _('Files') }}

{% if files %} {% for file in files %} {% if not file.is_hidden %} {% else %} {% endif %} {% endfor %}
{{ _('Title') }}
{% if show_download_service %}
{% else %} {% endif %}
{% if file | is_image %} {{ file.title }} {{ _('Fullscreen Image Preview')}} {% endif %} {{ file.title }} {% if file.description %} {{ file.description }} {% endif %} {% with file_component = get_component_or_none(file.component_id) %} {% if file.storage == 'database' or file.storage == 'federation' %} {% if file | has_preview and (file.storage != 'federation' or (file_component and file_component.address and file_component.import_token_available)) %} {% else %} {% endif %} {% if file.storage != 'federation' or (file_component and file_component.address and file_component.import_token_available) %} {% else %} {% endif %} {% elif file.storage == 'url' %} {% if file.url.split(':')[0].lower() in ['http', 'https'] %} {% else %} {% endif %} {% endif %} {% endwith %}
{% else %}

{{ _('There are no files for this %(object_type)s.', object_type=action_type.object_name | get_translated_text(default=_('Object'))) }}

{% endif %} {% for file in files %} {% if file.is_hidden %} {% endif %} {% endfor %} {% for file in files %} {% if not file.is_hidden %} {% endif %} {% endfor %} {% if user_may_upload_files %}
{{ _('Upload File') }}
{{ file_form.csrf_token }}
{{ _('Post Link')}}
{% endif %} {% endif %} {% endif %} {% if action is not none and action.type.enable_labels %} {% endif %} {% if object_qrcode %} {% endif %} {% if not is_archived and action is not none and action.type.enable_locations %}

{{ _("Locations") }}

{% set allowed_language_ids = [] %} {% for language in all_languages %} {% if language.enabled_for_input %} {% do allowed_language_ids.append(language.id) %} {% endif %} {% endfor %} {% if object_location_assignments %} {% for object_location_assignment in object_location_assignments | reverse %} {% with user = get_user(object_location_assignment.user_id) %} {% endwith %} {% endfor %}
{{ _("Datetime") }}{{ _("Location") }}{{ _("Responsible User") }}{{ _("Assigning User") }}{{ _("Description") }}
{{ object_location_assignment.utc_datetime | babel_format_datetime }} {% if object_location_assignment.location_id is not none %} {% with location = get_location(object_location_assignment.location_id) %} {{ location | get_location_name(True) }} {{ import_information_symbol(location) }} {% endwith %} {% else %}—{% endif %} {% if object_location_assignment.responsible_user_id is not none %} {% with user = get_user(object_location_assignment.responsible_user_id) %} {{ user.get_name() }} {{ import_information_symbol(user) }} {% if object_location_assignment.confirmed %} {% elif object_location_assignment.declined %} {% elif object_location_assignment.responsible_user_id == current_user.id %} {{ _('Confirm') }} {{ _('Decline') }} {% else %} ? {% endif %} {% endwith %} {% else %} — {% endif %} {{ user.get_name() }} {{ import_information_symbol(user) }}
{{ object_location_assignment.description | get_translated_text or ('—' | safe) }}
{% else %} {{ _('This object has not been assigned to a location yet.') }} {% endif %} {% if user_may_assign_location %}
{{ location_form.csrf_token }}
1 %}class="input-group"{% endif %} id="input-group-object_location-{{ ENGLISH.lang_code }}" data-name="input-group-object_location" data-language="{{ ENGLISH.lang_code }}"> {% if allowed_language_ids | length > 1 %} {{ ENGLISH.names | get_translated_text }} {% endif %}
{% endif %} {% endif %} {% if not is_archived and action is not none and action.type.enable_publications %}

{{ _('Publications') }}

{% if object_publications %} {% for object_publication in object_publications %} {% endfor %}
{{ _('DOI') }} {{ _('Title') }} {{ _('Object Name') }}
{{ object_publication.doi }} {% if object_publication.title is none %}—{% else %}{{ object_publication.title }}{% endif %} {% if object_publication.object_name is none %}—{% else %}{{ object_publication.object_name }}{% endif %} {{ _('View Objects') }}
{% else %}

{{ _('This object has not been linked to a publication yet.') }}

{% endif %} {% if user_may_link_publication %} {% for message in get_flashed_messages() %} {% if 'Please enter a valid DOI' in message %} {% do publication_form.errors.__setitem__(publication_form.doi.name, _('Please enter a valid DOI.')) %} {% endif %} {% endfor %}
{{ publication_form.csrf_token }}
{% if publication_form.doi.name in publication_form.errors %} {{ publication_form.errors[publication_form.doi.name] }} {% endif %}
{% endif %} {% endif %} {% if not is_archived %} {% if action is not none and action.type.enable_comments %}

{{ _('Comments') }}

{% if comments %} {% for comment in comments %}
{{ comment.content }}
— {% if comment.author is none %} {{ _('Unknown User') }} {% else %} {% set federated_user, imported_user = get_federated_identity(comment.author) %} {{ federated_user.get_name() }} {{ import_information_symbol(comment.author) }} {% endif %}, {{ comment.utc_datetime | babel_format_datetime }}
{% endfor %} {% else %}

{{ _('There are no comments for this object.') }}

{% endif %} {% if user_may_comment %}
{{ comment_form.csrf_token }}
{% endif %} {% endif %} {% endif %} {% if not is_archived and action is not none and action.type.enable_activity_log %} {% if object_log_entries %} {% set imported_object_log_entries = [] %} {% for object_log_entry in object_log_entries %} {% if object_log_entry.is_imported %} {% do imported_object_log_entries.append(object_log_entry) %} {% endif %} {% endfor %} {% set any_object_log_entry_is_imported = imported_object_log_entries | length > 0 %}

{{ _('Activity Log')}}

{% if any_object_log_entry_is_imported %} {% endif %} {% for object_log_entry in object_log_entries %} {% set ns = namespace(object_log_entry_message='—', object_log_entry_view_html=none, object_log_entry_view_url=none) %} {% if object_log_entry.type == ObjectLogEntryType.CREATE_OBJECT %} {% if 'previous_object_id' in object_log_entry.data %} {% set ns.object_log_entry_message = _('%(user_ref)s created the object using data from object #%(previous_object_id)s.', user_ref=user_reference(object_log_entry.user), previous_object_url=url_for('.object', object_id=object_log_entry.data['previous_object_id']), previous_object_id=object_log_entry.data['previous_object_id']) %} {% else %} {% set ns.object_log_entry_message = _('%(user_ref)s created the object.', user_ref=user_reference(object_log_entry.user)) %} {% endif %} {% set ns.object_log_entry_view_url = url_for('.object_version', object_id=object_id, version_id=0) %} {% elif object_log_entry.type == ObjectLogEntryType.CREATE_BATCH %} {% set ns.object_log_entry_message = _('%(user_ref)s created the object as part of a batch.', user_ref=user_reference(object_log_entry.user), batch_url=url_for('.objects', ids=(object_log_entry.data['object_ids'] | tojson)[1:-1])) %} {% set ns.object_log_entry_view_url = url_for('.object_version', object_id=object_id, version_id=0) %} {% elif object_log_entry.type == ObjectLogEntryType.EDIT_OBJECT %} {% set ns.object_log_entry_message = _('%(user_ref)s edited the object.', user_ref=user_reference(object_log_entry.user)) %} {% if 'version_id' in object_log_entry.data %} {% set ns.object_log_entry_view_html = _('View Version / View Changes', view_version_url=url_for('.object_version', object_id=object_id, version_id=object_log_entry.data['version_id']),view_version_url_with_diff=url_for('.object_version', object_id=object_id, version_id=object_log_entry.data['version_id'], diff='')) %} {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.RESTORE_OBJECT_VERSION %} {% set ns.object_log_entry_message = _('%(user_ref)s restored object version #%(version_id)s.', user_ref=user_reference(object_log_entry.user), version_url=url_for('.object_version', object_id=object_id, version_id=object_log_entry.data['restored_version_id']), version_id=object_log_entry.data['restored_version_id']) %} {% if 'version_id' in object_log_entry.data %} {% set ns.object_log_entry_view_url = url_for('.object_version', object_id=object_id, version_id=object_log_entry.data['version_id']) %} {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.USE_OBJECT_IN_MEASUREMENT %} {% if object_log_entry.data['measurement_id'] %} {% set ns.object_log_entry_message = _('%(user_ref)s used the object in %(measurement_name)s (#%(measurement_id)s).', user_ref=user_reference(object_log_entry.user), measurement_url=url_for('.object', object_id=object_log_entry.data['measurement_id']), measurement_id=object_log_entry.data['measurement_id'], measurement_name=object_log_entry.data['measurement'].name | get_translated_text) %} {% set ns.object_log_entry_view_url = url_for('.object', object_id=object_log_entry.data['measurement_id']) %} {% else %} {% set ns.object_log_entry_message = _('%(user_ref)s used the object in a measurement.', user_ref=user_reference(object_log_entry.user)) %} {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.USE_OBJECT_IN_SAMPLE_CREATION %} {% if object_log_entry.data['sample_id'] %} {% set ns.object_log_entry_message = _('%(user_ref)s used the object to create %(sample_name)s (#%(sample_id)s).', user_ref=user_reference(object_log_entry.user), sample_url=url_for('.object', object_id=object_log_entry.data['sample_id']), sample_id=object_log_entry.data['sample_id'], sample_name=object_log_entry.data['sample'].name | get_translated_text) %} {% set ns.object_log_entry_view_url = url_for('.object', object_id=object_log_entry.data['sample_id']) %} {% else %} {% set ns.object_log_entry_message = _('%(user_ref)s used the object to create a sample.', user_ref=user_reference(object_log_entry.user)) %} {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.POST_COMMENT %} {% set ns.object_log_entry_message = _('%(user_ref)s posted a comment for this object.', user_ref=user_reference(object_log_entry.user)) %} {% if action is not none and action.type.enable_comments %} {% if 'comment_id' in object_log_entry.data %} {% set ns.object_log_entry_view_url = "#comment-" + (object_log_entry.data['comment_id'] | string) %} {% endif %} {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.UPLOAD_FILE %} {% for file in files %} {% if file.id == object_log_entry.data['file_id'] %} {% if file.storage == 'database' or file.storage == 'federation' %} {% if action is not none and action.type.enable_files %} {% set ns.object_log_entry_message = _('%(user_ref)s uploaded %(file_name)s.', user_ref=user_reference(object_log_entry.user), file_url='#file-' + object_log_entry.data['file_id'] | string, file_name=file.original_file_name) %} {% else %} {% set ns.object_log_entry_message = _('%(user_ref)s uploaded %(file_name)s.', user_ref=user_reference(object_log_entry.user), file_name=file.original_file_name) %} {% endif %} {% elif file.storage == 'url' %} {% set ns.object_log_entry_message = _('%(user_ref)s linked %(link_url)s.', user_ref=user_reference(object_log_entry.user), link_url=file.url) %} {% else %} {% if action is not none and action.type.enable_files %} {% set ns.object_log_entry_message = _('%(user_ref)s posted file #%(file_id)s.', user_ref=user_reference(object_log_entry.user), file_url='#file-' + object_log_entry.data['file_id'] | string, file_id=object_log_entry.data['file_id']) %} {% else %} {% set ns.object_log_entry_message = _('%(user_ref)s posted a file.', user_ref=user_reference(object_log_entry.user)) %} {% endif %} {% endif %} {% endif %} {% endfor %} {% if action is not none and action.type.enable_files %} {% if 'file_id' in object_log_entry.data %} {% set ns.object_log_entry_view_url = "#file-" + (object_log_entry.data['file_id'] | string) %} {% endif %} {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.ASSIGN_LOCATION %} {% set object_location_assignment = get_object_location_assignment(object_log_entry.data['object_location_assignment_id']) %} {% if object_location_assignment.location_id is not none and object_location_assignment.responsible_user_id is not none %} {% set ns.object_log_entry_message = _('%(user_ref)s assigned this object to location %(location_name)s and user %(other_user_ref)s.', user_ref=user_reference(object_log_entry.user), location_url=url_for('.location', location_id=object_location_assignment.location_id), location_name=object_location_assignment.location_id | get_location_name(True), other_user_ref=user_reference(get_user(object_location_assignment.responsible_user_id))) %} {% elif object_location_assignment.location_id is not none %} {% set ns.object_log_entry_message = _('%(user_ref)s assigned this object to location %(location_name)s.', user_ref=user_reference(object_log_entry.user), location_url=url_for('.location', location_id=object_location_assignment.location_id), location_name=object_location_assignment.location_id | get_location_name(True)) %} {% elif object_location_assignment.responsible_user_id is not none %} {% set ns.object_log_entry_message = _('%(user_ref)s assigned this object to user %(other_user_ref)s.', user_ref=user_reference(object_log_entry.user), other_user_ref=user_reference(get_user(object_location_assignment.responsible_user_id))) %} {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.LINK_PUBLICATION %} {% set ns.object_log_entry_message = _('%(user_ref)s linked publication %(doi)s to the object.', user_ref=user_reference(object_log_entry.user), url_doi=object_log_entry.data['doi'] | urlencode, doi=object_log_entry.data['doi']) %} {% if action is not none and action.type.enable_publications %} {% set ns.object_log_entry_view_url = "#publications" %} {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.REFERENCE_OBJECT_IN_METADATA %} {% if object_log_entry.data['object_id'] %} {% set ns.object_log_entry_message = _('%(user_ref)s referenced the object in the metadata of %(object_name)s (#%(object_id)s).', user_ref=user_reference(object_log_entry.user), object_url=url_for('.object', object_id=object_log_entry.data['object_id']), object_name=object_log_entry.data['object'].name | get_translated_text, object_id=object_log_entry.data['object_id']) %} {% set ns.object_log_entry_view_url = url_for('.object', object_id=object_log_entry.data['object_id']) %} {% else %} {% set ns.object_log_entry_message = _('%(user_ref)s referenced the object in the metadata of another object.', user_ref=user_reference(object_log_entry.user)) %} {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.EXPORT_TO_DATAVERSE %} {% set ns.object_log_entry_message = _('%(user_ref)s exported this object to a Dataverse.', user_ref=user_reference(object_log_entry.user)) %} {% if object_log_entry.data.get('dataverse_url') %} {% set ns.object_log_entry_view_url = object_log_entry.data['dataverse_url'] %} {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.LINK_PROJECT %} {% with project = get_project(object_log_entry.data.project_id) %} {% if project is not none %} {% set ns.object_log_entry_message = _('%(user_ref)s linked this object to %(project_name)s (#%(project_id)s).', user_ref=user_reference(object_log_entry.user), project_url=url_for('.project', project_id=project.id), project_name=project.name | get_translated_text, project_id=project.id) %} {% set ns.object_log_entry_view_url = url_for('.project', project_id=project.id) %} {% else %} {% set ns.object_log_entry_message = _('%(user_ref)s linked this object to a project group.', user_ref=user_reference(object_log_entry.user)) %} {% endif %} {% endwith %} {% elif object_log_entry.type == ObjectLogEntryType.UNLINK_PROJECT %} {% if object_log_entry.data.project_deleted %} {% set ns.object_log_entry_message = _('%(user_ref)s deleted the project group this object was linked to.', user_ref=user_reference(object_log_entry.user)) %} {% else %} {% with project = get_project(object_log_entry.data.project_id) %} {% if project is not none %} {% set ns.object_log_entry_message = _('%(user_ref)s removed the link of this object to %(project_name)s (#%(project_id)s).', user_ref=user_reference(object_log_entry.user), project_url=url_for('.project', project_id=project.id), project_name=project.name | get_translated_text, project_id=project.id) %} {% set ns.object_log_entry_view_url = url_for('.project', project_id=project.id) %} {% else %} {% set ns.object_log_entry_message = _('%(user_ref)s removed the link of this object to a project group.', user_ref=user_reference(object_log_entry.user)) %} {% endif %} {% endwith %} {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.IMPORT_FROM_ELN_FILE %} {% set ns.object_log_entry_message = _('%(user_ref)s imported this object from an .eln file.', user_ref=user_reference(object_log_entry.user)) %} {% if object.eln_import_id is not none %} {% set ns.object_log_entry_view_url = url_for('.eln_import', eln_import_id=object.eln_import_id) %} {% endif %} {% else %} {% set ns.object_log_entry_message = _('Unknown event') %} {% endif %} {% if any_object_log_entry_is_imported %} {% endif %} {% endfor %}
{{ _('Datetime') }}
{% if object_log_entry.is_imported %} {% if object.component %} {% elif object.eln_import %} {% else %} {% endif %} {% endif %} {{ object_log_entry.utc_datetime | babel_format_datetime }} {{ ns.object_log_entry_message }} {% if ns.object_log_entry_view_html %} {{ ns.object_log_entry_view_html }} {% else %} {% if ns.object_log_entry_view_url %} {{ _('View') }} {% endif %} {% endif %}
{% endif %} {% endif %} {% if not is_archived %} {% if component %} {% set shares = [] %} {% else %} {% set shares = get_shares_for_object(object.object_id) %} {% endif %} {% if component or shares or fed_object_log_entries %}

{{ _('Other Databases') }}

{% if component %} {{ _('This object version was created as object #%(fed_object_id)s, version %(fed_version_id)s in database %(component_name)s.', fed_object_id=fed_object_id, fed_version_id=fed_version_id, component_url=url_for('.component', component_id=component.id), component_name=component.get_name()) }} {% endif %} {% if shares %} {{ _('This object is being shared with users from the following databases:') }} {% if user_may_grant %}
{{ _('Edit Permissions') }}
{% endif %} {% endif %} {% if fed_object_log_entries %} {% for log_entry in fed_object_log_entries %} {% endfor %}
{{ _('Datetime') }}
{{ log_entry.utc_datetime | babel_format_datetime }} {% if log_entry.user_id %} {% set user_ref = user_reference(log_entry.user_id) %} {% else %} {% set user_ref = _('An unknown user') %} {% endif %} {% if log_entry.type == FedObjectLogEntryType.IMPORT_OBJECT %} {% if not log_entry.user_id %} {% set user_ref = _('an unknown user') %} {% endif %} {% if 'version_id' in log_entry.data %} {% set version_id = log_entry.data.version_id %} {% else %} {% set version_id = '?' %} {% endif %} {% if log_entry.data.import_notes %} {{ _('Version #%(version_id)s of the object shared by %(user_ref)s was imported with the following notes:', version_id=version_id, user_ref=user_ref) }}
    {% for note in log_entry.data.import_notes %}
  • {{ note }}
  • {% endfor %}
{% else %} {{ _('Version #%(version_id)s of the object shared by %(user_ref)s was imported.', version_id=version_id, user_ref=user_ref) }} {% endif %} {% elif log_entry.type == FedObjectLogEntryType.UPDATE_OBJECT %} {% if not log_entry.user_id %} {% set user_ref = _('an unknown user') %} {% endif %} {% if 'version_id' in log_entry.data %} {% set version_id = log_entry.data.version_id %} {% else %} {% set version_id = '?' %} {% endif %} {% if log_entry.data.import_notes %} {{ _('A new version (#%(version_id)s) of the object shared by %(user_ref)s was imported with the following notes:', version_id=log_entry.data.version_id, user_ref=user_ref) }}
    {% for note in log_entry.data.import_notes %}
  • {{ note }}
  • {% endfor %}
{% else %} {{ _('A new version (#%(version_id)s) of the object shared by %(user_ref)s was imported.', version_id=log_entry.data.version_id, user_ref=user_ref) }} {% endif %} {% elif log_entry.type == FedObjectLogEntryType.ADD_POLICY %} {% set log_entry_component = get_component(log_entry.component_id) %} {% if log_entry_component %} {{ _('%(user_ref)s has shared the object with %(component_name)s.', user_ref=user_ref, component_url=url_for('.component', component_id=log_entry.component_id), component_name=log_entry_component.get_name()) }} {% else %} {{ _('%(user_ref)s has shared the object with an unknown database.', user_ref=user_ref) }} {% endif %} {% elif log_entry.type == FedObjectLogEntryType.UPDATE_OBJECT_POLICY %} {% set log_entry_component = get_component(log_entry.component_id) %} {% if log_entry_component %} {{ _('%(user_ref)s has updated the settings for sharing this object with %(component_name)s.', user_ref=user_ref, component_url=url_for('.component', component_id=log_entry.component_id), component_name=log_entry_component.get_name()) }} {% else %} {{ _('%(user_ref)s has updated the settings for sharing this object with an unknown database.', user_ref=user_ref) }} {% endif %} {% elif log_entry.type == FedObjectLogEntryType.REMOTE_IMPORT_OBJECT %} {% set log_entry_component = get_component(log_entry.component_id) %} {% if log_entry.data.import_status.success %} {% if log_entry_component %} {{ _('%(component_name)s has imported the object.', user_ref=user_ref, component_url=url_for('.component', component_id=log_entry.component_id), component_name=log_entry_component.get_name()) }} {% else %} {{ _('An unknown database has imported the object.', user_ref=user_ref) }} {% endif %} {% if log_entry.data.import_status.object_id %} {% if log_entry_component.address %} {{ _('The object was created as object #%(remote_object_id)s.', remote_object_url=log_entry_component.address + relative_url_for('.object', object_id=log_entry.data.import_status.object_id), remote_object_id=log_entry.data.import_status.object_id) }} {% else %} {{ _('The object was created as object #%(remote_object_id)s.', remote_object_id=log_entry.data.import_status.object_id) }} {% endif %} {% endif %} {% else %} {% if log_entry_component %} {{ _('%(component_name)s has failed to import the object.', component_url=url_for('.component', component_id=log_entry.component_id), component_name=log_entry_component.get_name()) }} {% else %} {{ _('An unknown database has failed to import the object.') }} {% endif %} {% endif %} {% if log_entry.data.import_status.notes %} {{ _('The other database returned the following notes:') }}
    {% for note in log_entry.data.import_status.notes %}
  • {{ note }}
  • {% endfor %}
{% endif %} {% else %} {{ _('Unknown event') }} {% endif %}
{% endif %}
{% endif %} {% if object.eln_import_id is not none %}

{{ _('Import') }}

{{ _('This object was imported from .eln file #%(eln_import_id)s by %(user_ref)s.', eln_import_id=object.eln_import_id, eln_import_url=url_for('.eln_import', eln_import_id=object.eln_import_id), user_ref=user_reference(object.eln_import.user)) }} {% if eln_import_url is not none and eln_import_url.startswith('http') %}{{ _('The original URL is %(eln_import_url)s.', eln_import_url=eln_import_url) }}{% endif %}

{% endif %} {% endif %} {% if not is_archived and related_objects_tree and action is not none and action.type.enable_related_objects %} {% endif %} {% if not is_archived %} {% if new_schema_available %} {% endif %} {% endif %} {% if show_download_service and not is_archived and action is not none and action.type is not none and action.type.enable_files and files %} {% endif %} {% include "objects/view/timeseries_modals.html" %} {% endblock %} {% block scripts %} {{ super() }} {% if get_user_language(current_user).lang_code == 'de' %} {% endif %} {% endblock %}