1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

68 lines
1.8 KiB
HTML
Raw Normal View History

{# 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">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"
/>
{# Page title #}
<title>{% block title %}Home{% endblock %} | NetBox</title>
{# Static resources #}
<link
rel="stylesheet"
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'"
/>
<link rel="icon" type="image/png" href="{% static 'netbox.ico' %}" />
{# Javascript #}
<script
2021-04-20 01:18:24 -07:00
type="text/javascript"
src="{% static 'netbox.js' %}"
2021-04-15 16:52:30 -07:00
onerror="window.location='{% url 'media_failure' %}?filename=netbox.js'">
</script>
{# Additional <head> content #}
2021-04-20 01:18:24 -07:00
{% block head %}{% endblock %}
</head>
2021-04-25 20:11:46 -07: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 %}
{# Additional Javascript #}
{% block javascript %}{% endblock %}
{# 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">
{% block data %}{% endblock %}
2021-04-20 01:18:24 -07:00
</div>
</body>
2016-03-01 11:23:03 -05:00
</html>