- SSRF-safe fetcher: public IPs only, connects to the checked address, redirects re-validated, size/time limits, honest user agent - schema.org/Recipe JSON-LD extraction (graphs, HowToSections, ISO durations, yields, keywords, images) without extra dependencies; AI fallback on plain page text when no structured recipe exists - Instagram: one login-free request to the public embed page; when Instagram withholds the caption, the import page explains how to paste the text or import a screenshot instead - Suggested source photo can be downloaded and attached on save - Text import works without AI (text becomes the description) - Installable PWA with manifest, icons and Android share target - Offline tests for SSRF rules, parsers, Instagram and import views Co-Authored-By: Claude Opus 5.5 <[email protected]>
51 lines
1.9 KiB
HTML
51 lines
1.9 KiB
HTML
{% load static %}<!doctype html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
<meta name="theme-color" content="#b4532a">
|
|
<meta name="robots" content="noindex, nofollow">
|
|
<title>{% block title %}Kochbuch{% endblock %} · Kochbuch</title>
|
|
<link rel="manifest" href="{% url 'core:manifest' %}">
|
|
<link rel="icon" type="image/png" href="{% static 'icons/favicon.png' %}">
|
|
<link rel="apple-touch-icon" href="{% static 'icons/apple-touch-icon.png' %}">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-title" content="Kochbuch">
|
|
<link rel="stylesheet" href="{% static 'css/app.css' %}">
|
|
<script src="{% static 'js/app.js' %}" defer></script>
|
|
</head>
|
|
<body>
|
|
<header class="topbar">
|
|
<a class="brand" href="{% url 'recipes:list' %}">Kochbuch</a>
|
|
{% if user.is_authenticated %}
|
|
<details class="menu">
|
|
<summary aria-label="Menü">☰</summary>
|
|
<nav>
|
|
<a href="{% url 'recipes:list' %}">Rezepte</a>
|
|
<a href="{% url 'recipes:list' %}?ansicht=favoriten">Favoriten</a>
|
|
<a href="{% url 'recipes:import' %}">Importieren</a>
|
|
<a href="{% url 'accounts:profile' %}">Mein Konto</a>
|
|
{% if user.is_admin %}
|
|
<a href="{% url 'accounts:admin_users' %}">Nutzer verwalten</a>
|
|
<a href="{% url 'accounts:admin_invitations' %}">Einladungen</a>
|
|
{% endif %}
|
|
<form method="post" action="{% url 'accounts:logout' %}">
|
|
{% csrf_token %}
|
|
<button type="submit" class="linklike">Abmelden</button>
|
|
</form>
|
|
</nav>
|
|
</details>
|
|
{% endif %}
|
|
</header>
|
|
|
|
<main class="container">
|
|
{% if messages %}
|
|
<ul class="messages">
|
|
{% for message in messages %}<li class="msg msg-{{ message.tags }}">{{ message }}</li>{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
</body>
|
|
</html>
|