{% 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 %}
{{ _('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 %}{{ _("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 %} | {% with user = get_user(object_location_assignment.user_id) %}{{ user.get_name() }} {{ import_information_symbol(user) }} | {% endwith %}{{ object_location_assignment.description | get_translated_text or ('—' | safe) }} |
{{ _('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') }} |
{{ _('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 %} {% endif %} {% endif %} {% if not is_archived %} {% if action is not none and action.type.enable_comments %}{{ comment.content }}
{{ _('There are no comments for this object.') }}
{% endif %} {% if user_may_comment %} {% 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 %}{% endif %} | {{ _('Datetime') }} | ||
---|---|---|---|
{% if object_log_entry.is_imported %} {% if object.component %} {% elif object.eln_import %} {% set signed_by = get_import_signed_by(object.eln_import_id) %} {% if signed_by != None %} {% else %} {% endif %} {% else %} {% endif %} {% 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 %} |
{{ _('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) }}
|
{{ _('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 %} {% set signed_by = get_import_signed_by(object.eln_import_id) %} {% if signed_by is not none %} {{ _('The .eln file was signed by %(signed_by)s.', signed_by=signed_by) }} {% endif %}
{% endif %} {% endif %} {% if not is_archived and related_objects_subtrees and action is not none and action.type.enable_related_objects %}