Show subtitle in book page

This commit is contained in:
Mouse Reeve 2020-12-17 14:11:24 -08:00
parent 6149f36c7f
commit 73f94a76d2

View file

@ -4,13 +4,21 @@
{% block content %} {% block content %}
<div class="block"> <div class="block">
<div class="level"> <div class="columns">
<h1 class="title level-left"> <div class="column">
<span>{% include 'snippets/book_titleby.html' with book=book %}</span> <h1 class="title">
</h1> {{ book.title }}{% if book.subtitle %}:
<small>{{ book.subtitle }}</small>{% endif %}
</h1>
{% if book.authors %}
<h2 class="subtitle">
by {% include 'snippets/authors.html' with book=book %}
</h2>
{% endif %}
</div>
{% if request.user.is_authenticated and perms.bookwyrm.edit_book %} {% if request.user.is_authenticated and perms.bookwyrm.edit_book %}
<div class="level-right"> <div class="column is-narrow">
<a href="{{ book.id }}/edit"> <a href="{{ book.id }}/edit">
<span class="icon icon-pencil"> <span class="icon icon-pencil">
<span class="is-sr-only">Edit Book</span> <span class="is-sr-only">Edit Book</span>