From d59ac297bb951992e736d3e378326a9e85eb9e03 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 23 Aug 2021 15:54:20 -0700 Subject: [PATCH] Indicate if a list is saved on the lists tile view --- bookwyrm/templates/lists/list_items.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bookwyrm/templates/lists/list_items.html b/bookwyrm/templates/lists/list_items.html index 611975b0..5efa2450 100644 --- a/bookwyrm/templates/lists/list_items.html +++ b/bookwyrm/templates/lists/list_items.html @@ -1,4 +1,7 @@ +{% load i18n %} {% load markdown %} +{% load interaction %} +
{% for list in lists %}
@@ -7,6 +10,14 @@

{{ list.name }} {% include 'snippets/privacy-icons.html' with item=list %}

+ {% if request.user|saved:list %} +
+ {% trans "Saved" as text %} + + {{ text }} + +
+ {% endif %} {% with list_books=list.listitem_set.all|slice:5 %}