2021-05-17 16:27:27 -04:00
|
|
|
{# Base template for (almost) all NetBox pages #}
|
|
|
|
{% load static %}
|
|
|
|
{% load static %}
|
|
|
|
{% load helpers %}
|
2016-03-01 11:23:03 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2021-03-13 02:19:42 -07:00
|
|
|
<head>
|
2021-05-17 16:27:27 -04:00
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta
|
|
|
|
name="viewport"
|
|
|
|
content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"
|
|
|
|
/>
|
|
|
|
|
|
|
|
{# Page title #}
|
2021-05-07 12:05:56 -07:00
|
|
|
<title>{% block title %}Home{% endblock %} | NetBox</title>
|
2021-05-17 16:27:27 -04:00
|
|
|
|
|
|
|
{# Static resources #}
|
2021-03-13 02:19:42 -07:00
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
2021-05-07 16:12:27 -07:00
|
|
|
href="{% static 'netbox-external.css'%}"
|
|
|
|
onerror="window.location='{% url 'media_failure' %}?filename=netbox-external.css'"
|
|
|
|
/>
|
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
|
|
|
href="{% static 'netbox-light.css'%}"
|
|
|
|
onerror="window.location='{% url 'media_failure' %}?filename=netbox-light.css'"
|
|
|
|
/>
|
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
|
|
|
href="{% static 'netbox-dark.css'%}"
|
|
|
|
onerror="window.location='{% url 'media_failure' %}?filename=netbox-dark.css'"
|
2021-03-13 02:19:42 -07:00
|
|
|
/>
|
|
|
|
<link rel="icon" type="image/png" href="{% static 'netbox.ico' %}" />
|
2021-05-17 16:27:27 -04:00
|
|
|
|
|
|
|
{# Javascript #}
|
2021-03-13 02:19:42 -07:00
|
|
|
<script
|
2021-04-20 01:18:24 -07:00
|
|
|
type="text/javascript"
|
2021-03-13 02:19:42 -07:00
|
|
|
src="{% static 'netbox.js' %}"
|
2021-04-15 16:52:30 -07:00
|
|
|
onerror="window.location='{% url 'media_failure' %}?filename=netbox.js'">
|
|
|
|
</script>
|
2021-05-17 16:27:27 -04:00
|
|
|
|
|
|
|
{# Additional <head> content #}
|
2021-04-20 01:18:24 -07:00
|
|
|
{% block head %}{% endblock %}
|
|
|
|
</head>
|
2021-04-25 20:11:46 -07:00
|
|
|
|
2021-05-17 16:27:27 -04:00
|
|
|
<body
|
|
|
|
{% if preferences|get_key:'ui.colormode' == 'dark'%} data-netbox-color-mode="dark"
|
|
|
|
{% else %} data-netbox-color-mode="light"
|
|
|
|
{% endif %}
|
|
|
|
>
|
|
|
|
|
|
|
|
{# Page layout #}
|
2021-04-20 01:18:24 -07:00
|
|
|
{% block layout %}{% endblock %}
|
2021-05-17 16:27:27 -04:00
|
|
|
|
|
|
|
{# Additional Javascript #}
|
2021-03-13 02:19:42 -07:00
|
|
|
{% block javascript %}{% endblock %}
|
2021-05-17 16:27:27 -04:00
|
|
|
|
|
|
|
{# User messages #}
|
|
|
|
{% include 'inc/messages.html' %}
|
|
|
|
|
|
|
|
{# Data container #}
|
2021-04-20 01:18:24 -07:00
|
|
|
<div id="netbox-data" style="display: none!important; visibility: hidden!important">
|
2021-05-17 16:27:27 -04:00
|
|
|
{% block data %}{% endblock %}
|
2021-04-20 01:18:24 -07:00
|
|
|
</div>
|
2021-05-17 16:27:27 -04:00
|
|
|
|
2021-03-13 02:19:42 -07:00
|
|
|
</body>
|
2016-03-01 11:23:03 -05:00
|
|
|
</html>
|