mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-10-31 22:19:00 +00:00
Consistent null states and page titles in user profile views
This commit is contained in:
parent
9d69f2fb3e
commit
66250e0dd8
7 changed files with 27 additions and 6 deletions
|
@ -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>
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue