Hide goal using database field instead of localstorage
This commit is contained in:
parent
284366e46f
commit
9a20b5dbd5
7 changed files with 38 additions and 6 deletions
|
@ -19,9 +19,9 @@
|
|||
</div>
|
||||
|
||||
{# announcements and system messages #}
|
||||
{% if not goal and tab == 'home' %}
|
||||
{% if request.user.show_goal and not goal and tab == 'home' %}
|
||||
{% now 'Y' as year %}
|
||||
<section class="block hidden" aria-title="{% trans 'Announcements' %}" data-hide="hide-{{ year }}-reading-goal">
|
||||
<section class="block" aria-title="{% trans 'Announcements' %}">
|
||||
{% include 'snippets/goal_card.html' with year=year %}
|
||||
<hr>
|
||||
</section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue