From d6f2be8fbae43ecfd72dae4f8a2022f93bf0cace Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Fri, 20 Jul 2018 09:52:06 -0400 Subject: [PATCH 1/4] Add ui method to check if dev env --- atst/ui_methods.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/atst/ui_methods.py b/atst/ui_methods.py index d5c5bf78..e335b941 100644 --- a/atst/ui_methods.py +++ b/atst/ui_methods.py @@ -1,2 +1,7 @@ +import os + +def dev(self): + return os.getenv("TORNADO_ENV", "dev") == "dev" + def matchesPath(self, href): return self.request.uri.startswith(href) From 186b89941858f59a7da1f0b2e306e0a4b3274887 Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Fri, 20 Jul 2018 09:52:32 -0400 Subject: [PATCH 2/4] Add link to styleguide if dev env --- templates/navigation/global_navigation.html.to | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/navigation/global_navigation.html.to b/templates/navigation/global_navigation.html.to index 742ddaf7..17e8bf01 100644 --- a/templates/navigation/global_navigation.html.to +++ b/templates/navigation/global_navigation.html.to @@ -1,5 +1,9 @@