mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 19:11:09 +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>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% if not lists or not lists.exists %}
|
||||||
|
<p class="column"><em>{% trans "No lists found." %}</em></p>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -43,7 +43,6 @@
|
||||||
</nav>
|
</nav>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if lists %}
|
|
||||||
<section class="block">
|
<section class="block">
|
||||||
{% include 'lists/list_items.html' with lists=lists %}
|
{% include 'lists/list_items.html' with lists=lists %}
|
||||||
</section>
|
</section>
|
||||||
|
@ -51,7 +50,6 @@
|
||||||
<div>
|
<div>
|
||||||
{% include 'snippets/pagination.html' with page=lists path=path %}
|
{% include 'snippets/pagination.html' with page=lists path=path %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
{% extends 'user/layout.html' %}
|
{% extends 'user/layout.html' %}
|
||||||
{% load i18n %}
|
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
|
{% block title %}
|
||||||
|
{% trans "Reading Goal" %} - {{ user|username }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<div class="columns is-mobile">
|
<div class="columns is-mobile">
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
{% extends 'user/layout.html' %}
|
{% extends 'user/layout.html' %}
|
||||||
|
{% load utilities %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
|
{% block title %}
|
||||||
|
{% trans "Groups" %} - {{ user|username }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<div class="columns is-mobile">
|
<div class="columns is-mobile">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
|
@ -30,6 +35,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% include 'groups/user_groups.html' with memberships=memberships %}
|
{% 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>
|
</section>
|
||||||
<div>
|
<div>
|
||||||
{% include 'snippets/pagination.html' with page=user.memberships path=path %}
|
{% include 'snippets/pagination.html' with page=user.memberships path=path %}
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
{% extends 'user/layout.html' %}
|
{% extends 'user/layout.html' %}
|
||||||
|
{% load utilities %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
|
{% block title %}
|
||||||
|
{% trans "Lists" %} - {{ user|username }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<div class="columns is-mobile">
|
<div class="columns is-mobile">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
|
|
||||||
{% block title %}{{ user.display_name }}{% endblock %}
|
{% block title %}
|
||||||
|
{% trans "Reviews and Comments" %} - {{ user|username }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<div class="columns is-mobile">
|
<div class="columns is-mobile">
|
||||||
|
@ -21,7 +23,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if not activities %}
|
{% if not activities %}
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<p>{% trans "No reviews or comments yet!" %}</p>
|
<p><em>{% trans "No reviews or comments yet!" %}</em></p>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if not activities %}
|
{% if not activities %}
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<p>{% trans "No activities yet!" %}</p>
|
<p><em>{% trans "No activities yet!" %}</em></p>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue