+
+diff --git a/fedireads/templates/feed.html b/fedireads/templates/feed.html index 01f7acda4..475b966e7 100644 --- a/fedireads/templates/feed.html +++ b/fedireads/templates/feed.html @@ -14,7 +14,7 @@ {% endfor %} {% if shelf.size > shelf.books.count %} - See all {{ shelf.size }} + See all {{ shelf.size }} {% endif %} {% endfor %} diff --git a/fedireads/templates/shelf.html b/fedireads/templates/shelf.html new file mode 100644 index 000000000..afb6d52c1 --- /dev/null +++ b/fedireads/templates/shelf.html @@ -0,0 +1,10 @@ +{% extends 'layout.html' %} +{% block content %} + +
+ Cover + | ++ Title + | ++ Author + | ++ Published + | ++ Shelved + | ++ External links + | + {% if ratings %} ++ Rating + | + {% endif %} +
---|---|---|---|---|---|---|
+ {% include 'snippets/book_cover.html' with book=book %} + | ++ {{ book.data.title }} + | ++ {{ book.authors.first.data.name }} + | ++ {{ book.data.first_publish_date }} + | ++ {{ book.added_date | naturalday }} + | ++ OpenLibrary + | + {% if ratings %} ++ {{ ratings | dict_key:book.id | stars}} + | + {% endif %} +
This shelf is empty.
+{% endif %} + diff --git a/fedireads/templates/snippets/username.html b/fedireads/templates/snippets/username.html index ff270fa32..16505c86a 100644 --- a/fedireads/templates/snippets/username.html +++ b/fedireads/templates/snippets/username.html @@ -1,2 +1,2 @@ -{% if user.name %}{{ user.name }}{% elif user.localname %}{{ user.localname }}{% else %}{{ user.username }}{% endif %} - +{% load fr_display %} +{% if user.name %}{{ user.name }}{% else %}{{ user | username }}{% endif %} diff --git a/fedireads/templates/user.html b/fedireads/templates/user.html index ff3f06ba2..9f095e462 100644 --- a/fedireads/templates/user.html +++ b/fedireads/templates/user.html @@ -1,6 +1,4 @@ {% extends 'layout.html' %} -{% load humanize %} -{% load fr_display %} {% block content %}