major changes

This commit is contained in:
2017-10-07 01:07:01 +02:00
parent f494aa7622
commit ab1efb649e
18 changed files with 57 additions and 507 deletions

View File

@@ -93,17 +93,16 @@
<label for="menu-toggle">hide/show menu</label>
<ul id="menuitem-list">
{% for p in PAGES %}
{% if p.url is string %}
{% if p.title != 'Search' %}
{% for title, url in MENUITEMS %}
{% if url is string %}
{% if title != 'Search' %}
<li class="dropdown">
<a class="menulink head {% if p.url == page %}active{% endif %}" href="{{ genurl( p.url ) }}" {{ newtab(p.url) }}>{{ p.title }}</a>
<a class="menulink head {% if url == page %}active{% endif %}" href="{{ genurl( url ) }}" {{ newtab(url) }}>{{ title }}</a>
</li>
{% endif %}
{% elif p.url is iterable %}
{% elif url is iterable %}
<li class="dropdown">
<!-- FIXME Selecting a submenu link does not set the head link active, need a custom jinja test for that //-->
<a href="#" class="dropdown-toggle menulink head {% if p.url == page %}active{% endif %}" data-toggle="dropdown">
<a href="#" class="dropdown-toggle menulink head {% if url == page %}active{% endif %}" data-toggle="dropdown">
{{- title }}
</a>
<ul class="dropdown-content" role="menu">