ArchiveBox/archivebox/templates/core/base.html

83 lines
2.9 KiB
HTML
Raw Normal View History

{% load static tz admin_urls %}
2020-08-27 01:42:47 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>Archived Sites</title>
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1">
2020-08-27 01:42:47 +00:00
<link rel="stylesheet" href="{% static 'admin/css/base.css' %}">
<link rel="stylesheet" href="{% static 'admin.css' %}">
<link rel="stylesheet" href="{% static 'bootstrap.min.css' %}">
<script src="{% static 'jquery.min.js' %}"></script>
{% block extra_head %}
{% endblock %}
2020-08-27 01:42:47 +00:00
</head>
<body>
<div id="container">
<div id="header">
<div id="branding">
<h1 id="site-name">
2021-02-16 01:50:12 +00:00
<a href="{% url 'public-index' %}" class="header-archivebox">
<img src="{% static 'archive.png' %}" alt="Logo" style="height: 30px"/>
ArchiveBox
2020-08-27 01:42:47 +00:00
</a>
</h1>
</div>
{% include 'navigation.html' %}
2020-08-27 01:42:47 +00:00
</div>
<div id="content" class="flex">
{% block body %}
{% endblock %}
</div>
2021-01-29 04:15:05 +00:00
{% block footer %}
<footer>
<br />
<center>
<small>
Archive created using <a href="https://github.com/ArchiveBox/ArchiveBox" title="Github">ArchiveBox</a> version
<a href="https://github.com/ArchiveBox/ArchiveBox/releases/tag/v{{VERSION}}" title="Releases">v{{VERSION}}</a>.
2021-01-29 04:15:05 +00:00
<br/><br/>
{{FOOTER_INFO}}
</small>
</center>
<br />
</footer>
{% endblock %}
</div>
<script>
// hide images that fail to load
document.querySelector('body').addEventListener('error', function (e) {
e.target.style.opacity = 0;
}, true)
// setup timezone
{% get_current_timezone as TIME_ZONE %}
window.TIME_ZONE = '{{TIME_ZONE}}'
window.setCookie = function(name, value, days) {
let expires = ""
if (days) {
const date = new Date()
date.setTime(date.getTime() + (days*24*60*60*1000))
expires = "; expires=" + date.toUTCString()
}
document.cookie = name + "=" + (value || "") + expires + "; path=/"
}
function setTimeOffset() {
if (window.GMT_OFFSET) return
window.GMT_OFFSET = -(new Date).getTimezoneOffset()
window.setCookie('GMT_OFFSET', window.GMT_OFFSET, 365)
}
jQuery(document).ready(function () {
setTimeOffset();
});
</script>
2020-08-27 01:42:47 +00:00
</body>
</html>