{# -*- 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. #} {%- extends config.VCS_SETTINGS_TEMPLATE %} {%- import "invenio_vcs/settings/helpers.html" as helpers with context %} {%- block settings_content %} {%- if connected %} {%- block repositories_get_started %} {{ helpers.panel_start( vocabulary["repository_name_plural"].capitalize(), icon=vocabulary["icon"] + " icon", btn_text=_('Sync now'), btn_loading_text=_('Syncing'), btn_icon='sync alternate icon', btn_id='sync_repos', btn_name='sync-repos', btn_help_text=_('(updated {})').format(last_sync|naturaltime), provider=provider, loaded_message_id='sync-result-message', id="vcs-view", ) }}
{%- block get_started %}

{{ _("Get started") }}

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

{{ _('Select the repository you want to preserve, and toggle the switch below to turn on automatic preservation of your software.') }}

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

{{ _( 'Go to %(name)s and create a release . %(site_name)s will automatically receive and process your release.', name=vocabulary["name"], site_name=config.THEME_SITENAME | default('System'), release_docs_link=vocabulary["release_docs_link"] ) }}

3 {{ _("Check the status") }}

{{ _( "Click on a %(repository_name)s to view the status of each release, including whether it was successful and if you need to take any additional steps.", repository_name=vocabulary["repository_name"] ) }}

{%- endblock %}
{{ helpers.panel_end() }} {%- endblock %} {%- if repos %} {%- block enabled_repositories %} {{ helpers.panel_start(_('Enabled %(repository_name_plural)s', repository_name_plural=vocabulary["repository_name_plural"].capitalize())) }} {{ helpers.panel_end() }} {%- endblock %} {% endif %} {%- block disabled_repositories %} {{ helpers.panel_start(vocabulary["repository_name_plural"].capitalize()) }} {%- block repositories_tooltip %} {%- if vocabulary["repo_list_message"] %}

{{ vocabulary["repo_list_message"] }} {{ _("More info") }}

{% endif %} {%- endblock %} {%- if not repos %}

{{ _('You have no %(repository_name_plural)s on %(name)s.', repository_name_plural=vocabulary["repository_name_plural"].capitalize(), name=vocabulary["name"]) }}

{{_('Go to %(name)s and create your first or click the Sync button to synchronize the latest changes from %(name)s.', name=vocabulary["name"], url=new_repo_url)}}

{%- else %} {% endif %} {{ helpers.panel_end() }} {%- endblock %} {#- If the user has not connected their VCS account... #} {%- else %} {%- block connect_to_vcs_account %} {{ helpers.panel_start(_('%(name)s', name=vocabulary["name"]), icon=vocabulary["icon"] + " icon") }}

{{ _('Software preservation made simple!') }}

{{ _('Connect') }}

{{ _( 'To get started, click "Connect" and we will get a list of your %(repository_name_plural)s from %(name)s.', repository_name_plural=vocabulary["repository_name_plural"], name=vocabulary["name"] ) }}

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