2016-06-21 13:26:19 -04:00
|
|
|
{% load static from staticfiles %}
|
2016-06-21 14:25:49 -04:00
|
|
|
{% load helpers %}
|
2016-03-01 11:23:03 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2017-07-14 10:01:59 -04:00
|
|
|
<title>{% block title %}Home{% endblock %} - NetBox</title>
|
2017-04-03 16:15:06 -04:00
|
|
|
<link rel="stylesheet" href="{% static 'bootstrap-3.3.7-dist/css/bootstrap.min.css' %}">
|
|
|
|
<link rel="stylesheet" href="{% static 'font-awesome-4.7.0/css/font-awesome.min.css' %}">
|
|
|
|
<link rel="stylesheet" href="{% static 'jquery-ui-1.12.1/jquery-ui.css' %}">
|
2017-03-30 15:40:00 -04:00
|
|
|
<link rel="stylesheet" href="{% static 'css/base.css' %}?v{{ settings.VERSION }}">
|
2016-08-09 14:57:14 -04:00
|
|
|
<link rel="icon" type="image/png" href="{% static 'img/netbox.ico' %}" />
|
2016-09-26 23:43:05 -04:00
|
|
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
|
2016-03-01 11:23:03 -05:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<nav class="navbar navbar-default navbar-fixed-top">
|
|
|
|
<div class="container">
|
|
|
|
<div class="navbar-header">
|
2016-06-29 22:51:10 -04:00
|
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
2016-09-29 16:32:16 -04:00
|
|
|
<a class="navbar-brand" href="{% url 'home' %}">
|
2016-08-09 14:57:14 -04:00
|
|
|
<img src="{% static 'img/netbox_logo.png' %}" />
|
|
|
|
</a>
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
|
|
|
<div id="navbar" class="navbar-collapse collapse">
|
2016-06-30 16:02:18 -04:00
|
|
|
{% if request.user.is_authenticated or not settings.LOGIN_REQUIRED %}
|
2016-03-01 11:23:03 -05:00
|
|
|
<ul class="nav navbar-nav">
|
2017-04-04 11:55:16 -04:00
|
|
|
<li class="dropdown{% if request.path|contains:'/dcim/sites/,/dcim/regions/,/tenancy/' %} active{% endif %}">
|
2016-07-26 14:58:37 -04:00
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Organization <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu">
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'dcim:site_list' %}"><strong>Sites</strong></a></li>
|
2016-07-26 14:58:37 -04:00
|
|
|
{% if perms.dcim.add_site %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'dcim:site_add' %}"><i class="fa fa-plus"></i> Add a Site</a></li>
|
|
|
|
<li class="subnav"><a href="{% url 'dcim:site_import' %}"><i class="fa fa-download"></i> Import Sites</a></li>
|
2016-07-26 14:58:37 -04:00
|
|
|
{% endif %}
|
|
|
|
<li class="divider"></li>
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'dcim:region_list' %}"><strong>Regions</strong></a></li>
|
2017-02-28 12:11:43 -05:00
|
|
|
{% if perms.dcim.add_region %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'dcim:region_add' %}"><i class="fa fa-plus"></i> Add a Region</a></li>
|
2017-02-28 12:11:43 -05:00
|
|
|
{% endif %}
|
|
|
|
<li class="divider"></li>
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'tenancy:tenant_list' %}"><strong>Tenants</strong></a></li>
|
2016-07-26 14:58:37 -04:00
|
|
|
{% if perms.tenancy.add_tenant %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'tenancy:tenant_add' %}"><i class="fa fa-plus"></i> Add a Tenant</a></li>
|
|
|
|
<li class="subnav"><a href="{% url 'tenancy:tenant_import' %}"><i class="fa fa-download"></i> Import Tenants</a></li>
|
2016-07-26 14:58:37 -04:00
|
|
|
{% endif %}
|
|
|
|
<li class="divider"></li>
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'tenancy:tenantgroup_list' %}"><strong>Tenant Groups</strong></a></li>
|
2016-07-26 14:58:37 -04:00
|
|
|
{% if perms.tenancy.add_tenantgroup %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'tenancy:tenantgroup_add' %}"><i class="fa fa-plus"></i> Add a Tenant Group</a></li>
|
2016-07-26 14:58:37 -04:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
2016-03-01 11:23:03 -05:00
|
|
|
</li>
|
2017-04-04 11:55:16 -04:00
|
|
|
<li class="dropdown{% if request.path|contains:'/dcim/rack' %} active{% endif %}">
|
2016-03-01 11:23:03 -05:00
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Racks <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu">
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'dcim:rack_list' %}"><strong>Racks</strong></a></li>
|
2016-03-30 12:26:37 -04:00
|
|
|
{% if perms.dcim.add_rack %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'dcim:rack_add' %}"><i class="fa fa-plus"></i> Add a Rack</a></li>
|
|
|
|
<li class="subnav"><a href="{% url 'dcim:rack_import' %}"><i class="fa fa-download"></i> Import Racks</a></li>
|
2016-03-30 12:26:37 -04:00
|
|
|
{% endif %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'dcim:rack_elevation_list' %}"><strong>Rack Elevations</strong></a></li>
|
2016-05-17 15:04:16 -04:00
|
|
|
<li class="divider"></li>
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'dcim:rackgroup_list' %}"><strong>Rack Groups</strong></a></li>
|
2016-03-30 12:26:37 -04:00
|
|
|
{% if perms.dcim.add_rackgroup %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'dcim:rackgroup_add' %}"><i class="fa fa-plus"></i> Add a Rack Group</a></li>
|
2016-03-30 12:26:37 -04:00
|
|
|
{% endif %}
|
2016-08-10 11:52:27 -04:00
|
|
|
<li class="divider"></li>
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'dcim:rackrole_list' %}"><strong>Rack Roles</strong></a></li>
|
2016-08-10 11:52:27 -04:00
|
|
|
{% if perms.dcim.add_rackrole %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'dcim:rackrole_add' %}"><i class="fa fa-plus"></i> Add a Rack Role</a></li>
|
2016-08-10 11:52:27 -04:00
|
|
|
{% endif %}
|
2017-04-06 16:26:48 -04:00
|
|
|
<li class="divider"></li>
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'dcim:rackreservation_list' %}"><strong>Rack Reservations</strong></a></li>
|
2016-03-01 11:23:03 -05:00
|
|
|
</ul>
|
|
|
|
</li>
|
2017-04-04 11:55:16 -04:00
|
|
|
<li class="dropdown{% if request.path|contains:'/dcim/device,/dcim/manufacturers/,/dcim/platforms/' %} active{% endif %}">
|
2016-03-30 12:26:37 -04:00
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Devices <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu">
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'dcim:device_list' %}"><strong>Devices</strong></a></li>
|
2016-03-30 12:26:37 -04:00
|
|
|
{% if perms.dcim.add_device %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'dcim:device_add' %}"><i class="fa fa-plus"></i> Add a Device</a></li>
|
|
|
|
<li class="subnav"><a href="{% url 'dcim:device_import' %}"><i class="fa fa-download"></i> Import Devices</a></li>
|
2016-03-30 12:26:37 -04:00
|
|
|
{% endif %}
|
|
|
|
{% if perms.ipam.add_device or perms.ipam.add_devicetype %}
|
2016-03-01 11:23:03 -05:00
|
|
|
<li class="divider"></li>
|
2016-03-30 12:26:37 -04:00
|
|
|
{% endif %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'dcim:devicetype_list' %}"><strong>Device Types</strong></a></li>
|
2016-05-12 14:50:32 -04:00
|
|
|
{% if perms.dcim.add_devicetype %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'dcim:devicetype_add' %}"><i class="fa fa-plus"></i> Add a Device Type</a></li>
|
2016-03-30 12:26:37 -04:00
|
|
|
{% endif %}
|
2016-05-17 15:04:16 -04:00
|
|
|
<li class="divider"></li>
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'dcim:devicerole_list' %}"><strong>Device Roles</strong></a></li>
|
2016-05-12 14:50:32 -04:00
|
|
|
{% if perms.dcim.add_devicerole %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'dcim:devicerole_add' %}"><i class="fa fa-plus"></i> Add a Device Role</a></li>
|
2016-05-12 14:50:32 -04:00
|
|
|
{% endif %}
|
2016-05-17 15:04:16 -04:00
|
|
|
{% if perms.dcim.add_devicerole or perms.dcim.add_manufacturer %}
|
|
|
|
<li class="divider"></li>
|
|
|
|
{% endif %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'dcim:manufacturer_list' %}"><strong>Manufacturers</strong></a></li>
|
2016-05-13 15:22:31 -04:00
|
|
|
{% if perms.dcim.add_manufacturer %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'dcim:manufacturer_add' %}"><i class="fa fa-plus"></i> Add a Manufacturer</a></li>
|
2016-05-13 15:22:31 -04:00
|
|
|
{% endif %}
|
2016-05-17 15:04:16 -04:00
|
|
|
{% if perms.dcim.add_manufacturer or perms.dcim.add_platform %}
|
|
|
|
<li class="divider"></li>
|
|
|
|
{% endif %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'dcim:platform_list' %}"><strong>Platforms</strong></a></li>
|
2016-05-16 11:54:17 -04:00
|
|
|
{% if perms.dcim.add_platform %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'dcim:platform_add' %}"><i class="fa fa-plus"></i> Add a Platform</a></li>
|
2016-05-16 11:54:17 -04:00
|
|
|
{% endif %}
|
2016-05-16 10:58:30 -04:00
|
|
|
</ul>
|
|
|
|
</li>
|
2017-04-04 11:55:16 -04:00
|
|
|
<li class="dropdown{% if request.path|contains:'/dcim/console-connections/,/dcim/power-connections/,/dcim/interface-connections/' %} active{% endif %}">
|
2016-05-16 10:58:30 -04:00
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Connections <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu">
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'dcim:console_connections_list' %}"><strong>Console Connections</strong></a></li>
|
2016-03-30 12:26:37 -04:00
|
|
|
{% if perms.dcim.change_consoleport %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'dcim:console_connections_import' %}"><i class="fa fa-download"></i> Import Console Connections</a></li>
|
2016-03-30 12:26:37 -04:00
|
|
|
{% endif %}
|
|
|
|
{% if perms.ipam.change_consoleport or perms.ipam.change_powerport %}
|
|
|
|
<li class="divider"></li>
|
|
|
|
{% endif %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'dcim:power_connections_list' %}"><strong>Power Connections</strong></a></li>
|
2016-03-30 12:26:37 -04:00
|
|
|
{% if perms.dcim.change_powerport %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'dcim:power_connections_import' %}"><i class="fa fa-download"></i> Import Power Connections</a></li>
|
2016-03-30 12:26:37 -04:00
|
|
|
{% endif %}
|
|
|
|
{% if perms.ipam.change_powerport or perms.ipam.add_interfaceconnection %}
|
|
|
|
<li class="divider"></li>
|
|
|
|
{% endif %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'dcim:interface_connections_list' %}"><strong>Interface Connections</strong></a></li>
|
2016-03-30 12:26:37 -04:00
|
|
|
{% if perms.dcim.add_interfaceconnection %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'dcim:interface_connections_import' %}"><i class="fa fa-download"></i> Import Interface Connections</a></li>
|
2016-03-30 12:26:37 -04:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
2016-03-01 11:23:03 -05:00
|
|
|
</li>
|
2017-04-04 11:55:16 -04:00
|
|
|
<li class="dropdown{% if request.path|contains:'/ipam/' and not request.path|contains:'/ipam/vlan' %} active{% endif %}">
|
2016-03-01 11:23:03 -05:00
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">IP Space <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu">
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'ipam:ipaddress_list' %}"><strong>IP Addresses</strong></a></li>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% if perms.ipam.add_ipaddress %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'ipam:ipaddress_add' %}"><i class="fa fa-plus"></i> Add an IP</a></li>
|
|
|
|
<li class="subnav"><a href="{% url 'ipam:ipaddress_import' %}"><i class="fa fa-download"></i> Import IPs</a></li>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% endif %}
|
|
|
|
{% if perms.ipam.add_ipaddress or perms.ipam.add_prefix %}
|
|
|
|
<li class="divider"></li>
|
|
|
|
{% endif %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'ipam:prefix_list' %}"><strong>Prefixes</strong></a></li>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% if perms.ipam.add_prefix %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'ipam:prefix_add' %}"><i class="fa fa-plus"></i> Add a Prefix</a></li>
|
|
|
|
<li class="subnav"><a href="{% url 'ipam:prefix_import' %}"><i class="fa fa-download"></i> Import Prefixes</a></li>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% endif %}
|
|
|
|
{% if perms.ipam.add_prefix or perms.ipam.add_aggregate %}
|
|
|
|
<li class="divider"></li>
|
|
|
|
{% endif %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'ipam:aggregate_list' %}"><strong>Aggregates</strong></a></li>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% if perms.ipam.add_aggregate %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'ipam:aggregate_add' %}"><i class="fa fa-plus"></i> Add an Aggregate</a></li>
|
|
|
|
<li class="subnav"><a href="{% url 'ipam:aggregate_import' %}"><i class="fa fa-download"></i> Import Aggregates</a></li>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% endif %}
|
|
|
|
{% if perms.ipam.add_aggregate or perms.ipam.add_vrf %}
|
|
|
|
<li class="divider"></li>
|
|
|
|
{% endif %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'ipam:vrf_list' %}"><strong>VRFs</strong></a></li>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% if perms.ipam.add_vrf %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'ipam:vrf_add' %}"><i class="fa fa-plus"></i> Add a VRF</a></li>
|
|
|
|
<li class="subnav"><a href="{% url 'ipam:vrf_import' %}"><i class="fa fa-download"></i> Import VRFs</a></li>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% endif %}
|
2016-05-16 13:04:45 -04:00
|
|
|
<li class="divider"></li>
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'ipam:rir_list' %}"><strong>RIRs</strong></a></li>
|
2016-05-16 13:04:45 -04:00
|
|
|
{% if perms.ipam.add_rir %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'ipam:rir_add' %}"><i class="fa fa-plus"></i> Add a RIR</a></li>
|
2016-05-16 13:04:45 -04:00
|
|
|
{% endif %}
|
2016-05-17 15:04:16 -04:00
|
|
|
{% if perms.ipam.add_rir or perms.ipam.add_role %}
|
|
|
|
<li class="divider"></li>
|
|
|
|
{% endif %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'ipam:role_list' %}"><strong>Prefix Roles</strong></a></li>
|
2016-05-17 15:04:16 -04:00
|
|
|
{% if perms.ipam.add_role %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'ipam:role_add' %}"><i class="fa fa-plus"></i> Add a Role</a></li>
|
2016-05-17 15:04:16 -04:00
|
|
|
{% endif %}
|
2016-03-01 11:23:03 -05:00
|
|
|
</ul>
|
|
|
|
</li>
|
2017-04-04 11:55:16 -04:00
|
|
|
<li class="dropdown{% if request.path|contains:'/ipam/vlan' %} active{% endif %}">
|
2016-07-15 13:26:54 -04:00
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">VLANs <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu">
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'ipam:vlan_list' %}"><strong>VLANs</strong></a></li>
|
2016-07-15 13:26:54 -04:00
|
|
|
{% if perms.ipam.add_vlan %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'ipam:vlan_add' %}"><i class="fa fa-plus"></i> Add a VLAN</a></li>
|
|
|
|
<li class="subnav"><a href="{% url 'ipam:vlan_import' %}"><i class="fa fa-download"></i> Import VLANs</a></li>
|
2016-07-15 13:26:54 -04:00
|
|
|
{% endif %}
|
|
|
|
<li class="divider"></li>
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'ipam:vlangroup_list' %}"><strong>VLAN Groups</strong></a></li>
|
2016-07-15 13:26:54 -04:00
|
|
|
{% if perms.ipam.add_vlangroup %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'ipam:vlangroup_add' %}"><i class="fa fa-plus"></i> Add a VLAN Group</a></li>
|
2016-07-15 13:26:54 -04:00
|
|
|
{% endif %}
|
2016-09-12 09:44:24 -04:00
|
|
|
<li class="divider"></li>
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'ipam:role_list' %}"><strong>VLAN Roles</strong></a></li>
|
2016-09-12 09:44:24 -04:00
|
|
|
{% if perms.ipam.add_role %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'ipam:role_add' %}"><i class="fa fa-plus"></i> Add a Role</a></li>
|
2016-09-12 09:44:24 -04:00
|
|
|
{% endif %}
|
2016-07-15 13:26:54 -04:00
|
|
|
</ul>
|
2016-03-01 11:23:03 -05:00
|
|
|
</li>
|
2017-04-04 11:55:16 -04:00
|
|
|
<li class="dropdown{% if request.path|contains:'/circuits/' %} active{% endif %}">
|
2016-03-01 11:23:03 -05:00
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Circuits <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu">
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'circuits:circuit_list' %}"><strong>Circuits</strong></a></li>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% if perms.circuits.add_circuit %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'circuits:circuit_add' %}"><i class="fa fa-plus"></i> Add a Circuit</a></li>
|
|
|
|
<li class="subnav"><a href="{% url 'circuits:circuit_import' %}"><i class="fa fa-download"></i> Import Circuits</a></li>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% endif %}
|
2016-05-17 15:04:16 -04:00
|
|
|
<li class="divider"></li>
|
2017-08-24 12:51:50 -04:00
|
|
|
<li><a href="{% url 'circuits:provider_list' %}"><strong>Providers</strong></a></li>
|
|
|
|
{% if perms.circuits.add_provider %}
|
|
|
|
<li class="subnav"><a href="{% url 'circuits:provider_add' %}"><i class="fa fa-plus"></i> Add a Provider</a></li>
|
|
|
|
<li class="subnav"><a href="{% url 'circuits:provider_import' %}"><i class="fa fa-download"></i> Import Providers</a></li>
|
|
|
|
{% endif %}
|
|
|
|
<li class="divider"></li>
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'circuits:circuittype_list' %}"><strong>Circuit Types</strong></a></li>
|
2016-05-13 12:44:03 -04:00
|
|
|
{% if perms.circuits.add_circuittype %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'circuits:circuittype_add' %}"><i class="fa fa-plus"></i> Add a Circuit Type</a></li>
|
2016-05-13 12:44:03 -04:00
|
|
|
{% endif %}
|
2016-03-01 11:23:03 -05:00
|
|
|
</ul>
|
|
|
|
</li>
|
2016-04-13 15:40:55 -04:00
|
|
|
{% if request.user.is_authenticated %}
|
2017-04-04 11:55:16 -04:00
|
|
|
<li class="dropdown{% if request.path|contains:'/secrets/' %} active{% endif %}">
|
2016-03-01 11:23:03 -05:00
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Secrets <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu">
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'secrets:secret_list' %}"><strong>Secrets</strong></a></li>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% if perms.secrets.add_secret %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'secrets:secret_import' %}"><i class="fa fa-download"></i> Import Secrets</a></li>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% endif %}
|
2016-05-16 12:07:12 -04:00
|
|
|
<li class="divider"></li>
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'secrets:secretrole_list' %}"><strong>Secret Roles</strong></a></li>
|
2016-05-16 12:07:12 -04:00
|
|
|
{% if perms.secrets.add_secretrole %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li class="subnav"><a href="{% url 'secrets:secretrole_add' %}"><i class="fa fa-plus"></i> Add a Secret Role</a></li>
|
2016-05-16 12:07:12 -04:00
|
|
|
{% endif %}
|
2016-03-01 11:23:03 -05:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
2016-06-30 16:02:18 -04:00
|
|
|
{% endif %}
|
2016-03-01 11:23:03 -05:00
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
{% if request.user.is_authenticated %}
|
2017-04-03 15:33:41 -04:00
|
|
|
<li class="dropdown">
|
2017-05-17 16:00:46 -04:00
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" title="{{ request.user }}" role="button" aria-haspopup="true" aria-expanded="false">
|
|
|
|
{{ request.user|truncatechars:"30" }} <span class="caret"></span>
|
2017-04-03 15:33:41 -04:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'user:profile' %}"><i class="fa fa-user"></i> Profile</a></li>
|
2017-04-03 15:33:41 -04:00
|
|
|
{% if request.user.is_staff %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'admin:index' %}"><i class="fa fa-cogs"></i> Admin</a></li>
|
2017-04-03 15:33:41 -04:00
|
|
|
{% endif %}
|
|
|
|
<li class="divider"></li>
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'logout' %}"><i class="fa fa-sign-out"></i> Log out</a></li>
|
2017-04-03 15:33:41 -04:00
|
|
|
</ul>
|
|
|
|
</li>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% else %}
|
2017-08-03 17:49:22 -04:00
|
|
|
<li><a href="{% url 'login' %}?next={{ request.path }}"><i class="fa fa-sign-in"></i> Log in</a></li>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
2017-05-17 16:00:46 -04:00
|
|
|
<form action="{% url 'search' %}" method="get" class="navbar-form navbar-right" id="navbar_search" role="search">
|
2017-04-27 13:27:16 -04:00
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" name="q" class="form-control" placeholder="Search">
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button type="submit" class="btn btn-primary">
|
2017-08-03 17:49:22 -04:00
|
|
|
<i class="fa fa-search"></i>
|
2017-04-27 13:27:16 -04:00
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</form>
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
2017-04-10 10:55:05 -04:00
|
|
|
<div class="container wrapper">
|
2016-06-28 11:12:36 -04:00
|
|
|
{% if settings.BANNER_TOP %}
|
|
|
|
<div class="alert alert-info text-center" role="alert">
|
2017-04-10 10:55:05 -04:00
|
|
|
{{ settings.BANNER_TOP|safe }}
|
2016-07-11 13:29:58 -04:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2016-03-01 11:23:03 -05:00
|
|
|
{% if settings.MAINTENANCE_MODE %}
|
|
|
|
<div class="alert alert-warning text-center" role="alert">
|
|
|
|
<h4><i class="fa fa-exclamation-triangle"></i> Maintenance Mode</h4>
|
2016-06-27 11:22:36 -04:00
|
|
|
<p>NetBox is currently in maintenance mode. Functionality may be limited.</p>
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2017-04-10 10:55:05 -04:00
|
|
|
{% for message in messages %}
|
|
|
|
<div class="alert alert-{{ message.tags }} alert-dismissable" role="alert">
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
2017-08-03 17:49:22 -04:00
|
|
|
<span>×</span>
|
2017-04-10 10:55:05 -04:00
|
|
|
</button>
|
|
|
|
{{ message }}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% block content %}{% endblock %}
|
2016-07-11 15:04:39 -04:00
|
|
|
<div class="push"></div>
|
2017-04-10 10:55:05 -04:00
|
|
|
{% if settings.BANNER_BOTTOM %}
|
|
|
|
<div class="alert alert-info text-center banner-bottom" role="alert">
|
2016-06-28 11:12:36 -04:00
|
|
|
{{ settings.BANNER_BOTTOM|safe }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2017-04-10 10:55:05 -04:00
|
|
|
</div>
|
|
|
|
<footer class="footer">
|
|
|
|
<div class="container">
|
2016-03-01 11:23:03 -05:00
|
|
|
<div class="row">
|
2016-07-08 20:45:27 -04:00
|
|
|
<div class="col-xs-4">
|
2016-06-29 14:05:01 -04:00
|
|
|
<p class="text-muted">{{ settings.HOSTNAME }} (v{{ settings.VERSION }})</p>
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
2016-07-08 20:45:27 -04:00
|
|
|
<div class="col-xs-4 text-center">
|
2016-06-22 12:04:13 -04:00
|
|
|
<p class="text-muted">{% now 'Y-m-d H:i:s T' %}</p>
|
|
|
|
</div>
|
2016-07-08 20:45:27 -04:00
|
|
|
<div class="col-xs-4 text-right">
|
2016-06-22 12:04:13 -04:00
|
|
|
<p class="text-muted">
|
2016-07-08 12:07:04 -04:00
|
|
|
<i class="fa fa-fw fa-book text-primary"></i> <a href="http://netbox.readthedocs.io/" target="_blank">Docs</a> ·
|
2017-04-06 09:40:09 -04:00
|
|
|
<i class="fa fa-fw fa-cloud text-primary"></i> <a href="{% url 'api_docs' %}">API</a> ·
|
2017-03-20 14:05:26 -04:00
|
|
|
<i class="fa fa-fw fa-code text-primary"></i> <a href="https://github.com/digitalocean/netbox">Code</a> ·
|
|
|
|
<i class="fa fa-fw fa-support text-primary"></i> <a href="https://github.com/digitalocean/netbox/wiki">Help</a>
|
2016-03-01 11:23:03 -05:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-04-10 10:55:05 -04:00
|
|
|
</div>
|
|
|
|
</footer>
|
2017-07-14 10:17:09 -04:00
|
|
|
<script src="{% static 'js/jquery-3.2.1.min.js' %}"></script>
|
2017-04-03 16:15:06 -04:00
|
|
|
<script src="{% static 'jquery-ui-1.12.1/jquery-ui.min.js' %}"></script>
|
|
|
|
<script src="{% static 'bootstrap-3.3.7-dist/js/bootstrap.min.js' %}"></script>
|
2017-03-30 15:40:00 -04:00
|
|
|
<script src="{% static 'js/forms.js' %}?v{{ settings.VERSION }}"></script>
|
2017-07-17 11:41:39 -04:00
|
|
|
<script type="text/javascript">
|
|
|
|
var netbox_api_path = "/{{ settings.BASE_PATH }}api/";
|
|
|
|
var loading = $(".loading");
|
|
|
|
$(document).ajaxStart(function() {
|
|
|
|
loading.show();
|
|
|
|
}).ajaxStop(function() {
|
|
|
|
loading.hide();
|
|
|
|
});
|
|
|
|
</script>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% block javascript %}{% endblock %}
|
|
|
|
</body>
|
|
|
|
</html>
|