From 9146c889aca314f0be305cd2bb1bddd06b7e2690 Mon Sep 17 00:00:00 2001 From: "R. Miles McCain" Date: Sat, 17 Oct 2020 18:53:46 +0000 Subject: [PATCH] Show Shynet version when envvar is true --- shynet/dashboard/templatetags/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shynet/dashboard/templatetags/helpers.py b/shynet/dashboard/templatetags/helpers.py index 19a0689..418f971 100644 --- a/shynet/dashboard/templatetags/helpers.py +++ b/shynet/dashboard/templatetags/helpers.py @@ -84,8 +84,8 @@ def percent_change_display(start, end): @register.inclusion_tag("dashboard/includes/sidebar_footer.html") def sidebar_footer(): - return {"version": "" if settings.SHOW_SHYNET_VERSION - else settings.VERSION} + return {"version": settings.VERSION if settings.SHOW_SHYNET_VERSION + else ""} @register.inclusion_tag("dashboard/includes/stat_comparison.html")