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">
|
2021-02-23 21:04:24 +00:00
|
|
|
<div class="columns is-mobile">
|
2020-12-22 17:26:40 +00:00
|
|
|
<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">
|
2020-12-31 01:36:35 +00:00
|
|
|
<a href="{{ author.local_path }}/edit">
|
2021-01-14 22:13:23 +00:00
|
|
|
<span class="icon icon-pencil" title="Edit Author">
|
2020-12-22 17:26:40 +00:00
|
|
|
<span class="is-sr-only">Edit Author</span>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-03-17 00:33:53 +00:00
|
|
|
|
2020-12-22 17:26:40 +00:00
|
|
|
<div class="block">
|
2020-03-17 00:33:53 +00:00
|
|
|
{% if author.bio %}
|
|
|
|
<p>
|
2020-12-22 17:26:40 +00:00
|
|
|
{{ author.bio | to_markdown | safe }}
|
2020-03-17 00:33:53 +00:00
|
|
|
</p>
|
|
|
|
{% endif %}
|
2020-12-22 17:26:40 +00:00
|
|
|
{% if author.wikipedia_link %}
|
2020-12-22 18:19:01 +00:00
|
|
|
<p><a href="{{ author.wikipedia_link }}" rel=”noopener” target="_blank">Wikipedia</a></p>
|
2020-12-22 17:26:40 +00:00
|
|
|
{% endif %}
|
2020-03-17 00:33:53 +00:00
|
|
|
</div>
|
|
|
|
|
2020-09-30 23:20:50 +00:00
|
|
|
<div class="block">
|
2020-12-12 17:47:27 +00:00
|
|
|
<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 %}
|
|
|
|
|