mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
30 lines
1.5 KiB
HTML
30 lines
1.5 KiB
HTML
![]() |
<li class="dropdown">
|
||
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Plugins <span class="caret"></span></a>
|
||
|
<ul class="dropdown-menu">
|
||
|
{% for section_name, link_items in plugin_nav_menu_links.items %}
|
||
|
<li class="dropdown-header">{{ section_name }}</li>
|
||
|
{% for link_item in link_items %}
|
||
|
{% if link_item.link_permission %}
|
||
|
<li{% if not link_item.link_permission in perms %} class="disabled"{% endif %}>
|
||
|
{% else %}
|
||
|
<li>
|
||
|
{% endif %}
|
||
|
{% if link_item.buttons %}
|
||
|
<div class="buttons pull-right">
|
||
|
{% for button in link_item.buttons %}
|
||
|
{% if not button.permission or button.permission in perms %}
|
||
|
<a href="{% url button.link %}" class="btn btn-xs btn-{{ button.color }}" title="{{ button.title }}"><i class="fa {{ button.icon_class }}"></i></a>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
<a href="{% url link_item.link %}">{{ link_item.link_text }}</a>
|
||
|
</li>
|
||
|
{% endfor %}
|
||
|
{% if not forloop.last %}
|
||
|
<li class="divider"></li>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
</li>
|