added price and number of pages to stat blocks

This commit is contained in:
eclipse 2025-10-20 12:09:54 +02:00
parent 1dbf282bd6
commit ec950fc034

View File

@ -1,26 +1,18 @@
{% extends "base.html" %} {% extends "base.html" %} {% block title %}{{ article.title }} {{ SITENAME
}}{% endblock %} {% block metadesc %}{% if article.summary %}{{ article.summary
{% block title %}{{ article.title }} {{ SITENAME }}{% endblock %} | striptags | e }}{% else %}{{ article.title }}{% endif %}{% endblock %} {%
{% block metadesc %}{% if article.summary %}{{ article.summary | striptags | e }}{% else %}{{ article.title }}{% endif %}{% endblock %} block content_all %}
{% block content_all %}
<article> <article>
{% block content_header %} {% block content_header %}
<header id="content-header"> <header id="content-header">
<h1>{{ article.title }}</h1> <h1>{{ article.title }}</h1>
</header> </header>
{% endblock content_header %} {% endblock content_header %} {% block content_body %}
{% block content_body %}
<div id="content-body"> <div id="content-body">
<div class="body-column-text"> <div class="body-column-text">
{% if article.content | length is not eq(0) %} {% if article.content | length is not eq(0) %} {{ article.content }}
{{ article.content }} <br />
<br/> {% endif %} {% if article.blurbs %}
{% endif %}
{% if article.blurbs %}
<div> <div>
<h2>Pressestimmen</h2> <h2>Pressestimmen</h2>
{% for b in article.blurbs %} {% for b in article.blurbs %}
@ -28,95 +20,97 @@
{{ b.blurb }} {{ b.blurb }}
<footer><cite>— {{ b.source }}</cite></footer> <footer><cite>— {{ b.source }}</cite></footer>
</blockquote> </blockquote>
{% if not loop.last %}&nbsp;{% endif %} {% if not loop.last %}&nbsp;{% endif %} {% endfor %}
{% endfor %}
</div> </div>
<br/> <br />
{% endif %} {% endif %} {% if article.stats or article.tags %}
{% if article.stats or article.tags %}
<div> <div>
<h2>Details</h2> <h2>Details</h2>
<ul class="article-stats"> <ul class="article-stats">
{% if article.stats %} {% if article.stats %} {# {% if article.date %}
{# {% if article.date %}
<li>Erstveröffentlichung: {{ article.date.strftime("%d.%m.%Y") }}</li> <li>Erstveröffentlichung: {{ article.date.strftime("%d.%m.%Y") }}</li>
{% endif %} #} {% endif %} #} {% if article.stats.author %}
{% if article.stats.author %}
<li>Autor: {{ article.stats.author }}</li> <li>Autor: {{ article.stats.author }}</li>
{% endif %} {% endif %} {% if article.stats.authors %}
{% if article.stats.authors %}
<li>Autor:innen: {{ article.stats.authors }}</li> <li>Autor:innen: {{ article.stats.authors }}</li>
{% endif %} {% endif %} {% if article.stats.series %}
{% if article.stats.series %}
<li>aus der Reihe "{{ article.stats.series }}"</li> <li>aus der Reihe "{{ article.stats.series }}"</li>
{% endif %} {% endif %} {% if article.stats.issue %}
{% if article.stats.issue %}
<li>{{ article.stats.issue }}</li> <li>{{ article.stats.issue }}</li>
{% endif %} {% endif %} {% if article.stats.editor %}
{% if article.stats.editor %}
<li>herausgegeben von {{ article.stats.editor }}</li> <li>herausgegeben von {{ article.stats.editor }}</li>
{% endif %} {% endif %} {% if article.stats.publisher %}
{% if article.stats.publisher %}
<li>Verlag: {{ article.stats.publisher }}</li> <li>Verlag: {{ article.stats.publisher }}</li>
{% endif %} {% endif %} {% if article.stats.published_in or
{% if article.stats.published_in or article.stats.published_as %} article.stats.published_as %} {% set ns = namespace() %} {% if
{% set ns = namespace() %} article.stats.published_in %} {% set ns.stats =
{% if article.stats.published_in %} article.stats.published_in %} {% set ns.title_line = "Veröffentlicht
{% set ns.stats = article.stats.published_in %} in" %} {% else %} {% set ns.stats = article.stats.published_as %} {%
{% set ns.title_line = "Veröffentlicht in" %} set ns.title_line = "Erschienen als" %} {% endif %} {% for p in
{% else %} ns.stats %} {% if p.title %} {#
{% set ns.stats = article.stats.published_as %} <li>
{% set ns.title_line = "Erschienen als" %} Veröffentlicht in
{% endif %} <strong
{% for p in ns.stats %} >{% if p.link %}<a href="{{ p.link }}" target="_blank"
{% if p.title %} >{% endif %}{{ p.title }}{% if p.link %}</a
{# <li>Veröffentlicht in <strong>{% if p.link %}<a href="{{ p.link }}" target="_blank">{% endif %}{{ p.title }}{% if p.link %}</a>{% endif %}</strong> #} >{% endif %}</strong
<li>{{ ns.title_line }} <strong>{{ p.title }}</strong> >
#}
</li>
<li>
{{ ns.title_line }} <strong>{{ p.title }}</strong>
<ul> <ul>
{% endif %} {% endif %} {% if p.date %}
{% if p.date %} <li>
<li>{% if p.date is string %}{{ p.date }}{% else %}{{ p.date.strftime("%d.%m.%Y") }}{% endif %}</li> {% if p.date is string %}{{ p.date }}{% else %}{{
{% endif %} p.date.strftime("%d.%m.%Y") }}{% endif %}
{% if p.issue %} </li>
{% endif %} {% if p.issue %}
<li>Ausgabe {{ p.issue }}</li> <li>Ausgabe {{ p.issue }}</li>
{% endif %} {% endif %} {% if p.publisher %}
{% if p.publisher %}
<li>Verlag: {{ p.publisher }}</li> <li>Verlag: {{ p.publisher }}</li>
{% endif %} {% endif %} {% if p.series %}
{% if p.series %}
<li>aus der Reihe "{{ p.series }}"</li> <li>aus der Reihe "{{ p.series }}"</li>
{% endif %} {% endif %} {% if p.editor %}
{% if p.editor %}
<li>herausgegeben von {{ p.editor }}</li> <li>herausgegeben von {{ p.editor }}</li>
{% endif %} {% endif %} {% if p.isbn %}
{% if p.isbn %}
<li>ISBN: {{ p.isbn }}</li> <li>ISBN: {{ p.isbn }}</li>
{% endif %} {% endif %} {% if p.issn %}
{% if p.issn %}
<li>ISSN: {{ p.issn }}</li> <li>ISSN: {{ p.issn }}</li>
{% endif %} {% endif %} {% if p.pages %}
{% if p.read_it_full %} <li>Seitenzahl: {{ p.pages }}</li>
<li><a href="{{ p.read_it_full }}" target="_blank">Volltext verfügbar</a></li> {% endif %} {% if p.price %}
{% endif %} <li>Preis: {{ p.price }}</li>
{% if p.read_it_partial %} {% endif %} {% if p.read_it_full %}
<li><a href="{{ p.read_it_partial }}" target="_blank">Leseprobe verfügbar</a></li> <li>
{% endif %} <a href="{{ p.read_it_full }}" target="_blank"
{% if p.link and p.link_text %} >Volltext verfügbar</a
<li><a href="{{ p.link }}" target="_blank">{{ p.link_text }}</a></li> >
{% endif %} </li>
{% if p.title %} {% endif %} {% if p.read_it_partial %}
<li>
<a href="{{ p.read_it_partial }}" target="_blank"
>Leseprobe verfügbar</a
>
</li>
{% endif %} {% if p.link and p.link_text %}
<li>
<a href="{{ p.link }}" target="_blank">{{ p.link_text }}</a>
</li>
{% endif %} {% if p.title %}
</ul> </ul>
</li> </li>
{% endif %} {% endif %} {% endfor %} {% endif %} {% endif %} {% if article.tags %}
{% endfor %} <li>
{% endif %} Schlagworte:
{% endif %}
{% if article.tags %}
<li>Schlagworte:
<ul class="article-tags"> <ul class="article-tags">
{% for t in article.tags %} {% for t in article.tags %}
<li><a href="/tag/{{ t | lower | replace('- ', '-') | replace(' ', '-') }}/">{{ t }}</a></li> <li>
<a
href="/tag/{{ t | lower | replace('- ', '-') | replace(' ', '-') }}/"
>{{ t }}</a
>
</li>
{% endfor %} {% endfor %}
</ul> </ul>
</li> </li>
@ -127,12 +121,10 @@
</div> </div>
<div class="body-column-img"> <div class="body-column-img">
{% if article.featured_image %} {% if article.featured_image %} {% from 'includes/macros.html' import fi
{% from 'includes/macros.html' import fi %} %} {% set i = article.featured_image[0] %} {{ fi(i.pic, i.link, i.alt,
{% set i = article.featured_image[0] %} i.title, i.credit, i.credit_link) }} {% endif %} {% if article.klappentext
{{ fi(i.pic, i.link, i.alt, i.title, i.credit, i.credit_link) }} %}
{% endif %}
{% if article.klappentext %}
<div> <div>
<h2>Klappentext</h2> <h2>Klappentext</h2>
<blockquote>{{ article.klappentext }}</blockquote> <blockquote>{{ article.klappentext }}</blockquote>
@ -141,17 +133,15 @@
</div> </div>
</div> </div>
{% endblock content_body %} {% endblock content_body %} {% block content_footer %}
{% block content_footer %}
<footer class="content-footer"> <footer class="content-footer">
{% if article.category == 'Neues' %} {% if article.category == 'Neues' %} veröffentlicht am {{ article.date |
veröffentlicht am {{ article.date | strftime("%d.%m.%y") }} strftime("%d.%m.%y") }} {% else %}
{% else %} <a href="/{{ article.save_as.split('/')[:-1] | join('/') }}/"
<a href="/{{ article.save_as.split('/')[:-1] | join('/') }}/">&larr; {{ article.category }}</a> >&larr; {{ article.category }}</a
>
{% endif %} {% endif %}
</footer> </footer>
{% endblock content_footer %} {% endblock content_footer %}
</article> </article>
{% endblock content_all %} {% endblock content_all %}