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

{{ author.name }}

{% if request.user.is_authenticated and perms.bookwyrm.edit_book %} {% endif %}
{% if author.aliases or author.born or author.died or author.wikipedia_link or author.openlibrary_key or author.inventaire_id %}
{% if author.aliases %}
{% trans "Aliases:" %}
{% for alias in author.aliases %}
{{alias}}{% if not forloop.last %}, {% endif %}
{% endfor %}
{% endif %} {% if author.born %}
{% trans "Born:" %}
{{ author.born|naturalday }}
{% endif %} {% if author.died %}
{% trans "Died:" %}
{{ author.died|naturalday }}
{% endif %}
{% if author.wikipedia_link %}

{% trans "Wikipedia" %}

{% endif %} {% if author.openlibrary_key %}

{% trans "View on OpenLibrary" %}

{% endif %} {% if author.inventaire_id %}

{% trans "View on Inventaire" %}

{% endif %} {% if author.librarything_key %}

{% trans "View on LibraryThing" %}

{% endif %} {% if author.goodreads_key %}

{% trans "View on Goodreads" %}

{% endif %}
{% endif %}
{% if author.bio %} {{ author.bio|to_markdown|safe }} {% endif %}

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

{% for book in books %}
{% include 'discover/small-book.html' with book=book %}
{% endfor %}
{% endblock %}