{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2026 CERN. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- import "invenio_vcs/settings/helpers.html" as helpers with context %} {%- extends config.VCS_SETTINGS_TEMPLATE %} {%- set repo_id = repo.provider_id %} {%- block settings_content %} {% set active = true %} {%- block repo_details_header scoped %}
{%- block repo_details_header_extra_info %} {# A slot for higher-level modules (e.g. RDM) to add additional UI metadata, for example a link to the repo's latest record. #} {%- endblock %}
{%- include config.VCS_TEMPLATE_REPO_SWITCH with context %}
{%- endblock %} {{ helpers.panel_start( _('Releases'), btn_text=_('Create release'), btn_icon=vocabulary["icon"] + ' icon', btn_href=new_release_url, ) }}
{%- if not releases %} {%- if repo.enabled %} {%- block enabled_repo_get_started scoped %}

{{ _("Get started!") }}

{{ _("Go to %(name)s and make your first release.", name=vocabulary["name"]) }}

{{ repo.full_name }}
{%- endblock enabled_repo_get_started %} {%- else -%} {%- block disabled_repo_getstarted scoped %}

{{ _("Get started!") }}

1 {{ _("Flip the switch") }}

{{ _("Toggle the switch below to turn on/off automatic preservation of your repository.") }}

{%- include config.VCS_TEMPLATE_REPO_SWITCH with context %}

2 {{ _("Create a release") }}

{{ _('Go to {} and create a release. {} will automatically receive and process your release.') .format(vocabulary["name"], config.THEME_SITENAME | default('Invenio')) }}

{%- endblock disabled_repo_getstarted %} {%- endif -%} {%- else %} {%- block repo_releases scoped %} {%- endblock repo_releases %} {%- endif %}
{{ helpers.panel_end() }} {%- endblock %} {%- block javascript %} {{ super() }} {{ webpack['invenio-vcs-init.js'] }} {%- endblock javascript %}