{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2023 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_github/settings/helpers.html" as helpers with context %} {%- if not request.is_xhr %} {%- extends config.GITHUB_SETTINGS_TEMPLATE %} {%- endif %} {%- block settings_content %} {%- if connected %} {%- block repositories_get_started %} {{ helpers.panel_start( _('GitHub Repositories'), icon="github 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), loaded_message_id='sync-result-message', id="github-view", ) }}
{{ _('Select the repository you want to preserve, and toggle the switch below to turn on automatic preservation of your software.') }}
{{ _('Go to GitHub and create a release . {} will automatically download a .zip-ball of each new release and register a DOI.') .format(config.THEME_SITENAME | default('System')) }}
{{ _('If your organization\'s repositories do not show up in the list, please ensure you have enabled third-party access to the {} application. Private repositories are not supported.') .format(config.THEME_SITENAME | default('Invenio')) }}
{%- endblock %} {%- if not repos %}
{{_('You have no repositories on GitHub.') }}
{{_('Go to GitHub and create your first or
click Sync-button to synchronize latest changes from GitHub.')}}
{{ _('To get started, click "Connect" and we will get a list of your repositories from GitHub.') }}