moviewyrm/bookwyrm/templates/author.html

38 lines
1,015 B
HTML
Raw Normal View History

2020-02-11 06:32:03 +00:00
{% extends 'layout.html' %}
2020-12-13 02:25:04 +00:00
{% load bookwyrm_tags %}
2020-02-11 06:32:03 +00:00
{% block content %}
2020-09-30 23:20:50 +00:00
<div class="block">
<div class="columns">
<div class="column">
<h1 class="title">{{ author.name }}</h1>
</div>
{% if request.user.is_authenticated and perms.bookwyrm.edit_book %}
<div class="column is-narrow">
<a href="/author/{{ author.id }}/edit">
<span class="icon icon-pencil">
<span class="is-sr-only">Edit Author</span>
</span>
</a>
</div>
{% endif %}
</div>
</div>
<div class="block">
{% if author.bio %}
<p>
{{ author.bio | to_markdown | safe }}
</p>
{% endif %}
{% if author.wikipedia_link %}
<p><a href="{{ author.wikipedia_link }}" target="_blank">Wikipedia</a></p>
{% endif %}
</div>
2020-09-30 23:20:50 +00:00
<div class="block">
<h3 class="title is-4">Books by {{ author.name }}</h3>
2020-09-30 23:20:50 +00:00
{% include 'snippets/book_tiles.html' with books=books %}
2020-02-11 06:32:03 +00:00
</div>
{% endblock %}