aboutsummaryrefslogtreecommitdiff
path: root/app/templates/base.html
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-03-21 19:24:45 +0000
committerrubenwardy <rw@rubenwardy.com>2018-03-21 19:24:45 +0000
commite5de870b4794026ce3a0c50514337c9b5d7baa27 (patch)
tree33c5aeedb3e37aef27cba3cf8952a8cd425ab187 /app/templates/base.html
parentaed805da6eb7cdc3f1f30eaef50cebadf571cf15 (diff)
downloadcheatdb-e5de870b4794026ce3a0c50514337c9b5d7baa27.tar.xz
Add work queue
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">