aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/web_ui/templates/packages/index.html.jinja
diff options
context:
space:
mode:
Diffstat (limited to 'src/hydrilla/proxy/web_ui/templates/packages/index.html.jinja')
-rw-r--r--src/hydrilla/proxy/web_ui/templates/packages/index.html.jinja10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/hydrilla/proxy/web_ui/templates/packages/index.html.jinja b/src/hydrilla/proxy/web_ui/templates/packages/index.html.jinja
index 6aa985c..e2aad5d 100644
--- a/src/hydrilla/proxy/web_ui/templates/packages/index.html.jinja
+++ b/src/hydrilla/proxy/web_ui/templates/packages/index.html.jinja
@@ -27,8 +27,14 @@ in a proprietary work, I am not going to enforce this in court.
<h3>{{ _('web_ui.packages.heading') }}</h3>
<ul id="item_list">
{% for info in display_infos %}
- <li class="{{ entry_classes }}">
- <a href="{{ url_for('.show_package', mapping_id=info.ref.id) }}">
+ {% set entry_classes = [] %}
+ {% if info.enabled == EnabledStatus.ENABLED %}
+ {% do entry_classes.append('mapping-entry-enabled') %}
+ {% elif info.enabled == EnabledStatus.DISABLED %}
+ {% do entry_classes.append('mapping-entry-disabled') %}
+ {% endif %}
+ <li class="{{ entry_classes|join(' ') }}">
+ <a href="{{ url_for('.show_package', item_id=info.ref.id) }}">
<div>
{{ info.identifier }}
</div>