Changed from dict header to array header so order is in tact
This commit is contained in:
parent
37ade4fd34
commit
548869a472
|
@ -1,16 +1,16 @@
|
||||||
{% set header_links =
|
{% set header_links =
|
||||||
|
[
|
||||||
{
|
{
|
||||||
"Home":
|
"name": "Home",
|
||||||
{
|
|
||||||
"endpoint": "home_index",
|
"endpoint": "home_index",
|
||||||
"href": "/home"
|
"href": "/home"
|
||||||
},
|
},
|
||||||
"Download":
|
|
||||||
{
|
{
|
||||||
|
"name": "Download",
|
||||||
"endpoint": "download_index",
|
"endpoint": "download_index",
|
||||||
"href": "/download"
|
"href": "/download"
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
%}
|
%}
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
@ -65,14 +65,14 @@
|
||||||
<body class="pushable">
|
<body class="pushable">
|
||||||
<div class="ui large top fixed inverted menu transition hidden">
|
<div class="ui large top fixed inverted menu transition hidden">
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
{% for entry in header_links.keys() %}
|
{% for entry in header_links %}
|
||||||
<a class="{% if header_links[entry]["endpoint"] == request.endpoint %}active{% endif %} item" href="{{ header_links[entry]["href"] }}">{{entry}}</a>
|
<a class="{% if entry["endpoint"] == request.endpoint %}active{% endif %} item" href="{{ entry["href"] }}">{{entry["name"]}}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui vertical inverted sidebar menu left">
|
<div class="ui vertical inverted sidebar menu left">
|
||||||
{% for entry in header_links.keys() %}
|
{% for entry in header_links %}
|
||||||
<a class="{% if header_links[entry]["endpoint"] == request.endpoint %}active{% endif %} item" href="{{ header_links[entry]["href"] }}">{{entry}}</a>
|
<a class="{% if entry["endpoint"] == request.endpoint %}active{% endif %} item" href="{{ entry["href"] }}">{{entry["name"]}}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
<div class="pusher">
|
<div class="pusher">
|
||||||
|
@ -82,8 +82,8 @@
|
||||||
<a class="toc item">
|
<a class="toc item">
|
||||||
<i class="sidebar icon"></i>
|
<i class="sidebar icon"></i>
|
||||||
</a>
|
</a>
|
||||||
{% for entry in header_links.keys() %}
|
{% for entry in header_links %}
|
||||||
<a class="{% if header_links[entry]["endpoint"] == request.endpoint %}active{% endif %} item" href="{{ header_links[entry]["href"] }}">{{entry}}</a>
|
<a class="{% if entry["endpoint"] == request.endpoint %}active{% endif %} item" href="{{ entry["href"] }}">{{entry["name"]}}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user