diff options
Diffstat (limited to 'src/hydrilla/proxy/web_ui/templates/repos__show_single.html.jinja')
-rw-r--r-- | src/hydrilla/proxy/web_ui/templates/repos__show_single.html.jinja | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/src/hydrilla/proxy/web_ui/templates/repos__show_single.html.jinja b/src/hydrilla/proxy/web_ui/templates/repos__show_single.html.jinja new file mode 100644 index 0000000..9abb00d --- /dev/null +++ b/src/hydrilla/proxy/web_ui/templates/repos__show_single.html.jinja @@ -0,0 +1,97 @@ +{# +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 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 %} + <h3> + {% if display_info.ref.id != '1' %} + {{ + _('web_ui.repos.single.heading.name_{}') + .format(display_info.info.long_name) + }} + {% else %} + {{ _('web_ui.repos.local_packages_semirepo') }} + {% endif %} + </h3> + {% if display_info.deleted == True %} + <div> + {{ _('web_ui.repos.single.repo_is_deleted') }} + </div> + {% elif display_info.deleted == False %} + <input id="show_url_edit_form" type="checkbox" class="chbx-tricks-show-hide" + checked=""> + <div> + <div> + {{ display_info.url }} + </div> + <div> + <label for="show_url_edit_form" class="green-button"> + {{ _('web_ui.repos.single.update_url_button') }} + </label> + </div> + </div> + <form method="POST"> + <input type="hidden" name="action" value="update_url"> + <div> + <input name="url" value="{{ display_info.url }}"> + </div> + <div> + <button class="green-button"> + {{ _('web_ui.repos.single.commit_update_url_button') }} + </button> + <label for="show_url_edit_form" class="green-button"> + {{ _('web_ui.repos.single.abort_update_url_button') }} + </label> + </div> + </form> + <div> + {% 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 %} + <form method="POST"> + <input type="hidden" name="action" value="refresh_repo"> + <button class="green-button"> + {{ _('web_ui.repos.single.refresh_now_button') }} + </button> + </form> + </div> + {% endif %} + <div> + {{ + _('web_ui.repos.item_count_{mappings}_{resources}') + .format( + mappings = display_info.mapping_count, + resources = display_info.resource_count + ) + }} + </div> +{% endblock %} |