From efea27d4339bf1a46c99e5e40148187d465fa446 Mon Sep 17 00:00:00 2001 From: Ben Thorner Date: Wed, 6 Apr 2022 18:15:19 +0100 Subject: [PATCH] Don't show priority for inactive providers This is consistent with not being able to set it either. I think it's OK to not have a test for this as it's purely cosmetic. --- app/templates/views/providers/providers.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/views/providers/providers.html b/app/templates/views/providers/providers.html index 37efad72b..3874cd0bd 100644 --- a/app/templates/views/providers/providers.html +++ b/app/templates/views/providers/providers.html @@ -25,7 +25,7 @@ Providers {{ link_field(item.display_name, url_for('main.view_provider', provider_id=item.id)) }} - {{ text_field(item.priority) }} + {{ optional_text_field(item.priority if item.active, default='None') }} {{ text_field(item.monthly_traffic) }}