diff --git a/fedireads/static/format.css b/fedireads/static/format.css index b0359799d..bc6416ec6 100644 --- a/fedireads/static/format.css +++ b/fedireads/static/format.css @@ -333,9 +333,6 @@ button .icon { margin: 0; color: black; } -.rate-stars form > .icon:before { - content: '\e9d7'; -} .rate-stars:hover .icon:before { content: '\e9d9'; } diff --git a/fedireads/templates/snippets/shelf.html b/fedireads/templates/snippets/shelf.html index 2171efb22..e6044cb62 100644 --- a/fedireads/templates/snippets/shelf.html +++ b/fedireads/templates/snippets/shelf.html @@ -49,7 +49,7 @@ {% if ratings %} - {{ ratings | dict_key:book.id | stars}} + {% include 'snippets/stars.html' with rating=ratings|dict_key:book.id %} {% endif %} diff --git a/fedireads/templates/snippets/stars.html b/fedireads/templates/snippets/stars.html index 118ced607..c658d3ff5 100644 --- a/fedireads/templates/snippets/stars.html +++ b/fedireads/templates/snippets/stars.html @@ -1,7 +1,7 @@ Leave a rating
{% for i in '12345'|make_list %} - + {{ forloop.counter }} star{{ forloop.counter | pluralize }} {% endfor %} diff --git a/fedireads/templates/snippets/status_content.html b/fedireads/templates/snippets/status_content.html index 4d4a1c613..f31f89d57 100644 --- a/fedireads/templates/snippets/status_content.html +++ b/fedireads/templates/snippets/status_content.html @@ -34,7 +34,7 @@ {% if status.status_type == 'Review' %}

{{ status.name }}
- {{ status.rating | stars }} + {% include 'snippets/stars.html' with rating=status.rating %}

{% endif %} diff --git a/fedireads/templates/snippets/status_header.html b/fedireads/templates/snippets/status_header.html index c26650bcc..6efd0a574 100644 --- a/fedireads/templates/snippets/status_header.html +++ b/fedireads/templates/snippets/status_header.html @@ -8,9 +8,9 @@ {% elif status.status_type == 'Review' and not status.name and not status.content%} rated {{ status.book.title }} {% elif status.status_type == 'Review' %} - reviewed {{ status.book.title }} + reviewed {{ status.book.title }} {% elif status.status_type == 'Comment' %} - commented on {{ status.book.title }} + commented on {{ status.book.title }} {% elif status.status_type == 'Boost' %} boosted {% elif status.reply_parent %} diff --git a/fedireads/view_actions.py b/fedireads/view_actions.py index ae0957637..f505288d5 100644 --- a/fedireads/view_actions.py +++ b/fedireads/view_actions.py @@ -192,7 +192,6 @@ def rate(request): form = forms.RatingForm(request.POST) book_identifier = request.POST.get('book') # TODO: better failure behavior - import pdb;pdb.set_trace() if not form.is_valid(): return redirect('/book/%s' % book_identifier)