Pluralise "authors" correctly
authorAlex Chan <alex@alexwlchan.net>
Sun, 2 Feb 2020 22:06:46 +0000 (22:06 +0000)
committerAlex Chan <alex@alexwlchan.net>
Sun, 2 Feb 2020 22:06:46 +0000 (22:06 +0000)
templates/review.html

index d40e916..c196752 100644 (file)
@@ -12,7 +12,7 @@
 
   <table class="book_metadata">
     <tr>
 
   <table class="book_metadata">
     <tr>
-      <td>author:</td>
+      <td>author{% if "and" in review_entry.book.author or ", " in review_entry.book.author %}s{% endif %}:</td>
       <th>{{ review_entry.book.author }}
         {%- if review_entry.book.publication_year %}
           ({{ review_entry.book.publication_year}})
       <th>{{ review_entry.book.author }}
         {%- if review_entry.book.publication_year %}
           ({{ review_entry.book.publication_year}})