Merge "Forwards LOGOUT_URL to templates."

This commit is contained in:
Zuul 2019-10-29 15:23:01 +00:00 committed by Gerrit Code Review
commit afba1d7b85
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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>