Style fixes

This commit is contained in:
Joachim 2021-05-24 12:51:18 +02:00
parent 58c07d1677
commit 594f7b3708
1 changed files with 12 additions and 12 deletions

View File

@ -26,43 +26,43 @@
<meta itemprop="name" content="{{ author.name }}"> <meta itemprop="name" content="{{ author.name }}">
{% if author.aliases or author.born or author.died or author.wikipedia_link or author.openlibrary_key or author.inventaire_id %} {% if author.aliases or author.born or author.died or author.wikipedia_link or author.openlibrary_key or author.inventaire_id %}
<div class="column is-narrow"> <div class="column is-two-fifths">
<div class="box"> <div class="box">
<dl> <dl>
{% if author.aliases %} {% if author.aliases %}
<div class="is-flex"> <div class="is-flex is-flex-wrap-wrap mb-2">
<dt class="mr-1">{% trans "Aliases:" %}</dt> <dt class="has-text-weight-bold mr-1">{% trans "Aliases:" %}</dt>
{% for alias in author.aliases %} {% for alias in author.aliases %}
<dd itemprop="alternateName" content="{{alias}}"> <dd itemprop="alternateName" content="{{alias}}">
{{alias}}{% if not forloop.last %},{% endif %} {{alias}}{% if not forloop.last %},&nbsp;{% endif %}
</dd> </dd>
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}
{% if author.born %} {% if author.born %}
<div class="is-flex"> <div class="is-flex mb-2">
<dt class="mr-1">{% trans "Born:" %}</dt> <dt class="has-text-weight-bold mr-1">{% trans "Born:" %}</dt>
<dd itemprop="birthDate">{{ author.born|naturalday }}</dd> <dd itemprop="birthDate">{{ author.born|naturalday }}</dd>
</div> </div>
{% endif %} {% endif %}
{% if author.died %} {% if author.died %}
<div class="is-flex"> <div class="is-flex mb-2">
<dt class="mr-1">{% trans "Died:" %}</dt> <dt class="has-text-weight-bold mr-1">{% trans "Died:" %}</dt>
<dd itemprop="deathDate">{{ author.died|naturalday }}</dd> <dd itemprop="deathDate">{{ author.died|naturalday }}</dd>
</div> </div>
{% endif %} {% endif %}
</dl> </dl>
{% if author.wikipedia_link %} {% if author.wikipedia_link %}
<p class="mt-1"> <p class="mb-1">
<a itemprop="sameAs" href="{{ author.wikipedia_link }}" rel=”noopener” target="_blank"> <a itemprop="sameAs" href="{{ author.wikipedia_link }}" rel=”noopener” target="_blank">
{% trans "Wikipedia" %} {% trans "Wikipedia" %}
</a> </a>
</p> </p>
{% endif %} {% endif %}
{% if author.openlibrary_key %} {% if author.openlibrary_key %}
<p class="mt-1"> <p class="mb-1">
<a itemprop="sameAs" href="https://openlibrary.org/authors/{{ author.openlibrary_key }}" target="_blank" rel="noopener"> <a itemprop="sameAs" href="https://openlibrary.org/authors/{{ author.openlibrary_key }}" target="_blank" rel="noopener">
{% trans "View on OpenLibrary" %} {% trans "View on OpenLibrary" %}
</a> </a>
@ -70,7 +70,7 @@
{% endif %} {% endif %}
{% if author.inventaire_id %} {% if author.inventaire_id %}
<p class="mt-1"> <p class="mb-1">
<a itemprop="sameAs" href="https://inventaire.io/entity/{{ author.inventaire_id }}" target="_blank" rel="noopener"> <a itemprop="sameAs" href="https://inventaire.io/entity/{{ author.inventaire_id }}" target="_blank" rel="noopener">
{% trans "View on Inventaire" %} {% trans "View on Inventaire" %}
</a> </a>