diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-09-05 13:58:34 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-09-28 14:03:14 +0200 |
commit | 04853ff19450c5925a7c9bacc11abe90e75f8510 (patch) | |
tree | 8c3579c4280177bfd296d674b720fa5e0d18bf2d /src/hydrilla/proxy/web_ui/templates/items/item_view.html.jinja | |
parent | 58b679e7412bad37e7a0206dcb5d1beab77cbb79 (diff) | |
download | haketilo-hydrilla-04853ff19450c5925a7c9bacc11abe90e75f8510.tar.gz haketilo-hydrilla-04853ff19450c5925a7c9bacc11abe90e75f8510.zip |
[proxy] complete the text content and styling of web UI pages written so far
Diffstat (limited to 'src/hydrilla/proxy/web_ui/templates/items/item_view.html.jinja')
-rw-r--r-- | src/hydrilla/proxy/web_ui/templates/items/item_view.html.jinja | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/hydrilla/proxy/web_ui/templates/items/item_view.html.jinja b/src/hydrilla/proxy/web_ui/templates/items/item_view.html.jinja index 07212ff..d4910ab 100644 --- a/src/hydrilla/proxy/web_ui/templates/items/item_view.html.jinja +++ b/src/hydrilla/proxy/web_ui/templates/items/item_view.html.jinja @@ -20,13 +20,13 @@ in a proprietary work, I am not going to enforce this in court. #} {% extends "base.html.jinja" %} -{% macro versioned_identifier_with_repo(info) %} +{% macro versioned_identifier_with_repo(info) -%} {{ info.info.version_string }} - {% if not info.is_local %} + {%- if not info.is_local %} @ {{ info.info.repo }} - {% endif %} -{% endmacro %} + {%- endif %} +{%- endmacro %} {% block style %} {{ super() }} @@ -37,15 +37,25 @@ in a proprietary work, I am not going to enforce this in court. color: #777; } {% endblock %} + {% block main %} {% block main_info %} <h3>{% block heading required %}{% endblock %}</h3> {% endblock %} - {% if display_info.all_versions|length > 0 %} + + {% + if display_info.all_versions|length > 1 or + (display_info.all_versions|length == 1 and + (version_display_info is not defined or + version_display_info.ref != display_info.all_versions[0].ref)) + %} + <div class="horizontal-separator"></div> + <h4> {% block version_list_heading required %} {% endblock %} </h4> + <ul id="item_list"> {% for info in display_info.all_versions %} {% |