Show Shynet version when envvar is true

This commit is contained in:
R. Miles McCain 2020-10-17 18:53:46 +00:00
parent 8b1034ebb0
commit 9146c889ac
No known key found for this signature in database
GPG Key ID: F1053629E2905557

View File

@ -84,8 +84,8 @@ def percent_change_display(start, end):
@register.inclusion_tag("dashboard/includes/sidebar_footer.html") @register.inclusion_tag("dashboard/includes/sidebar_footer.html")
def sidebar_footer(): def sidebar_footer():
return {"version": "" if settings.SHOW_SHYNET_VERSION return {"version": settings.VERSION if settings.SHOW_SHYNET_VERSION
else settings.VERSION} else ""}
@register.inclusion_tag("dashboard/includes/stat_comparison.html") @register.inclusion_tag("dashboard/includes/stat_comparison.html")