menu.html 1.88 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
{% load i18n %}
{% load l10n %}

{% url "network.host_list" as u %}
{% trans "Hosts" as t %}
{% include "network/menu-item.html" with href=u text=t %}
{% url "network.vlan_list" as u %}
{% trans "Vlans" as t %}
{% include "network/menu-item.html" with href=u text=t %}
{% url "network.domain_list" as u %}
{% trans "Domains" as t %}
{% include "network/menu-item.html" with href=u text=t %}
{% url "network.record_list" as u %}
{% trans "Records" as t %}
{% include "network/menu-item.html" with href=u text=t %}
{% url "network.blacklist_list" as u %}
{% trans "Blacklists" as t %}
{% include "network/menu-item.html" with href=u text=t %}
{% url "network.rule_list" as u %}
{% trans "Rules" as t %}
{% include "network/menu-item.html" with href=u text=t %}
22 23 24
{% url "network.switch_port_list" as u %}
{% trans "Switch ports" as t %}
{% include "network/menu-item.html" with href=u text=t %}
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46

<li class="dropdown{% if "groups" in request.path %} active{% endif %}">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Groups <b class="caret"></b></a>
    <ul class="dropdown-menu">   
        {% url "network.vlan_group_list" as u %}
        {% trans "Vlan groups" as t %}
        {% include "network/menu-item.html" with href=u text=t %}

        {% url "network.group_list" as u %}
        {% trans "Host groups" as t %}
        {% include "network/menu-item.html" with href=u text=t %}
    </ul>
</li>

{# <li><a href="/vlans/">{% trans "Vlans" %}</a></li> #}
{# <li><a href="/vlangroups/">{% trans "Vlan groups" %}</a></li> #}
{# <li><a href="/hostgroups/">{% trans "Host groups" %}</a></li> #}
{# <li><a href="/hosts/">{% trans "Hosts" %}</a></li> #}
{# <li><a href="/firewalls/">{% trans "Firewalls" %}</a></li> #}
{# <li><a href="/domains/">{% trans "Domains" %}</a></li> #}
{# <li><a href="/records/">{% trans "DNS records" %}</a></li> #}
{# <li><a href="/blacklists/">{% trans "Blacklists" %}</a></li> #}