aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/web_ui/templates/packages.html.jinja
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-08-18 13:40:16 +0200
committerWojtek Kosior <koszko@koszko.org>2022-09-28 12:54:22 +0200
commit2579081df2a568192887d776a6965af323b7c4ee (patch)
tree12491e0ee11568a09891f4d261e9cba60e8a8d52 /src/hydrilla/proxy/web_ui/templates/packages.html.jinja
parentc242a5833d41fdcee6e2b35cff7af8d445b44946 (diff)
downloadhaketilo-hydrilla-2579081df2a568192887d776a6965af323b7c4ee.tar.gz
haketilo-hydrilla-2579081df2a568192887d776a6965af323b7c4ee.zip
make it possible to list all repositories in the web UI
Diffstat (limited to 'src/hydrilla/proxy/web_ui/templates/packages.html.jinja')
-rw-r--r--src/hydrilla/proxy/web_ui/templates/packages.html.jinja71
1 files changed, 23 insertions, 48 deletions
diff --git a/src/hydrilla/proxy/web_ui/templates/packages.html.jinja b/src/hydrilla/proxy/web_ui/templates/packages.html.jinja
index d0ba5cb..48ef80b 100644
--- a/src/hydrilla/proxy/web_ui/templates/packages.html.jinja
+++ b/src/hydrilla/proxy/web_ui/templates/packages.html.jinja
@@ -20,59 +20,34 @@ 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 %}Available packages{% endblock %}
+{% block title %} {{ _('web_ui.packages.title') }} {% endblock %}
{% block style %}
-{{ super() }}
-
-ul#packages_list {
- padding: 0;
-}
-
-ul#packages_list > li {
- list-style-type: none;
- max-width: 100%;
- overflow-x: scroll;
- white-space: nowrap;
- padding: 5px;
- margin: 5px;
- border: 2px solid #999;
- border-radius: 5px;
-}
-
-ul#packages_list > li > a {
- display: block;
- text-decoration: inherit;
- color: inherit;
-}
-
-.package-identifier {
- font-size: 80%;
- color: #555;
-}
+ {{ super() }}
+ {% include 'include/item_list_style.css.jinja' %}
{% endblock %}
{% block main %}
- <h3>{{ _('web_ui.h3.packages') }}</h3>
- <ul id="packages_list">
+ <h3>{{ _('web_ui.packages.heading') }}</h3>
+ <ul id="item_list">
{% for info in display_infos %}
- <li
- {% if info.info.repo == '<local>' %}
- class="package-entry-local"
- {% endif %}
- >
- <a href="{{ url_for('.show_package', mapping_id=info.ref.id) }}">
- <div>
- {{ info.info.long_name }}
- </div>
- <div class="package-identifier">
- {{ info.info.versioned_identifier }}
- {% if info.info.repo != '<local>' %}
- @
- {{ info.info.repo }}
- {% endif %}
- </div>
- </a>
- </li>
+ <li
+ {% if info.info.repo == '<local>' %}
+ class="package-entry-local"
+ {% endif %}
+ >
+ <a href="{{ url_for('.show_package', mapping_id=info.ref.id) }}">
+ <div>
+ {{ info.info.long_name }}
+ </div>
+ <div class="small-print">
+ {{ info.info.versioned_identifier }}
+ {% if info.info.repo != '<local>' %}
+ @
+ {{ info.info.repo }}
+ {% endif %}
+ </div>
+ </a>
+ </li>
{% endfor %}
</ul>
{% endblock %}