summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-04-29 05:22:24 +0000
committerGerrit Code Review <review@openstack.org>2020-04-29 05:22:24 +0000
commitfaa886d24ba4d450cf74f5568f70fe71b1271832 (patch)
treee250158c1f232f492bae4d7cc9ce17f521d2efef
parent7eaca9126b26a0be50d71124bca8c7f29cd061bc (diff)
parenta1afb5046721ab57fc0af9d62400c4a21647e1f4 (diff)
downloadhorizon-faa886d24ba4d450cf74f5568f70fe71b1271832.tar.gz
Merge "Forwards LOGOUT_URL to templates." into stable/train
-rw-r--r--openstack_dashboard/context_processors.py1
-rw-r--r--openstack_dashboard/templates/header/_user_menu.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/openstack_dashboard/context_processors.py b/openstack_dashboard/context_processors.py
index 676e335e2..faf5afbd2 100644
--- a/openstack_dashboard/context_processors.py
+++ b/openstack_dashboard/context_processors.py
@@ -87,6 +87,7 @@ def openstack(request):
context['WEBROOT'] = settings.WEBROOT
context['USER_MENU_LINKS'] = settings.USER_MENU_LINKS
+ context['LOGOUT_URL'] = settings.LOGOUT_URL
# Adding profiler support flag
profiler_settings = settings.OPENSTACK_PROFILER
diff --git a/openstack_dashboard/templates/header/_user_menu.html b/openstack_dashboard/templates/header/_user_menu.html
index 66c0cacc7..6cc26ca8c 100644
--- a/openstack_dashboard/templates/header/_user_menu.html
+++ b/openstack_dashboard/templates/header/_user_menu.html
@@ -59,7 +59,7 @@
{% endif %}
<li class="divider"></li>
<li>
- <a href="{% url 'logout' %}" target="_self">
+ <a href="{{ LOGOUT_URL }}" target="_self">
<span class="fa fa-sign-out"></span>
{% trans "Sign Out" %}
</a>