Merge "Change projects redirects to overview page"

This commit is contained in:
Jenkins 2016-03-16 02:14:46 +00:00 committed by Gerrit Code Review
commit d6f317a5ab

View File

@ -1,12 +1,12 @@
{% load i18n %}
{% with dashboard_url=request.horizon.dashboard.get_absolute_url %}
{% with page_url=request.horizon.panel.get_absolute_url %}
<ul class="dropdown-menu">
<li class="dropdown-header">{% trans "Projects:" %}</li>
{% for project in projects %}
<li>
<a class="{% if project.enabled and project.id == project_id %} dropdown-selected{% endif %}"
href="{% url 'switch_tenants' project.id %}?next={{ dashboard_url }}"
href="{% url 'switch_tenants' project.id %}?next={{ page_url }}"
target="_self">
<span class="fa fa-check dropdown-selected-icon"></span>
<span class="dropdown-title">