mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
38d2333165
* Add meta tag for charset. * Add meta tag for charset in 500.html and convert some tabs to spaces for consistency.
81 lines
3.6 KiB
HTML
81 lines
3.6 KiB
HTML
{% load static from staticfiles %}
|
|
{% load helpers %}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>{% block title %}Home{% endblock %} - NetBox</title>
|
|
<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' %}">
|
|
<link rel="stylesheet" href="{% static 'css/base.css' %}?v{{ settings.VERSION }}">
|
|
<link rel="icon" type="image/png" href="{% static 'img/netbox.ico' %}" />
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
|
|
</head>
|
|
<body>
|
|
{% include 'inc/nav_menu.html' %}
|
|
<div class="container wrapper">
|
|
{% if settings.BANNER_TOP %}
|
|
<div class="alert alert-info text-center" role="alert">
|
|
{{ settings.BANNER_TOP|safe }}
|
|
</div>
|
|
{% endif %}
|
|
{% if settings.MAINTENANCE_MODE %}
|
|
<div class="alert alert-warning text-center" role="alert">
|
|
<h4><i class="fa fa-exclamation-triangle"></i> Maintenance Mode</h4>
|
|
<p>NetBox is currently in maintenance mode. Functionality may be limited.</p>
|
|
</div>
|
|
{% endif %}
|
|
{% 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">
|
|
<span>×</span>
|
|
</button>
|
|
{{ message }}
|
|
</div>
|
|
{% endfor %}
|
|
{% block content %}{% endblock %}
|
|
<div class="push"></div>
|
|
{% if settings.BANNER_BOTTOM %}
|
|
<div class="alert alert-info text-center banner-bottom" role="alert">
|
|
{{ settings.BANNER_BOTTOM|safe }}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
<footer class="footer">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-xs-4">
|
|
<p class="text-muted">{{ settings.HOSTNAME }} (v{{ settings.VERSION }})</p>
|
|
</div>
|
|
<div class="col-xs-4 text-center">
|
|
<p class="text-muted">{% now 'Y-m-d H:i:s T' %}</p>
|
|
</div>
|
|
<div class="col-xs-4 text-right">
|
|
<p class="text-muted">
|
|
<i class="fa fa-fw fa-book text-primary"></i> <a href="http://netbox.readthedocs.io/" target="_blank">Docs</a> ·
|
|
<i class="fa fa-fw fa-cloud text-primary"></i> <a href="{% url 'api_docs' %}">API</a> ·
|
|
<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>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
<script src="{% static 'js/jquery-3.2.1.min.js' %}"></script>
|
|
<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>
|
|
<script src="{% static 'js/forms.js' %}?v{{ settings.VERSION }}"></script>
|
|
<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>
|
|
{% block javascript %}{% endblock %}
|
|
</body>
|
|
</html>
|