move card components to module specific directories

This commit is contained in:
Thomas Peetz
2025-05-25 22:12:23 +02:00
parent 456162da44
commit 87b1c24783
12 changed files with 66 additions and 25 deletions
@@ -0,0 +1,7 @@
<div class="card shadow p-3 mb-2 bg-body rounded" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">{{obj.name}}</h5>
<p class="card-text">Link : {{obj.weblink}}</p>
<a href="/comic/artists/{{obj.id}}" class="btn btn-primary">Read more</a>
</div>
</div>
+1 -1
View File
@@ -18,7 +18,7 @@
{% for artist in artists %}
<div class="col-lg-4 col-md-3 col-sm-10 mr-auto">
{% with obj=artist %}
{% include "components/artist_cards.html" %}
{% include "comic/artist_cards.html" %}
{% endwith %}
{% if loop.index %3 %}
@@ -0,0 +1,8 @@
<div class="card shadow p-3 mb-2 bg-body rounded" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">{{obj.title}}</h5>
<p class="card-text">Publisher : {{obj.publisher.name}}</p>
<p class="card-text">Completed : {% with check=obj.completed %}{% include "components/check.html" %}{% endwith %}</p>
<a href="/comic/comics/{{obj.id}}" class="btn btn-primary">Read more</a>
</div>
</div>
@@ -0,0 +1,6 @@
<div class="card shadow p-3 mb-2 bg-body rounded" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">{{obj.name}}</h5>
<a href="/comic/publishers/{{obj.id}}" class="btn btn-primary">Read more</a>
</div>
</div>
@@ -18,7 +18,7 @@
{% for publisher in publishers %}
<div class="col-lg-4 col-md-3 col-sm-10 mr-auto">
{% with obj=publisher %}
{% include "components/publisher_cards.html" %}
{% include "comic/publisher_cards.html" %}
{% endwith %}
{% if loop.index %3 %}
</div>