From ecb491a83c646de80a0615d6167a88386cc213bd Mon Sep 17 00:00:00 2001 From: justcool393 Date: Mon, 21 Nov 2022 15:22:56 -0600 Subject: [PATCH] convert if else to ternary in home.html --- files/templates/home.html | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/files/templates/home.html b/files/templates/home.html index ca1d08968..ebefa65a2 100644 --- a/files/templates/home.html +++ b/files/templates/home.html @@ -63,21 +63,11 @@ {% block navbar %}
- {% if pins %} - {% set pcolor = "primary" %} - {% else %} - {% set pcolor = "secondary" %} - {% endif %} - + {% set pcolor = "primary" if pins else "secondary" %} Pins {% if SITE_NAME != 'WPD' and not sub %} - {% if holes %} - {% set hcolor = "primary" %} - {% else %} - {% set hcolor = "secondary" %} - {% endif %} - + {% set hcolor = "primary" if hcolor else "secondary" %} Holes {% endif %}