|  | 
|  | 1 | +{# -*- coding: utf-8 -*- | 
|  | 2 | + | 
|  | 3 | +  This file is part of Invenio. | 
|  | 4 | +  Copyright (C) 2016-2025 CERN. | 
|  | 5 | + | 
|  | 6 | +  Invenio is free software; you can redistribute it and/or modify it | 
|  | 7 | +  under the terms of the MIT License; see LICENSE file for more details. | 
|  | 8 | +#} | 
|  | 9 | + | 
|  | 10 | +{% extends "invenio_requests/details/index.html" %} | 
|  | 11 | + | 
|  | 12 | +{% set active_dashboard_menu_item = 'requests' %} | 
|  | 13 | +{% set active_community_header_menu_item = 'requests' %} | 
|  | 14 | + | 
|  | 15 | +{%- block request_header %} | 
|  | 16 | +    {% set back_button_url = url_for("invenio_app_rdm_users.requests") %} | 
|  | 17 | +  {% from "invenio_requests/macros/request_header.html" import inclusion_request_header %} | 
|  | 18 | +  {{ inclusion_request_header( | 
|  | 19 | +      request=invenio_request, | 
|  | 20 | +      record=record, | 
|  | 21 | +      accepted=request_is_accepted, | 
|  | 22 | +      back_button_url=back_button_url, | 
|  | 23 | +      back_button_text=_("Back to requests") | 
|  | 24 | +    ) }} | 
|  | 25 | +{%- endblock request_header %} | 
|  | 26 | + | 
|  | 27 | +{% block request_timeline %} | 
|  | 28 | +  <div | 
|  | 29 | +    class="ui container rdm-tab-container fluid rel-pt-2 ml-0-mobile mr-0-mobile" | 
|  | 30 | +    id="request-request-deletion-tab-container" | 
|  | 31 | +  > | 
|  | 32 | +    <div | 
|  | 33 | +      class="ui secondary pointing menu rdm-tab-menu" | 
|  | 34 | +      id="request-deletion-request-tab" | 
|  | 35 | +    > | 
|  | 36 | +      <a | 
|  | 37 | +        class="active item" | 
|  | 38 | +        data-tab="conversation" | 
|  | 39 | +        role="tab" | 
|  | 40 | +        aria-selected="true" | 
|  | 41 | +        aria-controls="conversation-tab-panel" | 
|  | 42 | +        id="conversation-tab" | 
|  | 43 | +      > | 
|  | 44 | +        {{ _("Conversation") }} | 
|  | 45 | +      </a> | 
|  | 46 | + | 
|  | 47 | +      {% if record_ui %} | 
|  | 48 | +        <a | 
|  | 49 | +          role="tab" | 
|  | 50 | +          class="item" | 
|  | 51 | +          data-tab="record" | 
|  | 52 | +          aria-selected="false" | 
|  | 53 | +          aria-controls="record-tab-panel" | 
|  | 54 | +          id="record-tab" | 
|  | 55 | +        > | 
|  | 56 | +          {{ _("Record") }} | 
|  | 57 | +        </a> | 
|  | 58 | +      {% endif %} | 
|  | 59 | +    </div> | 
|  | 60 | + | 
|  | 61 | +    <div | 
|  | 62 | +      class="ui bottom attached tab segment active borderless p-0" | 
|  | 63 | +      data-tab="conversation" | 
|  | 64 | +      role="tabpanel" | 
|  | 65 | +      aria-labelledby="conversation-tab" | 
|  | 66 | +      id="conversation-tab-panel" | 
|  | 67 | +    > | 
|  | 68 | +      {{ super() }} | 
|  | 69 | +    </div> | 
|  | 70 | + | 
|  | 71 | +    {# The record tab content needs to be last since the HTML structure is complex and breaks following tab contents #} | 
|  | 72 | +    {% if record_ui %} | 
|  | 73 | +      <div | 
|  | 74 | +        class="ui bottom attached tab segment borderless" | 
|  | 75 | +        data-tab="record" | 
|  | 76 | +        role="tabpanel" | 
|  | 77 | +        aria-labelledby="record-tab" | 
|  | 78 | +        id="record-tab-panel" | 
|  | 79 | +        hidden="hidden" | 
|  | 80 | +      > | 
|  | 81 | +        {% set use_theme_basic_template = false %} | 
|  | 82 | +        {% set preview_submission_request = true %} | 
|  | 83 | +        {% include config.APP_RDM_RECORD_LANDING_PAGE_TEMPLATE %} | 
|  | 84 | +      </div> | 
|  | 85 | +    {% endif %} | 
|  | 86 | + | 
|  | 87 | +  </div> | 
|  | 88 | +{% endblock request_timeline %} | 
0 commit comments