|
|
@ -29,6 +29,7 @@ |
|
|
|
|
|
|
|
<body> |
|
|
|
<div class="page fadein"> |
|
|
|
|
|
|
|
{% if not request|has_iframe %} |
|
|
|
{% block navigation %} |
|
|
|
<nav class="navbar navbar-inverse navbar-static-top"> |
|
|
@ -108,6 +109,9 @@ |
|
|
|
</header> |
|
|
|
{% endblock main_header %} |
|
|
|
{% else %} |
|
|
|
<div class="btn-cancel-iframe"> |
|
|
|
<a href="?iframe=0" target="_blank"><i class="fa fa-2x fa-arrows-alt"></i></a> |
|
|
|
</div> |
|
|
|
<header class="masthead"> |
|
|
|
<div class="container"> |
|
|
|
<div class="hidden-print"> |
|
|
@ -245,6 +249,25 @@ |
|
|
|
|
|
|
|
{% block extra_js %}{% endblock %} |
|
|
|
|
|
|
|
<script type="text/javascript" > |
|
|
|
|
|
|
|
|
|
|
|
function inIframe () { |
|
|
|
try { |
|
|
|
return window.self !== window.top; |
|
|
|
} catch (e) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
$(document).ready(function(){ |
|
|
|
let iframe_set_backend = {{ request|has_iframe|lower }} |
|
|
|
if (iframe_set_backend && !inIframe() ) { |
|
|
|
let href = location.href |
|
|
|
location.href = href + '?iframe=0' |
|
|
|
} |
|
|
|
}); |
|
|
|
</script> |
|
|
|
|
|
|
|
{% endblock foot_js %} |
|
|
|
</body> |
|
|
|
</html> |
|
|
|