From 3cddd692741581705d79636bc77bc796c4435e54 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 27 Dec 2021 14:12:57 -0800 Subject: [PATCH 1/2] Option to hide the annual summary card --- bookwyrm/templates/feed/feed.html | 2 +- bookwyrm/templates/feed/summary_card.html | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bookwyrm/templates/feed/feed.html b/bookwyrm/templates/feed/feed.html index f25ec869b..e883b6b24 100644 --- a/bookwyrm/templates/feed/feed.html +++ b/bookwyrm/templates/feed/feed.html @@ -73,7 +73,7 @@ {% endif %} {% if annual_summary_year and tab.key == 'home' %} -
+
{% include 'feed/summary_card.html' with year=annual_summary_year %}
diff --git a/bookwyrm/templates/feed/summary_card.html b/bookwyrm/templates/feed/summary_card.html index a5bc4643a..02718cdd9 100644 --- a/bookwyrm/templates/feed/summary_card.html +++ b/bookwyrm/templates/feed/summary_card.html @@ -7,6 +7,13 @@ {% blocktrans %}{{ year }} in the books{% endblocktrans %} + +
+ {% trans "Dismiss message" as button_text %} + +
{% endblock %} {% block card-content %} From e6b15f25eb2fd76661d97147c407405e361e12be Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 27 Dec 2021 14:22:09 -0800 Subject: [PATCH 2/2] Fixes variable name --- bookwyrm/templates/feed/feed.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/templates/feed/feed.html b/bookwyrm/templates/feed/feed.html index e883b6b24..45d8f1ae9 100644 --- a/bookwyrm/templates/feed/feed.html +++ b/bookwyrm/templates/feed/feed.html @@ -73,7 +73,7 @@ {% endif %} {% if annual_summary_year and tab.key == 'home' %} -
+
{% include 'feed/summary_card.html' with year=annual_summary_year %}