diff options
Diffstat (limited to 'src/hydrilla/proxy/web_ui/templates/libraries/show_single.html.jinja')
-rw-r--r-- | src/hydrilla/proxy/web_ui/templates/libraries/show_single.html.jinja | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/src/hydrilla/proxy/web_ui/templates/libraries/show_single.html.jinja b/src/hydrilla/proxy/web_ui/templates/libraries/show_single.html.jinja new file mode 100644 index 0000000..8ee96ba --- /dev/null +++ b/src/hydrilla/proxy/web_ui/templates/libraries/show_single.html.jinja @@ -0,0 +1,76 @@ +{# +Proxy web UI library 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.libraries.single.title') }} {% endblock %} +{% block style %} + {{ super() }} + + {% include 'include/item_list_style.css.jinja' %} +{% endblock %} +{% block main %} + {% block main_info %} + <h3> + {{ + _('web_ui.libraries.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.libraries.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_library_version', + item_version_id = info.ref.id + ) + %} + <a href="{{ href }}"> + <div> + {{ + versions.version_string( + info.info.version, + rev = info.info.revision + ) + }} + {% if not info.is_local %} + @ + {{ info.info.repo }} + {% endif %} + </div> + </a> + </li> + {% endfor %} + </ul> +{% endblock %} |