Fixes error for logged out user viewing lists

This commit is contained in:
Mouse Reeve 2021-08-24 14:16:22 -07:00
parent fe75049177
commit 2ec01803e0

View file

@ -10,7 +10,7 @@
<h4 class="card-header-title"> <h4 class="card-header-title">
<a href="{{ list.local_path }}">{{ list.name }}</a> <span class="subtitle">{% include 'snippets/privacy-icons.html' with item=list %}</span> <a href="{{ list.local_path }}">{{ list.name }}</a> <span class="subtitle">{% include 'snippets/privacy-icons.html' with item=list %}</span>
</h4> </h4>
{% if request.user|saved:list %} {% if request.user.is_authenticated and request.user|saved:list %}
<div class="card-header-icon"> <div class="card-header-icon">
{% trans "Saved" as text %} {% trans "Saved" as text %}
<span class="icon icon-bookmark has-text-grey" title="{{ text }}"> <span class="icon icon-bookmark has-text-grey" title="{{ text }}">