summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/actions.html
blob: a42581049dd8226aaf23d73fae86fe867062d560 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<ul class="navbar-nav action-menu">
    {% with MENU.current_section as section_label %}
    {% with MENU.current_sections as sections %}
    {% include "blocks/action_list.html" %}
    {% endwith %}{% endwith %}

    {% if MENU.current_subsections %}
    <li class="nav-item">
        <span class="nav-link">&gt;</span>
    </li>
    {% with MENU.current_subsection as section_label %}
    {% with MENU.current_subsections as sections %}
    {% include "blocks/action_list.html" %}
    {% endwith %}{% endwith %}
    {% endif %}

    {% if MENU.current_subsubsections %}
    <li class="nav-item">
        <span class="nav-link">&gt;</span>
    </li>
    {% with MENU.current_subsubsection as section_label %}
    {% with MENU.current_subsubsections as sections %}
    {% include "blocks/action_list.html" %}
    {% endwith %}{% endwith %}
    {% endif %}
</ul>
{% comment %}
<div id="main_menu">
    <ul>
        {% for section in MENU.childs %}
        {% if section.available %}
        <li id='section-{{section.idx}}'{% if section.css %} class="{{section.css}}"{% endif %}>
            {{section.label}}
            <ul>
                {% for menu_item in section.childs %}{%if menu_item.available%}
                {% if menu_item.childs %}<li id='subsection-{{menu_item.idx}}'{% if menu_item.css %} class="{{menu_item.css}}"{% endif %}>{{menu_item.label}}
                <ul>
                    {% for menu_subitem in menu_item.childs %}{% if menu_subitem.available %}
                    {% url 'action' menu_subitem.idx as item_url %}
                    <li id='{{menu_subitem.idx}}'{% if item_url in CURRENT_PATH %} class='selected'{% endif %}><a
                            href='{{item_url}}'>{{menu_subitem.label}}</a></li>
                    {%endif%}{% endfor %}</ul></li>
                {% else %}
                {% url 'action' menu_item.idx as item_url %}
                <li id='{{menu_item.idx}}'
                    class="{% if item_url in CURRENT_PATH %}selected{% endif %} {% if menu_item.css %}{{menu_item.css}}{% endif %}"><a href="{{item_url}}">{{menu_item.label}}</a></li>
                {%endif%}{% endif %}{% endfor %}
            </ul>
        </li>{%endif%}
        {% endfor %}
    </ul>
</div>
{% endcomment %}