mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-25 10:44:30 +01:00
2df56d2de2
The templates were html escaping the generated js code for the autofill and the role management. This was breaking these features. It's okay to not escape these as they are coming from a trusted source (configuration file). Also make the templates python3 compatible (not need to import Set in python 3)
76 lines
3.2 KiB
Cheetah
76 lines
3.2 KiB
Cheetah
## -*- coding: utf-8 -*-
|
||
<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<title>LdapCherry</title>
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<meta name="description" content="directory manager">
|
||
<meta name="author" content="kakwa">
|
||
|
||
<!--link rel="stylesheet/less" href="/static/less/bootstrap.less" type="text/css" /-->
|
||
<!--link rel="stylesheet/less" href="/static/less/responsive.less" type="text/css" /-->
|
||
<!--script src="/static/js/less-1.3.3.min.js"></script-->
|
||
<!--append ‘#!watch’ to the browser URL, then refresh the page. -->
|
||
|
||
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
|
||
<link href="/static/css/custom.css" rel="stylesheet">
|
||
<link href="/static/css/style.css" rel="stylesheet">
|
||
<link href="/static/css/bootstrap-switch.css" rel="stylesheet">
|
||
<link href="/static/css/tablesorter-bootstrap.css" rel="stylesheet">
|
||
|
||
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
|
||
<!--[if lt IE 9]>
|
||
<script src="/static/js/html5shiv.js"></script>
|
||
<![endif]-->
|
||
|
||
<!-- Fav and touch icons -->
|
||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/static/img/apple-touch-icon-144-precomposed.png">
|
||
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/static/img/apple-touch-icon-114-precomposed.png">
|
||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/static/img/apple-touch-icon-72-precomposed.png">
|
||
<link rel="apple-touch-icon-precomposed" href="/static/img/apple-touch-icon-57-precomposed.png">
|
||
<link rel="icon" type="image/png" href="/static/img/favicon.png">
|
||
|
||
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
|
||
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
|
||
<script type="text/javascript" src="/static/js/scripts.js"></script>
|
||
<script type="text/javascript" src="/static/js/validator.js"></script>
|
||
<script type="text/javascript" src="/static/js/bootstrap-notify.js"></script>
|
||
<script type="text/javascript" src="/static/js/jquery.tablesorter.min.js"></script>
|
||
<script type="text/javascript" src="/static/js/bootstrap-switch.js"></script>
|
||
<script type="text/javascript" src="/static/js/jquery.popconfirm.js"></script>
|
||
<script type="text/javascript" src="/static/js/removediacritic.js"></script>
|
||
<script type="text/javascript" src="/static/js/lc-filler.js"></script>
|
||
<script type="text/javascript" src="/static/js/sha1.js"></script>
|
||
% if custom_js:
|
||
% for js in custom_js:
|
||
<script type="text/javascript" src="/custom/${js}"></script>
|
||
% endfor
|
||
%endif
|
||
|
||
<script>
|
||
$(function(){
|
||
$("#RecordTable").tablesorter({ sortList: [[0,0]] });
|
||
});
|
||
</script>
|
||
|
||
</head>
|
||
<body>
|
||
% if notifications:
|
||
% for notif in notifications:
|
||
<script type="text/javascript">$.notify('${notif | n}')</script>
|
||
% endfor
|
||
% endif
|
||
<div class="container">
|
||
<%block name="navbar"/>
|
||
<%block name="core" />
|
||
</div>
|
||
<div id="footer">
|
||
<div class="container">
|
||
<p class="muted credit"><a href="http://ldapcherry.readthedocs.org" target="_blank">LdapCherry</a> • © 2016 • Pierre-François Carpentier • Released under the MIT License</p>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
<script type="text/javascript" src="/static/js/alignforms.js"></script>
|
||
</html>
|