diff --git a/bookwyrm/templates/snippets/status/headers/stopped_reading.html b/bookwyrm/templates/snippets/status/headers/stopped_reading.html new file mode 100644 index 00000000..3b6a314e --- /dev/null +++ b/bookwyrm/templates/snippets/status/headers/stopped_reading.html @@ -0,0 +1,23 @@ +{% spaceless %} +{% load i18n %} +{% load utilities %} +{% load status_display %} + +{% load_book status as book %} +{% if book.authors.exists %} + +{% with author=book.authors.first %} +{% blocktrans trimmed with book_path=book.local_path book=book|book_title author_name=author.name author_path=author.local_path %} +stopped reading {{ book }} by {{ author_name }} +{% endblocktrans %} +{% endwith %} + +{% else %} + +{% blocktrans trimmed with book_path=book.local_path book=book|book_title %} +stopped reading {{ book }} +{% endblocktrans %} + +{% endif %} +{% endspaceless %} +