aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/web_ui/templates/items/packages.html.jinja
diff options
context:
space:
mode:
Diffstat (limited to 'src/hydrilla/proxy/web_ui/templates/items/packages.html.jinja')
-rw-r--r--src/hydrilla/proxy/web_ui/templates/items/packages.html.jinja20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/hydrilla/proxy/web_ui/templates/items/packages.html.jinja b/src/hydrilla/proxy/web_ui/templates/items/packages.html.jinja
index d2eaaf3..093570d 100644
--- a/src/hydrilla/proxy/web_ui/templates/items/packages.html.jinja
+++ b/src/hydrilla/proxy/web_ui/templates/items/packages.html.jinja
@@ -24,17 +24,33 @@ in a proprietary work, I am not going to enforce this in court.
{{ super() }}
{% include 'include/item_list_style.css.jinja' %}
+
+ ul#item_list > li > a {
+ display: flex !important;
+ flex-direction: column;
+ justify-content: center;
+ min-height: 2.2em;
+ }
{% endblock %}
{% block main %}
<h3>{{ _('web_ui.packages.heading') }}</h3>
<ul id="item_list">
{% for info in display_infos %}
{% set entry_classes = [] %}
+
{% if info.enabled == EnabledStatus.ENABLED %}
- {% do entry_classes.append('mapping-entry-enabled') %}
+ {% do entry_classes.append('entry-line-blue') %}
{% elif info.enabled == EnabledStatus.DISABLED %}
- {% do entry_classes.append('mapping-entry-disabled') %}
+ {% do entry_classes.append('entry-line-red') %}
+ {% elif info.active_version is not none %}
+ {% if info.active_version.active == ActiveStatus.REQUIRED %}
+ {% do entry_classes.append('entry-line-blue') %}
+ {% do entry_classes.append('entry-line-dashed') %}
+ {% elif info.active_version.active == ActiveStatus.AUTO %}
+ {% do entry_classes.append('entry-line-green') %}
+ {% endif %}
{% endif %}
+
<li class="{{ entry_classes|join(' ') }}">
<a href="{{ url_for('.show_package', item_id=info.ref.id) }}">
<div>