From 5190020a0b56908d3b535eae0e3e3d8984bf1bbd Mon Sep 17 00:00:00 2001 From: Gert van Dijk Date: Thu, 26 Jun 2014 20:43:01 +0200 Subject: [PATCH] Offline: Add OFFLINE_MODE config and adjust HTML resources. --- puppetboard/default_settings.py | 1 + puppetboard/templates/layout.html | 26 +++++++++++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/puppetboard/default_settings.py b/puppetboard/default_settings.py index 1333957..813bc73 100644 --- a/puppetboard/default_settings.py +++ b/puppetboard/default_settings.py @@ -11,3 +11,4 @@ ENABLE_QUERY = True LOCALISE_TIMESTAMP = True LOGLEVEL = 'info' REPORTS_COUNT = 10 +OFFLINE_MODE = False diff --git a/puppetboard/templates/layout.html b/puppetboard/templates/layout.html index 37d0a04..be5a71b 100644 --- a/puppetboard/templates/layout.html +++ b/puppetboard/templates/layout.html @@ -3,9 +3,22 @@ Puppetboard + {% if config.OFFLINE_MODE %} + + + + {% else %} + {% endif %} @@ -40,13 +53,24 @@ + {% if config.OFFLINE_MODE %} + + + {% if config.LOCALISE_TIMESTAMP %} + + {% endif %} + + {% else %} {% if config.LOCALISE_TIMESTAMP %} - {% endif %} + {% endif %} + {% if config.LOCALISE_TIMESTAMP %} + + {% endif %}