{# SPDX-License-Identifier: GPL-3.0-or-later OR CC-BY-SA-4.0 Proxy web UI repository settings page. This file is part of Hydrilla&Haketilo. Copyright (C) 2022 Wojtek Kosior Dual licensed under * GNU General Public License v3.0 or later and * Creative Commons Attribution Share Alike 4.0 International. You can choose to use either of these licenses or both. I, Wojtek Kosior, thereby promise not to sue for violation of this file's licenses. Although I request that you do not make use of this code in a proprietary work, I am not going to enforce this in court. #} {% extends "base.html.jinja" %} {% block title %} {{ _('web_ui.repos.single.title') }} {% endblock %} {% block style %} {{ super() }} {% include 'include/checkbox_tricks_style.css.jinja' %} {% endblock %} {% block main %} {% if file_installation_error is defined %} {{ error_note(_('web_ui.err.file_installation_error')) }} {% endif %} {% if repo_communication_error is defined %} {{ error_note(_('web_ui.err.repo_communication_error')) }} {% endif %} {% if repo_api_version_unsupported is defined %} {{ error_note(_('web_ui.err.repo_api_version_unsupported')) }} {% endif %} {% if display_info.is_local_semirepo %}
{{ _('web_ui.repos.single.repo_is_deleted') }}
{% elif not display_info.deleted %}{{ _('web_ui.repos.single.url_is_{}').format(display_info.url) }}
{% if repo_url_invalid is defined %} {% set checked_attr = '' %} {% else %} {% set checked_attr = 'checked=""' %} {% endif %}{% if display_info.last_refreshed is none %} {{ _('web_ui.repos.single.repo_never_refreshed') }} {% else %} {{ _('web_ui.repos.single.last_refreshed_{}') .format(display_info.last_refreshed.strftime('%F %H:%M')) }} {% endif %}
{% set button_text = _('web_ui.repos.single.refresh_now_button') %} {% set extra_fields = {'action': 'refresh_repo'} %} {{ button_row([(['green-button'], button_text, extra_fields)]) }}{% if settings.advanced_user %} {{ _('web_ui.repos.item_count_{mappings}_{resources}') .format( mappings = display_info.mapping_count, resources = display_info.resource_count ) }} {% else %} {{ _('web_ui.repos.item_count_{mappings}') .format(mappings = display_info.mapping_count) }} {% endif %}
{% if not display_info.is_local_semirepo and not display_info.deleted %} {% set button_text = _('web_ui.repos.single.remove_button') %} {% set extra_fields = {'action': 'remove_repo'} %} {{ button_row([(['green-button'], button_text, extra_fields)]) }} {% endif %} {% endblock %}