Merge pull request #1703 from bookwyrm-social/hide-annual-summary

Hide annual summary
This commit is contained in:
Mouse Reeve 2021-12-27 14:32:53 -08:00 committed by GitHub
commit 66d5f16f82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -73,7 +73,7 @@
{% endif %}
{% if annual_summary_year and tab.key == 'home' %}
<section class="block">
<section class="block" data-hide="hide_annual_summary_{{ annual_summary_year }}">
{% include 'feed/summary_card.html' with year=annual_summary_year %}
<hr>
</section>

View file

@ -7,6 +7,13 @@
<span class="icon is-size-3 mr-2" aria-hidden="true"></span>
{% blocktrans %}{{ year }} in the books{% endblocktrans %}
</h3>
<div class="card-header-icon has-background-success-dark has-text-white">
{% trans "Dismiss message" as button_text %}
<button class="delete set-display" type="button" data-id="hide_annual_summary_{{ year }}" data-value="true">
<span>{% trans "Dismiss message" %}</span>
</button>
</div>
{% endblock %}
{% block card-content %}