Research mode

- adds a new link on service settings page to switch service into/out of research mode
- platform admin only
- shows an indicator in the footer
This commit is contained in:
Martyn Inglis
2016-06-01 16:07:43 +01:00
parent f2cca024dd
commit c9297459e2
7 changed files with 188 additions and 24 deletions

View File

@@ -111,6 +111,9 @@
<nav class="footer-nav">
Built by the <a href="https://www.gov.uk/government/organisations/government-digital-service">Government Digital Service</a>
<a href="{{ url_for("main.cookies") }}">Cookies</a>
{% if current_service.research_mode %}
<span id="research-mode" style="font-weight: bold; display: inline-block; padding: 5px 10px; background: #005EA5; color: #fff; border-radius: 2px;">research mode</span>
{% endif %}
</nav>
{% endblock %}