let's call it save not bookmark

This commit is contained in:
Mouse Reeve
2021-08-23 15:07:38 -07:00
parent b7fb55e6ad
commit f267e53b56
6 changed files with 31 additions and 35 deletions

View File

@ -3,32 +3,32 @@
{% if request.user.is_authenticated %}
{% with request.user|bookmarked:list as bookmarked %}
{% with request.user|saved:list as saved %}
<form
name="bookmark-{{ list.id }}"
action="{% url 'list-bookmark' list.id %}"
name="save-{{ list.id }}"
action="{% url 'list-save' list.id %}"
method="POST"
class="interaction bookmark_{{ list.id }} {% if bookmarked %}is-hidden{% endif %}"
data-id="bookmark_{{ list.id }}"
class="interaction save_{{ list.id }} {% if saved %}is-hidden{% endif %}"
data-id="save_{{ list.id }}"
>
{% csrf_token %}
{% trans "Bookmark" as text %}
<button class="button">
{% trans "Save" as text %}
<button class="button" type="submit">
<span class="icon icon-bookmark m-0-mobile" title="{{ text }}"></span>
<span class="is-sr-only-mobile">{{ text }}</span>
</button>
</form>
<form
name="bookmark-{{ list.id }}"
action="{% url 'list-unbookmark' list.id %}"
name="unsave-{{ list.id }}"
action="{% url 'list-unsave' list.id %}"
method="POST"
class="interaction active bookmark_{{ list.id }} {% if not bookmarked %}is-hidden{% endif %}"
data-id="bookmark_{{ list.id }}"
class="interaction save_{{ list.id }} active {% if not saved %}is-hidden{% endif %}"
data-id="save_{{ list.id }}"
>
{% csrf_token %}
{% trans "Un-bookmark" as text %}
<button class="button">
{% trans "Un-save" as text %}
<button class="button" type="submit">
<span class="icon icon-bookmark m-0-mobile has-text-primary" title="{{ text }}"></span>
<span class="is-sr-only-mobile">{{ text }}</span>
</button>

View File

@ -31,12 +31,12 @@
<nav class="tabs">
<ul>
{% url 'lists' as url %}
<li{% if url in request.path %} class="is-active"{% endif %}>
<li{% if request.path in url %} class="is-active"{% endif %}>
<a href="{{ url }}">{% trans "All Lists" %}</a>
</li>
{% url 'bookmarked-lists' as url %}
{% url 'saved-lists' as url %}
<li{% if url in request.path %} class="is-active"{% endif %}>
<a href="{{ url }}">{% trans "Bookmarked Lists" %}</a>
<a href="{{ url }}">{% trans "Saved Lists" %}</a>
</li>
</ul>
</nav>