diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-08-29 17:05:00 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-09-28 12:54:54 +0200 |
commit | 2363ab8054ab5d8e7981242dc311a394e8d5ff57 (patch) | |
tree | d02a2fca005a241f42331d8bb08aeb0933c898a7 /src/hydrilla/proxy/web_ui/templates/packages/show_single.html.jinja | |
parent | 7fc6312d6df526b8eb49288aecf88d04668e7c45 (diff) | |
download | haketilo-hydrilla-2363ab8054ab5d8e7981242dc311a394e8d5ff57.tar.gz haketilo-hydrilla-2363ab8054ab5d8e7981242dc311a394e8d5ff57.zip |
[proxy] refactor we UI library and package pages templates to avoid code repetition
Diffstat (limited to 'src/hydrilla/proxy/web_ui/templates/packages/show_single.html.jinja')
-rw-r--r-- | src/hydrilla/proxy/web_ui/templates/packages/show_single.html.jinja | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/src/hydrilla/proxy/web_ui/templates/packages/show_single.html.jinja b/src/hydrilla/proxy/web_ui/templates/packages/show_single.html.jinja deleted file mode 100644 index 24d9a58..0000000 --- a/src/hydrilla/proxy/web_ui/templates/packages/show_single.html.jinja +++ /dev/null @@ -1,71 +0,0 @@ -{# -Proxy web UI package show 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.packages.single.title') }} {% endblock %} -{% block style %} - {{ super() }} - - {% include 'include/item_list_style.css.jinja' %} -{% endblock %} -{% block main %} - {% block main_info %} - <h3> - {{ - _('web_ui.packages.single.heading.name_{}') - .format(display_info.identifier) - }} - </h3> - TODO: add more info... - {% endblock %} - <h4> - {% if version_display_infos|length > 0 %} - {% block version_list_heading %} - {{ _('web_ui.packages.single.version_list_heading') }} - {% endblock %} - {% endif %} - </h4> - <ul id="item_list"> - {% for info in version_display_infos %} - {% set entry_classes = [] %} - {% if info.is_local %} - {% do entry_classes.append('version-entry-local') %} - {% endif %} - {% if info.is_orphan %} - {% do entry_classes.append('version-entry-orphan') %} - {% endif %} - <li class="{{ entry_classes|join(' ') }}"> - {% - set href = url_for( - '.show_package_version', - item_version_id = info.ref.id - ) - %} - <a href="{{ href }}"> - <div> - {{ versions.version_string(info.info.version) }} - {% if not info.is_local %} - @ - {{ info.info.repo }} - {% endif %} - </div> - </a> - </li> - {% endfor %} - </ul> -{% endblock %} |