diff --git a/Dockerfile.mug b/Dockerfile.mug index c0effb5..fbb0a11 100644 --- a/Dockerfile.mug +++ b/Dockerfile.mug @@ -14,6 +14,8 @@ COPY ./static/ ${INVENIO_INSTANCE_PATH}/static/ COPY ./translations ${INVENIO_INSTANCE_PATH}/translations/ COPY ./templates ${INVENIO_INSTANCE_PATH}/templates/ +COPY themes/MUG/templates/ ${INVENIO_INSTANCE_PATH}/templates/ + # Replace variables.less COPY themes/MUG/variables.less /opt/env/lib/python3.12/site-packages/invenio_override/assets/semantic-ui/less/invenio_override/variables.less COPY themes/MUG/overrides.less /opt/env/lib/python3.12/site-packages/invenio_override/assets/semantic-ui/less/invenio_override/overrides.less diff --git a/themes/MUG/templates/semantic-ui/invenio_app_rdm/records/deposit.html b/themes/MUG/templates/semantic-ui/invenio_app_rdm/records/deposit.html new file mode 100644 index 0000000..cf03373 --- /dev/null +++ b/themes/MUG/templates/semantic-ui/invenio_app_rdm/records/deposit.html @@ -0,0 +1,62 @@ +{%- extends config.BASE_TEMPLATE %} + +{%- if community and community.theme and community.theme.enabled %} + {%- block css %} + {{ super() }} + + {%- endblock %} +{%- endif %} + +{%- if not record.is_published and record.versions.index and record.versions.index > 1 %} + {%- set title = _("New version") %} +{%- elif not record.is_published %} + {%- set title = _("New upload") %} +{% else %} + {%- set title = _("Edit upload") %} +{%- endif %} + +{%- block page_body %} + +{%- if community_use_jinja_header %} +{%- include "invenio_communities/details/header.html" %} +{%- endif %} + + {%- if record %} + + + + {%- endif %} + + {%- if preselectedCommunity %} + + {%- endif %} + + {%- if files %} + + {%- endif %} + + {%- if forms_config %} + + {%- endif %} + + {%- if permissions %} + + {%- endif %} + +
+ +{%- endblock page_body %} + +{%- block javascript %} + {{ super() }} + {{ webpack['invenio-app-rdm-deposit.js'] }} + {{ webpack['invenio-curations-deposit.js'] }} +{%- endblock %}