feat: pwa

This commit is contained in:
2026-07-14 20:23:48 +02:00
parent 4040b4fdd9
commit 9a795dc3c9
10 changed files with 178 additions and 0 deletions
+15
View File
@@ -1,7 +1,22 @@
{% extends "admin/base.html" %}
{% load static %}
{% block title %}{% if subtitle %}{{ subtitle }} | {% endif %}{{ title }} | {{ site_title|default:_('Osiris') }}{% endblock %}
{% block extrahead %}
{{ block.super }}
<link rel="manifest" href="{% static 'manifest.webmanifest' %}">
<meta name="theme-color" content="#202a35">
<meta name="mobile-web-app-capable" content="yes">
<link rel="apple-touch-icon" href="{% static 'icons/icon-192.png' %}">
<link rel="icon" href="{% static 'icons/icon-192.png' %}">
<script>
if ("serviceWorker" in navigator) {
window.addEventListener("load", () => navigator.serviceWorker.register("/sw.js"));
}
</script>
{% endblock %}
{% block branding %}
<div id="site-name"><a href="{% url 'admin:index' %}">{{ site_header|default:_('Osiris') }}</a></div>
{% if user.is_anonymous %}