From 6abe9274c0af2615ccbd75fcda3b101b6f02face Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 10 May 2021 15:55:42 -0700 Subject: [PATCH 1/5] Switches out links in the top bar and dropdown --- bookwyrm/templates/layout.html | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/bookwyrm/templates/layout.html b/bookwyrm/templates/layout.html index bc6544012..1cf6d4db9 100644 --- a/bookwyrm/templates/layout.html +++ b/bookwyrm/templates/layout.html @@ -55,15 +55,15 @@ From ca8067769c76a030e779e72817525b80bf4fa338 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sun, 23 May 2021 08:48:00 -0700 Subject: [PATCH 3/5] Don't show deleted ratings in stars --- bookwyrm/templatetags/bookwyrm_tags.py | 1 + bookwyrm/views/shelf.py | 1 + 2 files changed, 2 insertions(+) diff --git a/bookwyrm/templatetags/bookwyrm_tags.py b/bookwyrm/templatetags/bookwyrm_tags.py index 3f33643bf..5cba5455f 100644 --- a/bookwyrm/templatetags/bookwyrm_tags.py +++ b/bookwyrm/templatetags/bookwyrm_tags.py @@ -25,6 +25,7 @@ def get_user_rating(book, user): user=user, book=book, rating__isnull=False, + deleted=False, ) .order_by("-published_date") .first() diff --git a/bookwyrm/views/shelf.py b/bookwyrm/views/shelf.py index 99e22fa95..538a8e343 100644 --- a/bookwyrm/views/shelf.py +++ b/bookwyrm/views/shelf.py @@ -62,6 +62,7 @@ class Shelf(View): user=user, rating__isnull=False, book__id=OuterRef("id"), + deleted=False, ).order_by("-published_date") if not is_self: From 6e9c9e839c04549f261f7c1524ee788070019564 Mon Sep 17 00:00:00 2001 From: Joachim Date: Sun, 23 May 2021 20:25:42 +0200 Subject: [PATCH 4/5] Fix date of death display --- bookwyrm/templates/author/author.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/templates/author/author.html b/bookwyrm/templates/author/author.html index 67f8792c9..aa99cbe27 100644 --- a/bookwyrm/templates/author/author.html +++ b/bookwyrm/templates/author/author.html @@ -39,7 +39,7 @@
{{ author.born|naturalday }}
{% endif %} - {% if author.aliases %} + {% if author.died %}
{% trans "Died:" %}
{{ author.died|naturalday }}
From f058aa8f1d4ca28b86d08d539232ab609770ed4f Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 24 May 2021 06:54:43 -0700 Subject: [PATCH 5/5] Uses correct filter for book title --- bookwyrm/templates/book/book.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/templates/book/book.html b/bookwyrm/templates/book/book.html index df76d8e11..af2230200 100644 --- a/bookwyrm/templates/book/book.html +++ b/bookwyrm/templates/book/book.html @@ -1,7 +1,7 @@ {% extends 'layout.html' %} {% load i18n %}{% load bookwyrm_tags %}{% load humanize %}{% load utilities %} -{% block title %}{{ book|title }}{% endblock %} +{% block title %}{{ book|book_title }}{% endblock %} {% block content %} {% with user_authenticated=request.user.is_authenticated can_edit_book=perms.bookwyrm.edit_book %}