mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
Rearrange locations link in navigation menu
This commit is contained in:
parent
1e3c7e1a87
commit
0986fd1081
@ -47,6 +47,15 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{% url 'dcim:sitegroup_list' %}">Site Groups</a>
|
<a href="{% url 'dcim:sitegroup_list' %}">Site Groups</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li{% if not perms.dcim.view_location %} class="disabled"{% endif %}>
|
||||||
|
{% if perms.dcim.add_location %}
|
||||||
|
<div class="buttons pull-right">
|
||||||
|
<a href="{% url 'dcim:location_add' %}" class="btn btn-xs btn-success" title="Add"><i class="mdi mdi-plus-thick"></i></a>
|
||||||
|
<a href="{% url 'dcim:location_import' %}" class="btn btn-xs btn-info" title="Import"><i class="mdi mdi-database-import-outline"></i></a>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
<a href="{% url 'dcim:location_list' %}">Locations</a>
|
||||||
|
</li>
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
<li class="dropdown-header">Racks</li>
|
<li class="dropdown-header">Racks</li>
|
||||||
<li{% if not perms.dcim.view_rack %} class="disabled"{% endif %}>
|
<li{% if not perms.dcim.view_rack %} class="disabled"{% endif %}>
|
||||||
@ -58,15 +67,6 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{% url 'dcim:rack_list' %}">Racks</a>
|
<a href="{% url 'dcim:rack_list' %}">Racks</a>
|
||||||
</li>
|
</li>
|
||||||
<li{% if not perms.dcim.view_location %} class="disabled"{% endif %}>
|
|
||||||
{% if perms.dcim.add_location %}
|
|
||||||
<div class="buttons pull-right">
|
|
||||||
<a href="{% url 'dcim:location_add' %}" class="btn btn-xs btn-success" title="Add"><i class="mdi mdi-plus-thick"></i></a>
|
|
||||||
<a href="{% url 'dcim:location_import' %}" class="btn btn-xs btn-info" title="Import"><i class="mdi mdi-database-import-outline"></i></a>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
<a href="{% url 'dcim:location_list' %}">Locations</a>
|
|
||||||
</li>
|
|
||||||
<li{% if not perms.dcim.view_rackrole %} class="disabled"{% endif %}>
|
<li{% if not perms.dcim.view_rackrole %} class="disabled"{% endif %}>
|
||||||
{% if perms.dcim.add_rackrole %}
|
{% if perms.dcim.add_rackrole %}
|
||||||
<div class="buttons pull-right">
|
<div class="buttons pull-right">
|
||||||
|
Loading…
Reference in New Issue
Block a user