diff --git a/fedireads/models/status.py b/fedireads/models/status.py index 4e3daf045..809c08f3f 100644 --- a/fedireads/models/status.py +++ b/fedireads/models/status.py @@ -7,6 +7,8 @@ import re from fedireads.utils.models import FedireadsModel +# TODO: quote, comment, poll, recommendation, content warning, image + class Status(FedireadsModel): ''' any post, like a reply to a review, etc ''' diff --git a/fedireads/static/format.css b/fedireads/static/format.css index a30c5181e..94e01dbd1 100644 --- a/fedireads/static/format.css +++ b/fedireads/static/format.css @@ -87,11 +87,11 @@ h2 { margin-right: 0; } -#feed-tabs { +.tabs { display: flex; flex-direction: row; } -.active { +.tab.active { background-color: #FF1654; } diff --git a/fedireads/templates/book.html b/fedireads/templates/book.html index 110a7f841..dbfe7e338 100644 --- a/fedireads/templates/book.html +++ b/fedireads/templates/book.html @@ -1,14 +1,15 @@ {% extends 'layout.html' %} {% load fr_display %} {% block content %} -
+ + +
+
+

{{ book.data.title }} by + {% include 'snippets/authors.html' with book=book %}

+
+ {% include 'snippets/book_cover.html' with book=book size=large %} +

{{ active_tab }} rating: {{ rating | stars }}

+ {% if description %} +
{{ book.data.description | description }}
+ {% endif %} + {% for review in user_reviews %} + {% include 'snippets/review.html' with review=review %} + {% endfor %} +
+
+ {% for tag in tags %} + {% include 'snippets/tag.html' with tag=tag user=request.user user_tags=user_tag_names %} + {% endfor %} +
+
+ +
+
+ + {% include 'snippets/tabs.html' with tabs=feed_tabs active_tab=active_tab path=path %}

Reviews

{% if not reviews %} @@ -29,13 +57,9 @@ {{ review_form.as_p }} +

Average rating: {{ rating | stars }}

{% for review in reviews %} -
-

{{ review.name }} - {{ review.rating | stars }} stars, by {% include 'snippets/username.html' with user=review.user %} -

-
{{ review.content }}
-
+ {% include 'snippets/review.html' with review=review %} {% endfor %}
diff --git a/fedireads/templates/feed.html b/fedireads/templates/feed.html index f0edc8210..a0d952af4 100644 --- a/fedireads/templates/feed.html +++ b/fedireads/templates/feed.html @@ -1,8 +1,8 @@ {% extends 'layout.html' %} {% load fr_display %} {% block content %} -