Zuschnitt als Regel statt als gespeichertes Bild

Die Sichtung merkt sich jetzt, WO der Vogel im Foto sitzt (vier Zahlen); die
Anzeige schneidet daraus bei jedem Aufruf. Eine geaenderte Regel wirkt damit
sofort auf den ganzen Bestand. Altbestand faellt auf das alte Bild zurueck.
This commit is contained in:
Artemis committed 2026-10-14 18:28:50 +00:00
1 parent f572c20080
commit d8d3efaa5d
14 files changed
+421 -19

No files matched your search

+2 -2
View File
@@ -70,8 +70,8 @@
{% if not card.found %}title="{% trans "Noch nicht gesichtet" %}"{% endif %}>
<span class="nr">{{ s.dex_nr }}</span>
<div class="thumb">
{% if card.found and card.entry.best_sighting and card.entry.best_sighting.crop %}
<img src="{{ card.entry.best_sighting.crop.url }}" alt="{{ s.name }}" loading="lazy">
{% if card.found and card.entry.best_sighting and card.entry.best_sighting.kachel_url %}
<img src="{{ card.entry.best_sighting.kachel_url }}" alt="{{ s.name }}" loading="lazy">
{% elif s.reference_image %}
<img src="{{ s.reference_image.url }}" alt="{{ s.name }}" loading="lazy">
{% endif %}
+8 -8
View File
@@ -52,8 +52,8 @@
<a class="held-bild" href="{% url 'species' letzte.effective_species.slug %}">
{% if letzte.image %}
<img src="{{ letzte.image.url }}" alt="{{ letzte.effective_species.name }}">
{% elif letzte.crop %}
<img src="{{ letzte.crop.url }}" alt="{{ letzte.effective_species.name }}">
{% elif letzte.kachel_url %}
<img src="{{ letzte.kachel_url }}" alt="{{ letzte.effective_species.name }}">
{% endif %}
<span class="frisch">{% trans "ZULETZT" %}</span>
<div class="schild">
@@ -78,8 +78,8 @@
style="{{ entry.species.typ_vars }}">
<span class="nr">{{ entry.species.dex_nr }}</span>
<div class="thumb">
{% if entry.best_sighting and entry.best_sighting.crop %}
<img src="{{ entry.best_sighting.crop.url }}" alt="{{ entry.species.name }}" loading="lazy">
{% if entry.best_sighting and entry.best_sighting.kachel_url %}
<img src="{{ entry.best_sighting.kachel_url }}" alt="{{ entry.species.name }}" loading="lazy">
{% elif entry.species.reference_image %}
<img src="{{ entry.species.reference_image.url }}" alt="{{ entry.species.name }}" loading="lazy">
{% endif %}
@@ -109,8 +109,8 @@
<div class="besuche">
{% for s in recent|slice:"1:5" %}
<a class="besuch" href="{% url 'species' s.effective_species.slug %}">
{% if s.crop %}
<img src="{{ s.crop.url }}" alt="" loading="lazy">
{% if s.kachel_url %}
<img src="{{ s.kachel_url }}" alt="" loading="lazy">
{% else %}<div class="leer"></div>{% endif %}
<div class="f">
{% if s.xp_awarded %}<span class="xp">+{{ s.xp_awarded }} XP</span>{% endif %}
@@ -138,8 +138,8 @@
style="{{ entry.species.typ_vars }}">
<span class="nr">{{ entry.species.dex_nr }}</span>
<div class="thumb">
{% if entry.best_sighting and entry.best_sighting.crop %}
<img src="{{ entry.best_sighting.crop.url }}" alt="{{ entry.species.name }}" loading="lazy">
{% if entry.best_sighting and entry.best_sighting.kachel_url %}
<img src="{{ entry.best_sighting.kachel_url }}" alt="{{ entry.species.name }}" loading="lazy">
{% elif entry.species.reference_image %}
<img src="{{ entry.species.reference_image.url }}" alt="{{ entry.species.name }}" loading="lazy">
{% endif %}
+2 -2
View File
@@ -56,9 +56,9 @@
<div class="rows">
{% for s in sightings %}
<div class="row">
{% if s.crop %}
{% if s.kachel_url %}
{# Klick zeigt das grosse Foto -- siehe base.html #}
<img class="shot" src="{{ s.crop.url }}" alt="" loading="lazy"
<img class="shot" src="{{ s.kachel_url }}" alt="" loading="lazy"
{% if s.image %}data-gross="{{ s.image.url }}"
data-beschriftung="{% if s.effective_species %}{{ s.effective_species.name }} · {% endif %}{{ s.started_at|date:"SHORT_DATETIME_FORMAT" }}{% if s.camera %} · {{ s.camera.name }}{% endif %}"
style="cursor:zoom-in"{% endif %}>
+2 -2
View File
@@ -115,8 +115,8 @@
<div class="rows">
{% for s in sightings %}
<div class="row">
{% if s.crop %}
<img class="shot" src="{{ s.crop.url }}" alt="" loading="lazy"
{% if s.kachel_url %}
<img class="shot" src="{{ s.kachel_url }}" alt="" loading="lazy"
{% if s.image %}data-gross="{{ s.image.url }}"
data-beschriftung="{{ species.name }} · {{ s.started_at|date:"SHORT_DATETIME_FORMAT" }}{% if s.camera %} · {{ s.camera.name }}{% endif %}"
style="cursor:zoom-in"{% endif %}>
+1 -1
View File
@@ -20,7 +20,7 @@
<div class="wrap">
<div class="widget">
{% if latest %}
{% if latest.crop %}<img src="{{ latest.crop.url }}" alt="{{ latest.effective_species.name }}">{% endif %}
{% if latest.kachel_url %}<img src="{{ latest.kachel_url }}" alt="{{ latest.effective_species.name }}">{% endif %}
<div style="min-width:0">
<div class="sub">{% trans "Zuletzt gesehen" %}</div>
<div style="font-weight:700; font-size:18px; margin:2px 0 4px">{{ latest.effective_species.name }}</div>