2016-09-01 15:09:58 +00:00
|
|
|
|
{% load static %}
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
|
|
|
|
<title>{{ title }}</title>
|
|
|
|
|
|
|
|
|
|
{% include '_head_css_js.html' %}
|
|
|
|
|
<link href="{% static "css/jumpserver.css" %}" rel="stylesheet">
|
|
|
|
|
<script src="{% static "js/jumpserver.js" %}"></script>
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body class="gray-bg">
|
|
|
|
|
<div class="passwordBox2 animated fadeInDown">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<div class="ibox-content">
|
|
|
|
|
<div>
|
|
|
|
|
<img src="{% static 'img/logo.png' %}" style="margin: auto" width="82" height="82">
|
|
|
|
|
<h2 style="display: inline">Jumpserver</h2>
|
|
|
|
|
</div>
|
|
|
|
|
{% if errors %}
|
|
|
|
|
<p>
|
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
|
{{ errors }}
|
|
|
|
|
</div>
|
|
|
|
|
</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if messages %}
|
|
|
|
|
<p>
|
2016-09-02 16:39:06 +00:00
|
|
|
|
<div class="alert alert-success" id="messages">
|
2017-03-31 03:25:25 +00:00
|
|
|
|
{{ messages|safe }}
|
2016-09-01 15:09:58 +00:00
|
|
|
|
</div>
|
|
|
|
|
</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-lg-3">
|
|
|
|
|
<a href="{{ redirect_url }}" class="btn btn-primary block full-width m-b">返回</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<hr/>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-6">
|
2018-02-28 03:23:04 +00:00
|
|
|
|
{% include '_copyright.html' %}
|
2016-09-01 15:09:58 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-6 text-right">
|
2018-01-23 04:40:22 +00:00
|
|
|
|
<small>2014-2018</small>
|
2016-09-01 15:09:58 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
2016-09-02 16:39:06 +00:00
|
|
|
|
<script>
|
2017-03-31 03:25:25 +00:00
|
|
|
|
var time = '{{ interval }}';
|
|
|
|
|
if (!time){
|
|
|
|
|
time = 5;
|
|
|
|
|
} else {
|
|
|
|
|
time = parseInt(time);
|
|
|
|
|
}
|
2016-09-02 16:39:06 +00:00
|
|
|
|
function redirect_page() {
|
|
|
|
|
if (time >= 0) {
|
2017-03-31 03:25:25 +00:00
|
|
|
|
var messages = '{{ messages|safe }}, <b>' + time +'</b> ...';
|
2016-09-02 16:39:06 +00:00
|
|
|
|
$('#messages').html(messages);
|
|
|
|
|
time--;
|
|
|
|
|
setTimeout(redirect_page, 1000);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
window.location.href = "{{ redirect_url }}";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{% if auto_redirect %}
|
2016-09-03 16:51:36 +00:00
|
|
|
|
window.onload = redirect_page;
|
2016-09-02 16:39:06 +00:00
|
|
|
|
{% endif %}
|
|
|
|
|
</script>
|
2016-09-01 15:09:58 +00:00
|
|
|
|
</html>
|