refactor(templates): _tag_cards.html and reader.html use tag_id

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-22 16:04:25 -04:00
parent 764092e8dd
commit 0cae2b840d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
<!-- /app/templates/_tag_cards.html -->
{% for tag in tag_data %}
<div class="tag-card" data-tag-id="{{ tag.id }}" data-tag-name="{{ tag.tag }}" data-tag-kind="{{ tag.kind }}">
<a href="{{ url_for('main.gallery', tag=tag.tag) }}" class="tag-card-link">
<a href="{{ url_for('main.gallery', tag_id=tag.id) }}" class="tag-card-link">
<div class="tag-preview">
{% for image in tag.images %}
<img class="tag-thumb"
+2 -2
View File
@@ -8,7 +8,7 @@
<!-- Reader Header -->
<div class="reader-header">
<div class="reader-header-left">
<a href="{{ url_for('main.gallery', tag=tag.name) }}" class="reader-back-btn" title="Back to gallery">
<a href="{{ url_for('main.gallery', tag_id=tag.id) }}" class="reader-back-btn" title="Back to gallery">
<span class="back-arrow">&larr;</span>
</a>
<h1 class="reader-title">{{ series_name }}</h1>
@@ -63,7 +63,7 @@
{% else %}
<div class="reader-empty">
<p>No pages in this series yet.</p>
<a href="{{ url_for('main.gallery', tag=tag.name) }}" class="btn primary-btn">
<a href="{{ url_for('main.gallery', tag_id=tag.id) }}" class="btn primary-btn">
Go to gallery to add pages
</a>
</div>