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:
@@ -1,7 +1,7 @@
|
|||||||
<!-- /app/templates/_tag_cards.html -->
|
<!-- /app/templates/_tag_cards.html -->
|
||||||
{% for tag in tag_data %}
|
{% for tag in tag_data %}
|
||||||
<div class="tag-card" data-tag-id="{{ tag.id }}" data-tag-name="{{ tag.tag }}" data-tag-kind="{{ tag.kind }}">
|
<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">
|
<div class="tag-preview">
|
||||||
{% for image in tag.images %}
|
{% for image in tag.images %}
|
||||||
<img class="tag-thumb"
|
<img class="tag-thumb"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<!-- Reader Header -->
|
<!-- Reader Header -->
|
||||||
<div class="reader-header">
|
<div class="reader-header">
|
||||||
<div class="reader-header-left">
|
<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">←</span>
|
<span class="back-arrow">←</span>
|
||||||
</a>
|
</a>
|
||||||
<h1 class="reader-title">{{ series_name }}</h1>
|
<h1 class="reader-title">{{ series_name }}</h1>
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<div class="reader-empty">
|
<div class="reader-empty">
|
||||||
<p>No pages in this series yet.</p>
|
<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
|
Go to gallery to add pages
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user