forked from GithubBackups/healthchecks
Fix the sorting of projects in the top navigation dropdown menu.
This commit is contained in:
parent
c42a854e75
commit
a5a45db7a8
@ -125,14 +125,25 @@
|
|||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
{% with projects=request.get_projects %}
|
{% with projects=request.get_projects %}
|
||||||
{% for project in projects %}
|
{% for project in projects %}
|
||||||
|
{% if project.owner == request.user %}
|
||||||
|
<li class="dropdown-header">{{ project }}</li>
|
||||||
|
<li>
|
||||||
|
<a href="{% url 'hc-switch-team' project.owner.username %}">Checks</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="{% url 'hc-profile' %}">Account Settings</a></li>
|
||||||
|
<li role="separator" class="divider"></li>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
{% for project in projects %}
|
||||||
|
{% if project.owner == request.user %}
|
||||||
|
{% else %}
|
||||||
<li class="dropdown-header">{{ project }}</li>
|
<li class="dropdown-header">{{ project }}</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'hc-switch-team' project.owner.username %}">Checks</a>
|
<a href="{% url 'hc-switch-team' project.owner.username %}">Checks</a>
|
||||||
</li>
|
</li>
|
||||||
{% if project.owner == request.user %}
|
|
||||||
<li><a href="{% url 'hc-profile' %}">Account Settings</a></li>
|
|
||||||
{% endif %}
|
|
||||||
<li role="separator" class="divider"></li>
|
<li role="separator" class="divider"></li>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user