From 3cddd692741581705d79636bc77bc796c4435e54 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 27 Dec 2021 14:12:57 -0800 Subject: [PATCH] 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 f25ec869..e883b6b2 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 a5bc4643..02718cdd 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 %}