|
@ -110,26 +110,27 @@ |
|
|
<ul class="nav navbar-nav navbar-right"> |
|
|
<ul class="nav navbar-nav navbar-right"> |
|
|
<li class="dropdown"> |
|
|
<li class="dropdown"> |
|
|
<a id="nav-email" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"> |
|
|
<a id="nav-email" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"> |
|
|
{{ request.user.profile.current_team }} <span class="caret"></span> |
|
|
|
|
|
|
|
|
{{ request.team }} <span class="caret"></span> |
|
|
</a> |
|
|
</a> |
|
|
<ul class="dropdown-menu"> |
|
|
<ul class="dropdown-menu"> |
|
|
|
|
|
{% if request.teams %} |
|
|
<li class="dropdown-header">{{ request.user.profile }}</li> |
|
|
<li class="dropdown-header">{{ request.user.profile }}</li> |
|
|
<li> |
|
|
<li> |
|
|
<a href="{% url 'hc-switch-team' request.user.username %}" class="active">Checks</a> |
|
|
<a href="{% url 'hc-switch-team' request.user.username %}" class="active">Checks</a> |
|
|
</li> |
|
|
</li> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
<li><a href="{% url 'hc-profile' %}">Account Settings</a></li> |
|
|
<li><a href="{% url 'hc-profile' %}">Account Settings</a></li> |
|
|
<li role="separator" class="divider"></li> |
|
|
<li role="separator" class="divider"></li> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% for m in request.user.member_set.all %} |
|
|
|
|
|
<li class="dropdown-header">{{ m.team }}</li> |
|
|
|
|
|
|
|
|
{% for team in request.teams %} |
|
|
|
|
|
<li class="dropdown-header">{{ team }}</li> |
|
|
<li> |
|
|
<li> |
|
|
<a href="{% url 'hc-switch-team' m.team.user.username %}">Checks</a> |
|
|
|
|
|
|
|
|
<a href="{% url 'hc-switch-team' team.user.username %}">Checks</a> |
|
|
</li> |
|
|
</li> |
|
|
<li role="separator" class="divider"></li> |
|
|
<li role="separator" class="divider"></li> |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li><a href="{% url 'hc-logout' %}">Log Out</a></li> |
|
|
<li><a href="{% url 'hc-logout' %}">Log Out</a></li> |
|
|
</ul> |
|
|
</ul> |
|
|
</li> |
|
|
</li> |
|
|