From 28fed2c6ae8593fb4148c6c3b591f734ac2d038f Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 1 Jan 2022 06:51:40 -0800 Subject: [PATCH] Fixes display for goal statuses --- .../snippets/status/headers/generatednote.html | 10 ++++------ bookwyrm/templates/snippets/status/headers/goal.html | 5 ----- 2 files changed, 4 insertions(+), 11 deletions(-) delete mode 100644 bookwyrm/templates/snippets/status/headers/goal.html diff --git a/bookwyrm/templates/snippets/status/headers/generatednote.html b/bookwyrm/templates/snippets/status/headers/generatednote.html index 58a65adbe..cc684a5f2 100644 --- a/bookwyrm/templates/snippets/status/headers/generatednote.html +++ b/bookwyrm/templates/snippets/status/headers/generatednote.html @@ -1,11 +1,9 @@ {% if status.content == 'wants to read' %} {% include 'snippets/status/headers/to_read.html' with book=status.mention_books.first %} -{% endif %} - -{% if status.content == 'finished reading' %} +{% elif status.content == 'finished reading' %} {% include 'snippets/status/headers/read.html' with book=status.mention_books.first %} -{% endif %} - -{% if status.content == 'started reading' %} +{% elif status.content == 'started reading' %} {% include 'snippets/status/headers/reading.html' with book=status.mention_books.first %} +{% else %} + {{ status.content }} {% endif %} diff --git a/bookwyrm/templates/snippets/status/headers/goal.html b/bookwyrm/templates/snippets/status/headers/goal.html deleted file mode 100644 index e31dec2a7..000000000 --- a/bookwyrm/templates/snippets/status/headers/goal.html +++ /dev/null @@ -1,5 +0,0 @@ -{% spaceless %} -{% load i18n %}{% load humanize %} - -{{ status.content }} -{% endspaceless %}