chore: Orphan-Section + Image1-6.jpg entfernt — war nur Test/Debug
- Verwaiste-Bilder-Sektion aus build_index() entfernt - Image1.jpg–Image6.jpg vom Workspace gelöscht - CSS (orphan-box etc.) bleibt harmlos im Stylesheet
This commit is contained in:
@@ -197,28 +197,6 @@ def build_index(articles: list[dict]) -> str:
|
|||||||
# Read image map for badge display
|
# Read image map for badge display
|
||||||
img_map = get_image_map()
|
img_map = get_image_map()
|
||||||
|
|
||||||
# ── Orphaned images section ──
|
|
||||||
orphan_imgs = find_orphan_images()
|
|
||||||
orphan_section = ""
|
|
||||||
if orphan_imgs:
|
|
||||||
article_opts = "\\n".join(
|
|
||||||
f'<option value="{a["filename"]}">{a["title"][:80]}</option>'
|
|
||||||
for a in articles
|
|
||||||
)
|
|
||||||
orphan_rows = "\\n".join(
|
|
||||||
f'''<div class="orphan-row" data-img="{p}">
|
|
||||||
<span class="orphan-preview">🖼️ {os.path.basename(p)}</span>
|
|
||||||
<select class="orphan-select" onchange="assignOrphan(this, '{p}')">
|
|
||||||
<option value="">→ Artikel zuordnen…</option>
|
|
||||||
{article_opts}
|
|
||||||
</select>
|
|
||||||
</div>'''
|
|
||||||
for p in orphan_imgs[:20] # max 20 to keep page fast
|
|
||||||
)
|
|
||||||
orphan_section = f'''<details class="orphan-box" open>
|
|
||||||
<summary>🖼️ {len(orphan_imgs)} verwaiste Bilder — keinem Artikel zugeordnet</summary>
|
|
||||||
<div class="orphan-grid">{orphan_rows}</div>
|
|
||||||
</details>'''
|
|
||||||
items_html = ""
|
items_html = ""
|
||||||
for sort_key in sorted(by_date_sort.keys(), reverse=True):
|
for sort_key in sorted(by_date_sort.keys(), reverse=True):
|
||||||
day_articles = by_date_sort[sort_key]
|
day_articles = by_date_sort[sort_key]
|
||||||
@@ -448,7 +426,6 @@ def build_index(articles: list[dict]) -> str:
|
|||||||
<div class="rubric-item"><span class="rubric-id">55</span> Podcast</div>
|
<div class="rubric-item"><span class="rubric-id">55</span> Podcast</div>
|
||||||
</div>
|
</div>
|
||||||
</details>
|
</details>
|
||||||
{orphan_section}
|
|
||||||
<div class="toolbar">
|
<div class="toolbar">
|
||||||
<button class="btn btn-select" onclick="selectAll()">Alle auswählen</button>
|
<button class="btn btn-select" onclick="selectAll()">Alle auswählen</button>
|
||||||
<button class="btn btn-select" onclick="deselectAll()">Auswahl aufheben</button>
|
<button class="btn btn-select" onclick="deselectAll()">Auswahl aufheben</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user