Merge pull request #19 from alphagov/home-link

Changed main GOV.UK link depending on whether user is logged in or not
This commit is contained in:
Rebecca Law
2015-12-07 16:57:08 +00:00

View File

@@ -1,12 +1,15 @@
{% extends "govuk_template.html" %}
{% block page_title %}
GOV.UK notifications admin
{% endblock %}
{% block cookie_message %}
{% endblock %}
{% block inside_header %}
<div class="phase-banner-beta">
@@ -15,5 +18,13 @@ GOV.UK notifications admin
</div>
{% endblock %}
{% set global_header_text = "GOV.UK Notify" %}
{% if not current_user.is_authenticated() %}
{% set homepage_url = url_for('main.index') %}
{% else %}
{% set homepage_url = url_for('main.dashboard') %}
{% endif %}