2020-02-29 10:39:42 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% load i18n static %}
|
|
|
|
|
2020-02-29 10:57:19 +00:00
|
|
|
{% block extracss %}
|
|
|
|
<meta name="turbolinks-cache-control" content="no-preview">
|
|
|
|
{% endblock %}
|
2020-02-29 10:39:42 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
2020-02-29 10:57:19 +00:00
|
|
|
{% block extrajavascript %}
|
|
|
|
<script>
|
|
|
|
var reloadWithTurbolinks = (function () {
|
|
|
|
var scrollPosition
|
|
|
|
|
|
|
|
function reload () {
|
|
|
|
scrollPosition = [window.scrollX, window.scrollY]
|
|
|
|
Turbolinks.visit(window.location.toString(), { action: 'replace' })
|
|
|
|
}
|
|
|
|
|
|
|
|
document.addEventListener('turbolinks:load', function () {
|
|
|
|
if (scrollPosition) {
|
|
|
|
window.scrollTo.apply(window, scrollPosition)
|
|
|
|
scrollPosition = null
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
return reload
|
|
|
|
})()
|
|
|
|
|
|
|
|
setTimeout(function(){ reloadWithTurbolinks(); }, 2000);
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|