diff --git a/bookwyrm/templates/author.html b/bookwyrm/templates/author.html index 3f22e09b9..cb05b9b71 100644 --- a/bookwyrm/templates/author.html +++ b/bookwyrm/templates/author.html @@ -1,8 +1,8 @@ {% extends 'layout.html' %} {% load fr_display %} {% block content %} -
-

{{ author.display_name }}

+
+

{{ author.display_name }}

{% if author.bio %}

@@ -11,18 +11,9 @@ {% endif %}

-
-

Books by {{ author.display_name }}

-
- {% for book in books %} -
- - {% include 'snippets/book_cover.html' with book=book %} - - {% include 'snippets/shelve_button.html' with book=book %} -
- {% endfor %} -
+
+

Books by {{ author.display_name }}

+ {% include 'snippets/book_tiles.html' with books=books %}
{% endblock %} diff --git a/bookwyrm/templates/snippets/book_tiles.html b/bookwyrm/templates/snippets/book_tiles.html index bb1166257..4fc7df310 100644 --- a/bookwyrm/templates/snippets/book_tiles.html +++ b/bookwyrm/templates/snippets/book_tiles.html @@ -1,22 +1,18 @@ -
-
-
- {% for book in books %} - {% if forloop.counter0|divisibleby:"5" %} -
-
+
+ {% for book in books %} + {% if forloop.counter0|divisibleby:"4" %} +
+
{% endif %} -
- -
- {% endfor %} +
+
+ + {% include 'snippets/book_cover.html' with book=book %} + + {% include 'snippets/rate_action.html' with user=request.user book=book %} + {% include 'snippets/shelve_button.html' with book=book %}
+ {% endfor %}