diff --git a/puppetboard/templates/index.html b/puppetboard/templates/index.html
index fee5fd7..d77195a 100644
--- a/puppetboard/templates/index.html
+++ b/puppetboard/templates/index.html
@@ -4,6 +4,13 @@
{% if config.DAILY_REPORTS_CHART_ENABLED %}
{% endif %}
+{% if config.DAILY_REPORTS_CHART_ENABLED %}
+{% block script %}
+
+
+
+{% endblock script %}
+{% endif %}
{% endblock head %}
{% block content %}
{% if config.REFRESH_RATE > 0 %}
@@ -124,10 +131,3 @@
{% endblock content %}
-{% if config.DAILY_REPORTS_CHART_ENABLED %}
-{% block script %}
-
-
-
-{% endblock script %}
-{% endif %}
diff --git a/puppetboard/templates/layout.html b/puppetboard/templates/layout.html
index 0c69f1e..ab9f649 100644
--- a/puppetboard/templates/layout.html
+++ b/puppetboard/templates/layout.html
@@ -19,6 +19,36 @@
{% endif %}
+
+ {% if config.OFFLINE_MODE %}
+
+
+
+ {% if config.LOCALISE_TIMESTAMP %}
+
+ {% endif %}
+ {% else %}
+
+
+
+ {% if config.LOCALISE_TIMESTAMP %}
+
+ {% endif %}
+ {% endif %}
+ {% if config.LOCALISE_TIMESTAMP %}
+
+ {% endif %}
+
+
+
+
+ {% block script %} {% endblock script %}
{% block head %} {% endblock head %}
@@ -70,32 +100,5 @@
Copyright © 2013-{{ now('%Y') }} Puppet Community. Live from PuppetDB.
-
- {% if config.OFFLINE_MODE %}
-
-
-
- {% if config.LOCALISE_TIMESTAMP %}
-
- {% endif %}
- {% else %}
-
-
-
- {% if config.LOCALISE_TIMESTAMP %}
-
- {% endif %}
- {% endif %}
- {% if config.LOCALISE_TIMESTAMP %}
-
- {% endif %}
-
-
-
-
-
- {% block script %} {% endblock script %}