Fixes display of ratings

This commit is contained in:
Mouse Reeve 2021-03-07 07:56:33 -08:00
parent b895059f03
commit dfecdca6f9
3 changed files with 4 additions and 6 deletions

View file

@ -254,8 +254,8 @@
<div>
{% include 'snippets/username.html' with user=rating.user %}
</div>
<div class="field is-grouped mb-0">
<div>{% trans "rated it" %}</div>
<div class="is-flex">
<p class="mr-1">{% trans "rated it" %}</p>
{% include 'snippets/stars.html' with rating=rating.rating %}
</div>
<div>

View file

@ -79,7 +79,7 @@
aria-controls="navbar-dropdown"
>
{% include 'snippets/avatar.html' with user=request.user %}
{% include 'snippets/username.html' with user=request.user anchor=false %}
<span class="ml-2">{% include 'snippets/username.html' with user=request.user anchor=false %}</span>
</a>
<ul class="navbar-dropdown" id="navbar-dropdown">
<li>

View file

@ -1,9 +1,7 @@
{% spaceless %}
{% load bookwyrm_tags %}
<{% if anchor %}a href="{{ user.local_path }}"{% else %}span{% endif %}
class="user ml-1"
>
<{% if anchor %}a href="{{ user.local_path }}"{% else %}span{% endif %}>
{{ user.display_name }}
</a>