From 3eeeb78bd7b73fa289821f1a0e28901605e07a66 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 28 Sep 2020 18:25:05 -0700 Subject: [PATCH] Fixes UI for statuses --- bookwyrm/models/status.py | 2 +- bookwyrm/static/css/format.css | 2 +- bookwyrm/templates/feed.html | 4 +-- bookwyrm/templates/snippets/book_titleby.html | 4 +-- bookwyrm/templates/snippets/interaction.html | 19 +++++++---- bookwyrm/templates/snippets/status.html | 33 ++++++++++--------- .../templates/snippets/status_content.html | 30 ++++++++--------- .../templates/snippets/status_header.html | 22 ++++++------- 8 files changed, 61 insertions(+), 55 deletions(-) diff --git a/bookwyrm/models/status.py b/bookwyrm/models/status.py index eb79e43d..f7d924b9 100644 --- a/bookwyrm/models/status.py +++ b/bookwyrm/models/status.py @@ -214,7 +214,7 @@ class Boost(Status): ActivityMapping('object', 'boosted_status'), ] - activity_serializer = activitypub.Like + activity_serializer = activitypub.Boost # This constraint can't work as it would cross tables. # class Meta: diff --git a/bookwyrm/static/css/format.css b/bookwyrm/static/css/format.css index 65c5f6f2..617d9391 100644 --- a/bookwyrm/static/css/format.css +++ b/bookwyrm/static/css/format.css @@ -31,7 +31,7 @@ input.toggle-control { display: none; } -.toggle-content.hidden { +.hidden { display: none; } diff --git a/bookwyrm/templates/feed.html b/bookwyrm/templates/feed.html index 1cd96cbe..2afef2f3 100644 --- a/bookwyrm/templates/feed.html +++ b/bookwyrm/templates/feed.html @@ -5,8 +5,8 @@
{% for activity in activities %} -
- {% include 'snippets/status.html' with status=activity %} +
+ {% include 'snippets/status.html' with status=activity %}
{% endfor %} diff --git a/bookwyrm/templates/snippets/book_titleby.html b/bookwyrm/templates/snippets/book_titleby.html index 543c64c5..d8b84646 100644 --- a/bookwyrm/templates/snippets/book_titleby.html +++ b/bookwyrm/templates/snippets/book_titleby.html @@ -1,8 +1,8 @@ - + {{ book.title }} {% if book.authors %} - + by {% include 'snippets/authors.html' with book=book %} {% endif %} diff --git a/bookwyrm/templates/snippets/interaction.html b/bookwyrm/templates/snippets/interaction.html index ca546ccf..7f0033ed 100644 --- a/bookwyrm/templates/snippets/interaction.html +++ b/bookwyrm/templates/snippets/interaction.html @@ -1,20 +1,22 @@ {% load fr_display %} -