Skip to content
Snippets Groups Projects
Commit 64613992 authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Hide filter dropdowns in plan if there are no rooms or tracks

parent f5c4e4d5
Branches
No related tags found
No related merge requests found
...@@ -76,6 +76,7 @@ ...@@ -76,6 +76,7 @@
{% block content %} {% block content %}
<div class="float-right"> <div class="float-right">
<ul class="nav nav-pills"> <ul class="nav nav-pills">
{% if event.room_set.count > 0 %}
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
aria-expanded="false">{% trans "Rooms" %}</a> aria-expanded="false">{% trans "Rooms" %}</a>
...@@ -86,6 +87,8 @@ ...@@ -86,6 +87,8 @@
{% endfor %} {% endfor %}
</div> </div>
</li> </li>
{% endif %}
{% if event.aktrack_set.count > 0 %}
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
aria-expanded="false">{% trans "Tracks" %}</a> aria-expanded="false">{% trans "Tracks" %}</a>
...@@ -96,6 +99,7 @@ ...@@ -96,6 +99,7 @@
{% endfor %} {% endfor %}
</div> </div>
</li> </li>
{% endif %}
{% if event.active %} {% if event.active %}
<li class="nav-item"> <li class="nav-item">
<a class="nav-link active" <a class="nav-link active"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment