Consistent null states and page titles in user profile views

This commit is contained in:
Mouse Reeve 2023-08-06 15:36:56 -07:00
parent 9d69f2fb3e
commit 66250e0dd8
7 changed files with 27 additions and 6 deletions

View file

@ -47,4 +47,7 @@
</div>
</div>
{% endfor %}
{% if not lists or not lists.exists %}
<p class="column"><em>{% trans "No lists found." %}</em></p>
{% endif %}
</div>

View file

@ -43,7 +43,6 @@
</nav>
{% endif %}
{% if lists %}
<section class="block">
{% include 'lists/list_items.html' with lists=lists %}
</section>
@ -51,7 +50,6 @@
<div>
{% include 'snippets/pagination.html' with page=lists path=path %}
</div>
{% endif %}
{% endblock %}

View file

@ -1,6 +1,10 @@
{% extends 'user/layout.html' %}
{% load i18n %}
{% load utilities %}
{% load i18n %}
{% block title %}
{% trans "Reading Goal" %} - {{ user|username }}
{% endblock %}
{% block header %}
<div class="columns is-mobile">

View file

@ -1,6 +1,11 @@
{% extends 'user/layout.html' %}
{% load utilities %}
{% load i18n %}
{% block title %}
{% trans "Groups" %} - {{ user|username }}
{% endblock %}
{% block header %}
<div class="columns is-mobile">
<div class="column">
@ -30,6 +35,10 @@
</div>
{% include 'groups/user_groups.html' with memberships=memberships %}
{% if not memberships or not memberships.exists %}
<p><em>{% trans "No groups found." %}</em></p>
{% endif %}
</section>
<div>
{% include 'snippets/pagination.html' with page=user.memberships path=path %}

View file

@ -1,6 +1,11 @@
{% extends 'user/layout.html' %}
{% load utilities %}
{% load i18n %}
{% block title %}
{% trans "Lists" %} - {{ user|username }}
{% endblock %}
{% block header %}
<div class="columns is-mobile">
<div class="column">

View file

@ -2,7 +2,9 @@
{% load i18n %}
{% load utilities %}
{% block title %}{{ user.display_name }}{% endblock %}
{% block title %}
{% trans "Reviews and Comments" %} - {{ user|username }}
{% endblock %}
{% block header %}
<div class="columns is-mobile">
@ -21,7 +23,7 @@
{% endfor %}
{% if not activities %}
<div class="block">
<p>{% trans "No reviews or comments yet!" %}</p>
<p><em>{% trans "No reviews or comments yet!" %}</em></p>
</div>
{% endif %}

View file

@ -126,7 +126,7 @@
{% endfor %}
{% if not activities %}
<div class="block">
<p>{% trans "No activities yet!" %}</p>
<p><em>{% trans "No activities yet!" %}</em></p>
</div>
{% endif %}