diff --git a/bmsapp/templates/bmsapp/base.html b/bmsapp/templates/bmsapp/base.html index 73443b4a809517874a5f21f42d0bb45be36d179b..6557b0cbbabdd91abf7356b6564e3e4984aa7f01 100644 --- a/bmsapp/templates/bmsapp/base.html +++ b/bmsapp/templates/bmsapp/base.html @@ -123,16 +123,13 @@

-
-
-

-
+ {% if logout_show %} +
+
+ Logout +
-
-
- Logout -
-
+ {% endif %}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {% block head %}{% endblock %} - {{ bmsapp_title_text }} - {%block pagetitle %}{% endblock %} - - - - - - -
-
-

- {{ bmsapp_header|safe }} -

-
-
- -
- -

{% block title %}{% endblock %}

- - {% block content %}{% endblock %} -
- -
- {% block fullwidth %}{% endblock %} -
- -
-
-
-
- AHFC Logo -
-
-

Thanks to the Alaska Housing Finance Corporation for funding development of most - of this application.

-
-
-
-
- -
- -
- - - {% block scripts %}{% endblock %} - - - - \ No newline at end of file diff --git a/bmsapp/templates/lockdown/form.html b/bmsapp/templates/lockdown/form.html index 073a06ae8329251f1adfa2b4d59af69f0b09750f..5a3802725b1a5e7745aab7c3b3fca63479d725b4 100644 --- a/bmsapp/templates/lockdown/form.html +++ b/bmsapp/templates/lockdown/form.html @@ -1,4 +1,4 @@ -{% extends "bmsapp/secure.html" %} +{% extends "bmsapp/base.html" %} {% block content %}
@@ -14,4 +14,12 @@ {% endif %}
-{% endblock %} \ No newline at end of file +{% endblock %} +{% block scripts %} + +{% endblock %} diff --git a/bmsapp/views.py b/bmsapp/views.py index be1190a9c8907c8b5f1299b15db2f615d8f9c440..29123245a8fe5a4242cfc348d050beaf923cec03 100644 --- a/bmsapp/views.py +++ b/bmsapp/views.py @@ -52,6 +52,10 @@ def base_context(): ctx['orgs_html'] = orgs_html ctx['orgs_hide'] = orgs_hide ctx['bmsapp_nav_link_base_url'] = reverse('index') + + # Only show Logout button if Django Lockdown app is being used. + ctx['logout_show'] = ('lockdown' in settings.INSTALLED_APPS) + return ctx def index(request):