Implement and use Author.display_name

This commit is contained in:
Logan Buckley
2020-06-17 18:16:19 -04:00
parent a1f6a96fae
commit a56855d5e4
4 changed files with 15 additions and 4 deletions

View File

@ -1 +1 @@
<a href="/author/{{ book.authors.first.id }}" class="author">{{ book.authors.first.name }}</a>
<a href="/author/{{ book.authors.first.id }}" class="author">{{ book.authors.first.display_name }}</a>

View File

@ -42,7 +42,7 @@
<a href="/book/{{ book.id }}">{{ book.title }}</a>
</td>
<td>
{{ book.authors.first.name }}
{{ book.authors.first.display_name }}
</td>
<td>
{% if book.first_published_date %}{{ book.first_published_date }}{% endif %}