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-10-12 12:39:28 -05:00
|
|
|
<title>{% block title %}Home{% endblock %} - NetBox</title>
|
|
|
|
<link rel="stylesheet" href="{% static 'bootstrap-3.3.7-dist/css/bootstrap.min.css' %}">
|
2017-04-03 16:15:06 -04:00
|
|
|
<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-10-12 12:39:28 -05: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' %}" />
|
2017-10-12 12:39:28 -05:00
|
|
|
<meta charset="UTF-8">
|
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>
|
2017-09-29 14:27:42 -04:00
|
|
|
{% include 'inc/nav_menu.html' %}
|
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 %}
|
2018-06-14 13:14:35 -04:00
|
|
|
{% block header %}{% endblock %}
|
2017-04-10 10:55:05 -04:00
|
|
|
{% 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>
|
2018-02-06 15:11:29 -05:00
|
|
|
<script src="{% static 'js/jquery-3.3.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>
|