forked from mirrors/bookwyrm
Option to hide the annual summary card
This commit is contained in:
parent
2345845560
commit
3cddd69274
2 changed files with 8 additions and 1 deletions
|
@ -73,7 +73,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if annual_summary_year and tab.key == 'home' %}
|
{% if annual_summary_year and tab.key == 'home' %}
|
||||||
<section class="block">
|
<section class="block" data-hide="hide_annual_summary_{{ year }}">
|
||||||
{% include 'feed/summary_card.html' with year=annual_summary_year %}
|
{% include 'feed/summary_card.html' with year=annual_summary_year %}
|
||||||
<hr>
|
<hr>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -7,6 +7,13 @@
|
||||||
<span class="icon is-size-3 mr-2" aria-hidden="true">✨</span>
|
<span class="icon is-size-3 mr-2" aria-hidden="true">✨</span>
|
||||||
{% blocktrans %}{{ year }} in the books{% endblocktrans %}
|
{% blocktrans %}{{ year }} in the books{% endblocktrans %}
|
||||||
</h3>
|
</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 %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block card-content %}
|
{% block card-content %}
|
||||||
|
|
Loading…
Reference in a new issue