Fixes html on notifications page
This commit is contained in:
parent
26a1f75e91
commit
cded3e973d
5 changed files with 31 additions and 27 deletions
|
@ -3,6 +3,10 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
|
|
||||||
|
{% block primary_link %}{% spaceless %}
|
||||||
|
{% url 'user-followers' request.user.localname %}
|
||||||
|
{% endspaceless %}{% endblock %}
|
||||||
|
|
||||||
{% block icon %}
|
{% block icon %}
|
||||||
<span class="icon icon-local"></span>
|
<span class="icon icon-local"></span>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -27,7 +27,6 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="block content">
|
<div class="block content">
|
||||||
<p>
|
|
||||||
{% if related_user_count == 1 %}
|
{% if related_user_count == 1 %}
|
||||||
{% with user=related_users.first %}
|
{% with user=related_users.first %}
|
||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
|
@ -51,7 +50,6 @@
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if related_status %}
|
{% if related_status %}
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block primary_link %}{% spaceless %}
|
{% block primary_link %}{% spaceless %}
|
||||||
|
{% url 'settings-reports' %}
|
||||||
{% endspaceless %}{% endblock %}
|
{% endspaceless %}{% endblock %}
|
||||||
|
|
||||||
{% block icon %}
|
{% block icon %}
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<div id="barcode-status" class="block">
|
<div id="barcode-status" class="block">
|
||||||
<div class="grant-access is-hidden">
|
<div class="grant-access is-hidden">
|
||||||
<span class="icon icon-lock"></span>
|
<span class="icon icon-lock"></span>
|
||||||
<span class="is-size-5">{% trans "Requesting camera..." %}</span></br>
|
<span class="is-size-5">{% trans "Requesting camera..." %}</span><br/>
|
||||||
<span>{% trans "Grant access to the camera to scan a book's barcode." %}</span>
|
<span>{% trans "Grant access to the camera to scan a book's barcode." %}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="access-denied is-hidden">
|
<div class="access-denied is-hidden">
|
||||||
|
|
|
@ -18,10 +18,11 @@ class Notifications(View):
|
||||||
.order_by("-updated_date")
|
.order_by("-updated_date")
|
||||||
.select_related(
|
.select_related(
|
||||||
"related_status",
|
"related_status",
|
||||||
|
"related_status__reply_parent",
|
||||||
"related_group",
|
"related_group",
|
||||||
|
"related_import",
|
||||||
)
|
)
|
||||||
.prefetch_related(
|
.prefetch_related(
|
||||||
"related_import",
|
|
||||||
"related_reports",
|
"related_reports",
|
||||||
"related_users",
|
"related_users",
|
||||||
"related_list_items",
|
"related_list_items",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue