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

80 lines
3.6 KiB
HTML
Raw Normal View History

{% load static from staticfiles %}
{% load helpers %}
2016-03-01 11:23:03 -05:00
<!DOCTYPE html>
<html lang="en">
<head>
2017-07-14 10:01:59 -04:00
<title>{% block title %}Home{% endblock %} - NetBox</title>
2017-04-03 16:15:06 -04:00
<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 }}">
2016-08-09 14:57:14 -04:00
<link rel="icon" type="image/png" href="{% static 'img/netbox.ico' %}" />
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>&times;</span>
2017-04-10 10:55:05 -04:00
</button>
{{ message }}
</div>
{% endfor %}
{% 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">
<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> &middot;
<i class="fa fa-fw fa-cloud text-primary"></i> <a href="{% url 'api_docs' %}">API</a> &middot;
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> &middot;
<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>
2017-07-14 10:17:09 -04:00
<script src="{% static 'js/jquery-3.2.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>
<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>