Merge "Change projects redirects to overview page"
This commit is contained in:
commit
d6f317a5ab
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user