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>
|
2024-12-20 07:55:52 +00:00
|
|
|
<script src="{% static "js/jumpserver.js" %}?v=10"></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 {
|
2025-02-12 06:37:23 +00:00
|
|
|
color: #428bca;
|
2024-03-12 06:36:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.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();
|
|
|
|
}
|
2025-02-12 06:37:23 +00:00
|
|
|
$.fn.select2.defaults.set('language', getUserLang());
|
|
|
|
const md = window.markdownit({
|
|
|
|
html: true,
|
|
|
|
linkify: true,
|
|
|
|
typographer: true,
|
|
|
|
breaks: true
|
|
|
|
});
|
|
|
|
const markdownContent = `{{ INTERFACE.footer_content|escapejs }}`;
|
|
|
|
const markdownRef = document.getElementById('markdown-output');
|
|
|
|
|
|
|
|
if (markdownRef && markdownContent) {
|
|
|
|
const renderedContent = md.render(markdownContent.trim());
|
|
|
|
markdownRef.innerHTML = renderedContent;
|
|
|
|
markdownRef.querySelectorAll('a').forEach(link => {
|
|
|
|
link.setAttribute('target', '_blank');
|
|
|
|
link.setAttribute('rel', 'noopener noreferrer');
|
|
|
|
});
|
2024-04-18 13:31:15 +00:00
|
|
|
}
|
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
|
|
|
|
|
|
|
|