From ec2c5cb54600ae24105f434e3097f3780180e671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adeodato=20Sim=C3=B3?= Date: Sat, 23 Sep 2023 18:23:15 -0300 Subject: [PATCH] Only use first publish date if publisher is unknown --- bookwyrm/templates/book/publisher_info.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bookwyrm/templates/book/publisher_info.html b/bookwyrm/templates/book/publisher_info.html index 41e7e26f2..e3ffedca8 100644 --- a/bookwyrm/templates/book/publisher_info.html +++ b/bookwyrm/templates/book/publisher_info.html @@ -58,12 +58,12 @@ {% endif %} {% with date=book.published_date|default:book.first_published_date|naturalday publisher=book.publishers|join:', ' %} - {% if date and publisher %} + {% if book.published_date and publisher %} {% blocktrans %}Published {{ date }} by {{ publisher }}.{% endblocktrans %} - {% elif date %} - {% blocktrans %}Published {{ date }}{% endblocktrans %} {% elif publisher %} {% blocktrans %}Published by {{ publisher }}.{% endblocktrans %} + {% elif date %} + {% blocktrans %}Published {{ date }}{% endblocktrans %} {% endif %} {% endwith %}