Skip to content

Commit

Permalink
Show Shynet version when envvar is true
Browse files Browse the repository at this point in the history
  • Loading branch information
milesmcc committed Oct 17, 2020
1 parent 8b1034e commit 9146c88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shynet/dashboard/templatetags/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 9146c88

Please sign in to comment.