Files

72 lines
2.1 KiB
HTML
Raw Permalink Normal View History

2021-05-17 16:27:27 -04:00
{# Base template for (almost) all NetBox pages #}
{% load static %}
{% load helpers %}
{% load i18n %}
{% load django_htmx %}
2016-03-01 11:23:03 -05:00
<!DOCTYPE html>
<html
lang="en"
data-netbox-url-name="{{ request.resolver_match.url_name }}"
data-netbox-base-path="{{ settings.BASE_PATH }}"
>
<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, viewport-fit=cover" />
<meta name="htmx-config" content='{"scrollBehavior": "auto"}'>
2021-05-17 16:27:27 -04:00
{# Page title #}
<title>{% block title %}{% trans "Home" %}{% endblock %} | NetBox</title>
2021-05-17 16:27:27 -04:00
{# Initialize color mode #}
<script
type="text/javascript"
src="{% static 'setmode.js' %}?v={{ settings.VERSION }}"
onerror="window.location='{% url 'media_failure' %}?filename=setmode.js'">
</script>
<script type="text/javascript">
(function () {
initMode()
})();
2022-08-29 14:40:03 -07:00
window.CSRF_TOKEN = "{{ csrf_token }}";
</script>
2021-05-17 16:27:27 -04:00
{# Static resources #}
<link
rel="stylesheet"
href="{% static 'netbox-external.css'%}?v={{ settings.VERSION }}"
onerror="window.location='{% url 'media_failure' %}?filename=netbox-external.css'"
/>
<link
rel="stylesheet"
href="{% static 'netbox.css'%}?v={{ settings.VERSION }}"
onerror="window.location='{% url 'media_failure' %}?filename=netbox.css'"
/>
<link rel="icon" type="image/png" href="{% static 'netbox.ico' %}" />
<link rel="apple-touch-icon" type="image/png" href="{% static 'netbox_touch-icon-180.png' %}" />
2021-05-17 16:27:27 -04:00
{# Javascript #}
<script
2021-04-20 01:18:24 -07:00
type="text/javascript"
src="{% static 'netbox.js' %}?v={{ settings.VERSION }}"
2021-04-15 16:52:30 -07:00
onerror="window.location='{% url 'media_failure' %}?filename=netbox.js'">
</script>
{% django_htmx_script %}
2021-05-17 16:27:27 -04:00
{# Additional <head> content #}
2021-04-20 01:18:24 -07:00
{% block head %}{% endblock %}
</head>
<body>
2021-05-17 16:27:27 -04:00
{# Page layout #}
2021-04-20 01:18:24 -07:00
{% block layout %}{% endblock %}
2021-05-17 16:27:27 -04:00
{# Additional Javascript #}
{% block javascript %}{% endblock %}
2021-05-17 16:27:27 -04:00
{# User messages #}
{% include 'inc/messages.html' %}
</body>
2016-03-01 11:23:03 -05:00
</html>