From 339b02d815fe4bf7720f13eb23b7a9908df5e7f8 Mon Sep 17 00:00:00 2001 From: Iain Learmonth Date: Tue, 27 Sep 2022 09:19:46 +0100 Subject: [PATCH] portal: show pool in lists --- app/portal/list.py | 8 -------- app/portal/templates/tables.html.j2 | 6 ++++++ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/app/portal/list.py b/app/portal/list.py index 20836c1..f978b2e 100644 --- a/app/portal/list.py +++ b/app/portal/list.py @@ -48,14 +48,6 @@ def list_list() -> ResponseReturnValue: item="distribution list", new_link=url_for("portal.list.list_new"), items=lists, - extra_buttons=[ - { - "link": url_for("portal.list.list_preview", format_=k), - "text": f"Preview {v}", - "style": "secondary" - } - for k, v in MirrorList.formats_supported.items() - ], **_SECTION_TEMPLATE_VARS ) diff --git a/app/portal/templates/tables.html.j2 b/app/portal/templates/tables.html.j2 index 614e81a..fbd656d 100644 --- a/app/portal/templates/tables.html.j2 +++ b/app/portal/templates/tables.html.j2 @@ -363,6 +363,7 @@ Origin Domain Name + Pool Group Provider URL @@ -381,6 +382,7 @@ rel="noopener noreferer">⎋ {{ proxy.origin.domain_name }} + {{ proxy.pool.pool_name }} {{ proxy.origin.group.group_name }} @@ -538,6 +540,7 @@ + @@ -550,6 +553,7 @@ {% for list in mirrorlists %} {% if not list.destroyed %} + @@ -558,6 +562,8 @@
Pool Provider Format Encoding
{{ list.pool.pool_name }} {{ list.provider | provider_name }} {{ list.format | format_name }} {{ list.encoding | list_encoding_name }} View/Edit + Preview Destroy