clean up section and detail views a bit

This commit is contained in:
krmax44 2022-03-15 13:36:08 +01:00
parent fae6f31794
commit 01915865ef
No known key found for this signature in database
GPG key ID: 5C499A4F4EC4EE03
5 changed files with 118 additions and 112 deletions

View file

@ -1,5 +1,6 @@
{% load thumbnail %}
{% load i18n %}
{% load govplan %}
{% if object_list|length == 0 %}
<p>
@ -10,21 +11,28 @@
{% for object in object_list %}
<div class="col col-12 col-md-6 col-lg-4 d-flex mb-3">
<a href="{{ object.get_absolute_url }}" class="d-flex w-100 text-body text-decoration-none">
<div class="box-card border-blue w-100 shadow-blue">
<div class="box-card border-blue w-100 bg-white shadow-blue">
<div class="box-card-header p-3 bg-blue-20">
<h3 class="h6 m-0">
{{ object.title }}
</h3>
</div>
<div class="p-3 tight-margin">
<div class="p-3 tight-margin d-flex flex-column flex-1 h-100">
{% if object.quote %}
<blockquote>
{{ object.quote|striptags|truncatewords:20 }}
{{ object.quote|striptags|truncatewords:20|addquotes }}
</blockquote>
{% endif %}
<span class="badge badge-{{ object.get_status_css }} mt-auto">
{{ object.get_status_display }}
</span>
<div class="d-flex mt-auto">
<span href="{{ object.get_absolute_url }}" class="action-link text-blue-600">
→ mehr lesen
</span>
<div class="ml-auto">
<span class="badge badge-{{ object.get_status_css }}">
{{ object.get_status_display }}
</span>
</div>
</div>
</div>
</div>
</a>