From 1c0aafaca1c1ee6ded49b3f51ca7826134cc14c4 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 7 Jul 2025 14:57:56 +0200 Subject: [PATCH] small improvements to pricelist group view --- .../templates/services/pricelist.html | 38 +++++-------------- 1 file changed, 10 insertions(+), 28 deletions(-) diff --git a/hub/services/templates/services/pricelist.html b/hub/services/templates/services/pricelist.html index 74df5f0..12cd5ee 100644 --- a/hub/services/templates/services/pricelist.html +++ b/hub/services/templates/services/pricelist.html @@ -316,18 +316,11 @@ {# Display group description and node_label from first available plan #} {% for service_level, pricing_data in service_levels.items %} {% if pricing_data and forloop.first %} - {% with pricing_data.0 as representative_plan %} - {% if representative_plan.compute_plan_group_description %} -

Description: {{ representative_plan.compute_plan_group_description }}

- {% endif %} - {% if representative_plan.compute_plan_group_node_label %} -

Node Label: {{ representative_plan.compute_plan_group_node_label }}

- {% endif %} - + {% with pricing_data.0 as representative_plan %} {# Display storage pricing for this cloud provider #} {% if representative_plan.storage_plans %}
-

Storage Options:

+

Storage Options

@@ -368,30 +361,19 @@ {% if pricing_data %} {# Display common values for this service level #} {% with pricing_data.0 as first_row %} -
-
- Cloud Provider: {{ first_row.cloud_provider }} -
-
- Service: {{ first_row.service }} -
-
- CPU/Memory Ratio: {{ first_row.cpu_mem_ratio }} -
-
- Variable Unit: {{ first_row.variable_unit }} -
-
- Replica Enforce: {{ first_row.replica_enforce }} -
+
+
    +
  • Cloud Provider: {{ first_row.cloud_provider }}
  • +
  • Service: {{ first_row.service }}
  • +
  • CPU/Memory Ratio: {{ first_row.cpu_mem_ratio }}
  • +
  • Variable Unit: {{ first_row.variable_unit }}
  • +
  • Replica Enforce: {{ first_row.replica_enforce }}
  • +
{# Display add-on summary #} {% if show_addon_details and first_row.mandatory_addons or first_row.optional_addons %}
-
-
Available Add-ons for {{ first_row.service }}
-
{% if first_row.mandatory_addons %}