2016-09-14 07:19:27 +00:00
|
|
|
{% load i18n %}
|
2016-08-09 06:42:21 +00:00
|
|
|
{% load static %}
|
|
|
|
<!-- Mainly scripts -->
|
|
|
|
<script src="{% static "js/plugins/metisMenu/jquery.metisMenu.js" %}"></script>
|
|
|
|
|
|
|
|
<!-- Custom and plugin javascript -->
|
2016-09-06 13:03:51 +00:00
|
|
|
<script src="{% static "js/plugins/toastr/toastr.min.js" %}"></script>
|
2016-08-09 06:42:21 +00:00
|
|
|
<script src="{% static "js/inspinia.js" %}"></script>
|
2022-06-25 14:14:12 +00:00
|
|
|
<script src="{% static "js/jumpserver.js" %}?v=9"></script>
|
2019-12-05 07:09:25 +00:00
|
|
|
<script src="{% static 'js/plugins/select2/select2.full.min.js' %}"></script>
|
|
|
|
<script src="{% static 'js/plugins/select2/i18n/zh-CN.js' %}"></script>
|
2024-03-12 06:36:20 +00:00
|
|
|
<script src="{% static 'js/plugins/markdown-it.min.js' %}"></script>
|
|
|
|
|
|
|
|
{% if INTERFACE.footer_content %}
|
|
|
|
<style>
|
|
|
|
.markdown-footer a {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown-footer {
|
|
|
|
position: absolute;
|
2024-07-09 07:02:37 +00:00
|
|
|
bottom: 0;
|
2024-03-12 06:36:20 +00:00
|
|
|
left: 50%;
|
2024-07-09 07:02:37 +00:00
|
|
|
width: 285px;
|
2024-03-12 06:36:20 +00:00
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
top: 97%;
|
|
|
|
}
|
|
|
|
}
|
2024-07-09 07:02:37 +00:00
|
|
|
|
|
|
|
.markdown-footer p {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2024-03-12 06:36:20 +00:00
|
|
|
</style>
|
|
|
|
<div id="markdown-output" class="markdown-footer"></div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/markdown"> {{ INTERFACE.footer_content }} </script>
|
2016-08-09 06:42:21 +00:00
|
|
|
<script>
|
2023-11-23 08:58:58 +00:00
|
|
|
activeNav("{{ FORCE_SCRIPT_NAME }}");
|
|
|
|
$(document).ready(function () {
|
|
|
|
setAjaxCSRFToken();
|
|
|
|
$('textarea').attr('rows', 5);
|
|
|
|
if ($('.tooltip')[0]) {
|
|
|
|
$('.tooltip').tooltip();
|
|
|
|
}
|
|
|
|
$.fn.select2.defaults.set('language', getUserLang())
|
2024-03-12 06:36:20 +00:00
|
|
|
const md = window.markdownit();
|
|
|
|
const markdownContent = document.querySelector('script[type="text/markdown"]').textContent;
|
2024-04-18 13:31:15 +00:00
|
|
|
const markdownRef = document.getElementById('markdown-output')
|
|
|
|
if (markdownRef) {
|
|
|
|
markdownRef.innerHTML = md.render(markdownContent);
|
|
|
|
}
|
2023-11-23 08:58:58 +00:00
|
|
|
});
|
2016-09-06 08:40:44 +00:00
|
|
|
</script>
|
2023-11-23 08:58:58 +00:00
|
|
|
|
|
|
|
|
2024-03-12 06:36:20 +00:00
|
|
|
|
|
|
|
|