{# Main content partial for record_body block.
This template is included inside the record_body block of oarepo_ui/record_detail.html.
It contains only the article content - sidebar is handled separately by record_sidebar block.
#}
{%- block record_header -%}
{%- block record_header_button -%}
{# when we make publish request, record gets locked, so back to edit basically takes you nowehre can_update_draft fixes this #}
{% if is_preview and not is_preview_submission_request and can_curate_record and is_draft and permissions.can_update_draft%}
{% endif %}
{% endblock record_header_button %}
{%- block record_mobile_management -%}
{% if show_record_management_menu %}
{{ record_ui["ui"]["access_status"]["description_l10n"] | safe }}
{% if record_ui["access"]["embargo"]["reason"] %}{{ _("Reason") }}: {{ record_ui["access"]["embargo"]["reason"] }}
{% endif %} {% block record_files_access_request %} {%- if allow_user_requests or allow_guest_requests %}{{ _("If you would like to request access to these files, please fill out the form below.") }}
{%- if record_ui["parent"]["access"]["settings"] %} {%- set accept_conditions_text = record_ui["parent"]["access"]["settings"]["accept_conditions_text"] %} {%- endif %} {%- if accept_conditions_text %}{{ _("You need to satisfy these conditions in order for this request to be accepted:") }}