summaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/web_ui/templates/packages
diff options
context:
space:
mode:
Diffstat (limited to 'src/hydrilla/proxy/web_ui/templates/packages')
-rw-r--r--src/hydrilla/proxy/web_ui/templates/packages/index.html.jinja10
-rw-r--r--src/hydrilla/proxy/web_ui/templates/packages/show_single.html.jinja2
-rw-r--r--src/hydrilla/proxy/web_ui/templates/packages/show_single_version.html.jinja8
3 files changed, 13 insertions, 7 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>
diff --git a/src/hydrilla/proxy/web_ui/templates/packages/show_single.html.jinja b/src/hydrilla/proxy/web_ui/templates/packages/show_single.html.jinja
index 60cb4a5..24d9a58 100644
--- a/src/hydrilla/proxy/web_ui/templates/packages/show_single.html.jinja
+++ b/src/hydrilla/proxy/web_ui/templates/packages/show_single.html.jinja
@@ -53,7 +53,7 @@ in a proprietary work, I am not going to enforce this in court.
{%
set href = url_for(
'.show_package_version',
- mapping_version_id = info.ref.id
+ item_version_id = info.ref.id
)
%}
<a href="{{ href }}">
diff --git a/src/hydrilla/proxy/web_ui/templates/packages/show_single_version.html.jinja b/src/hydrilla/proxy/web_ui/templates/packages/show_single_version.html.jinja
index 2c6863b..12e5416 100644
--- a/src/hydrilla/proxy/web_ui/templates/packages/show_single_version.html.jinja
+++ b/src/hydrilla/proxy/web_ui/templates/packages/show_single_version.html.jinja
@@ -53,7 +53,7 @@ in a proprietary work, I am not going to enforce this in court.
display_info.active != ActiveStatus.REQUIRED
%}
<form method="POST">
- <input name="action" value="uninstall_package" type="hidden">
+ <input name="action" value="uninstall_item_version" type="hidden">
<button class="green-button">
{{ _('web_ui.packages.single_version.uninstall_button') }}
</button>
@@ -64,7 +64,7 @@ in a proprietary work, I am not going to enforce this in court.
{{ _('web_ui.packages.single_version.package_is_not_installed') }}
</div>
<form method="POST">
- <input name="action" value="install_package" type="hidden">
+ <input name="action" value="install_item_version" type="hidden">
<button class="green-button">
{{ _('web_ui.packages.single_version.install_button') }}
</button>
@@ -75,13 +75,13 @@ in a proprietary work, I am not going to enforce this in court.
</div>
<div>
<form method="POST" class="inline-form">
- <input name="action" value="install_package" type="hidden">
+ <input name="action" value="install_item_version" type="hidden">
<button class="green-button">
{{ _('web_ui.packages.single_version.retry_install_button') }}
</button>
</form>
<form method="POST" class="inline-form">
- <input name="action" value="uninstall_package" type="hidden">
+ <input name="action" value="uninstall_item_version" type="hidden">
<button class="green-button">
{{ _('web_ui.packages.single_version.leave_uninstalled_button') }}
</button>