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 %}