2016-09-18 06:28:34 +00:00
|
|
|
|
{% load static i18n %}
|
2016-08-09 06:42:21 +00:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
<meta name="renderer" content="webkit">
|
2019-03-27 04:20:43 +00:00
|
|
|
|
<title>{{ JMS_TITLE }}</title>
|
|
|
|
|
<link rel="shortcut icon" href="{{ FAVICON_URL }}" type="image/x-icon">
|
2016-08-09 06:42:21 +00:00
|
|
|
|
{% include '_head_css_js.html' %}
|
2016-09-30 10:25:50 +00:00
|
|
|
|
<link href="{% static 'css/jumpserver.css' %}" rel="stylesheet">
|
2016-08-09 06:42:21 +00:00
|
|
|
|
{% block custom_head_css_js %} {% endblock %}
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div id="wrapper">
|
|
|
|
|
{% include '_left_side_bar.html' %}
|
|
|
|
|
<div id="page-wrapper" class="gray-bg">
|
|
|
|
|
{% include '_header_bar.html' %}
|
2019-11-14 06:53:57 +00:00
|
|
|
|
<div class="alert alert-info help-message alert-dismissable page-message" style="display: none">
|
|
|
|
|
<button aria-hidden="true" data-dismiss="alert" class="close hide-btn" type="button">×</button>
|
|
|
|
|
{% block help_message %}
|
|
|
|
|
{% endblock %}
|
|
|
|
|
</div>
|
2018-02-26 08:57:34 +00:00
|
|
|
|
{% include '_message.html' %}
|
2016-08-09 06:42:21 +00:00
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
|
{% include '_footer.html' %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
{% include '_foot_js.html' %}
|
2016-08-17 16:47:34 +00:00
|
|
|
|
{% block custom_foot_js %} {% endblock %}
|
2019-11-14 06:53:57 +00:00
|
|
|
|
<script>
|
|
|
|
|
function getMessagePathKey() {
|
|
|
|
|
var path = window.location.pathname;
|
|
|
|
|
var key = 'message_' + btoa(path);
|
|
|
|
|
return key
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
var pathKey = getMessagePathKey();
|
|
|
|
|
var hidden = window.localStorage.getItem(pathKey);
|
|
|
|
|
var hasMessage = $('.page-message').text().trim().length > 5;
|
|
|
|
|
if (!hidden && hasMessage) {
|
|
|
|
|
$(".help-message").show();
|
|
|
|
|
}
|
|
|
|
|
}).on('click', '.hide-btn', function () {
|
|
|
|
|
var pathKey = getMessagePathKey();
|
|
|
|
|
window.localStorage.setItem(pathKey, '1')
|
|
|
|
|
})
|
|
|
|
|
</script>
|
2016-09-18 06:28:34 +00:00
|
|
|
|
</html>
|