{#
Copyright (C) 2022 CERN.

Invenio RDM Records is free software; you can redistribute it and/or modify
it under the terms of the MIT License; see LICENSE file for more details.
#}

{% if show_record_management_menu %}
  <section id="record-manage-menu"
           aria-label="{{ _('Record management') }}"
           class="ui grid segment computer only sidebar-container rdm-sidebar"
  >
    <div class="column"
         id="recordManagement"
         data-record='{{ record | tojson }}'
         data-permissions='{{ permissions | tojson }}'
         data-is-draft="{{ is_draft | tojson }}"
         data-is-preview-submission-request="{{ is_preview_submission_request | tojson }}"
         data-current-user-id="{{ current_user.id }}"
         data-access-links-search-config='{{ search_app_access_links_config(app_id="InvenioAppRdm.AccessLinks", endpoint=record.links.access_links) | tojson }}'
    >
      <div class="ui placeholder">
        <div class="header">
          <div class="full line"></div>
          <div class="full line"></div>
          <div class="full line"></div>
          <div class="full line"></div>
          <div class="full line"></div>
          <div class="full line"></div>
          <div class="full line"></div>
        </div>
      </div>
    </div>
  </section>
{% endif %}
