aboutsummaryrefslogtreecommitdiff
path: root/app/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates/base.html')
-rw-r--r--app/templates/base.html34
1 files changed, 18 insertions, 16 deletions
diff --git a/app/templates/base.html b/app/templates/base.html
index 687d718..f4baef4 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -14,25 +14,27 @@
<ul class="nav navbar-nav">
<li><a href="/">{{ config.USER_APP_NAME }}</a></li>
{% for item in current_menu.children recursive %}
- <li{% if item.children %} class="dropdown"{% endif %}>
- <a href="{{ item.url }}"
+ {% if item.visible %}
+ <li{% if item.children %} class="dropdown"{% endif %}>
+ <a href="{{ item.url }}"
+ {% if item.children %}
+ class="dropdown-toggle"
+ data-toggle="dropdown"
+ role="button"
+ aria-expanded="false"
+ {% endif %}>
+ {{ item.text }}
{% if item.children %}
- class="dropdown-toggle"
- data-toggle="dropdown"
- role="button"
- aria-expanded="false"
- {% endif %}>
- {{ item.text }}
+ <span class="caret"></span>
+ {% endif %}
+ </a>
{% if item.children %}
- <span class="caret"></span>
+ <ul class="dropdown-menu" role="menu">
+ {{ loop(item.children) }}
+ </ul>
{% endif %}
- </a>
- {% if item.children %}
- <ul class="dropdown-menu" role="menu">
- {{ loop(item.children) }}
- </ul>
- {% endif %}
- </li>
+ </li>
+ {% endif %}
{% endfor %}
</ul>
<ul class="nav navbar-nav navbar-right">