{% extends 'layout.html' %} {% load i18n %} {% load markdown %} {% load humanize %} {% load utilities %} {% block title %}{{ author.name }}{% endblock %} {% block content %}

{{ author.name }}

{% if request.user.is_authenticated and perms.bookwyrm.edit_book %} {% endif %}
{% if author.bio %}
{% include "snippets/trimmed_text.html" with full=author.bio trim_length=200 %}
{% endif %} {% firstof author.aliases author.born author.died as details %} {% firstof author.wikipedia_link author.openlibrary_key author.inventaire_id author.isni as links %} {% if details or links %}
{% if details %}

{% trans "Author details" %}

{% if author.aliases %}
{% trans "Aliases:" %}
{% include "snippets/trimmed_list.html" with items=author.aliases itemprop="alternateName" %}
{% endif %} {% if author.born %}
{% trans "Born:" %}
{{ author.born|naturalday }}
{% endif %} {% if author.died %}
{% trans "Died:" %}
{{ author.died|naturalday }}
{% endif %}
{% endif %} {% if links %}

{% trans "External links" %}

{% if author.wikipedia_link %}
{% trans "Wikipedia" %}
{% endif %} {% if author.isni %} {% endif %} {% trans "Load data" as button_text %} {% if author.openlibrary_key %}
{% trans "View on OpenLibrary" %} {% if request.user.is_authenticated and perms.bookwyrm.edit_book %} {% include "author/sync_modal.html" with source="openlibrary.org" source_name="OpenLibrary" id="openlibrary_sync" %} {% endif %}
{% endif %} {% if author.inventaire_id %}
{% trans "View on Inventaire" %} {% if request.user.is_authenticated and perms.bookwyrm.edit_book %} {% with controls_text="iv_sync" controls_uid=author.id %} {% include 'snippets/toggle/toggle_button.html' with text=button_text focus="modal_title_iv_sync" class="is-small" icon_with_text="download" %} {% include "author/sync_modal.html" with source="inventaire.io" source_name="Inventaire" %} {% endwith %} {% endif %}
{% endif %} {% if author.librarything_key %} {% endif %} {% if author.goodreads_key %}
{% trans "View on Goodreads" %}
{% endif %}
{% endif %}
{% endif %}

{% blocktrans with name=author.name %}Books by {{ name }}{% endblocktrans %}

{% for book in books %}
{% include 'landing/small-book.html' with book=book %}
{% include 'snippets/shelve_button/shelve_button.html' with book=book %}
{% endfor %}
{% include 'snippets/pagination.html' with page=books %}
{% endblock %}