Merge pull request #2946 from bookwyrm-social/followers-page-breadcrumbs

Adds breadcrumbs and better titles to followers/following pages
This commit is contained in:
Mouse Reeve 2023-08-06 19:13:35 -07:00 committed by GitHub
commit 53c8085207
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 0 deletions

View file

@ -21,6 +21,8 @@
{% endblock %}
</header>
{% block breadcrumbs %}{% endblock %}
{# user bio #}
<div class="block">
<div class="columns">

View file

@ -1,12 +1,31 @@
{% extends 'user/relationships/layout.html' %}
{% load utilities %}
{% load i18n %}
{% block title %}
{% trans "Followers" %} - {{ user|username }}
{% endblock %}
{% block header %}
<h1 class="title">
{% trans "Followers" %}
</h1>
{% endblock %}
{% block breadcrumbs %}
<nav class="breadcrumb subtitle" aria-label="breadcrumbs">
<ul>
<li><a href="{% url 'user-feed' user|username %}">{% trans "User profile" %}</a></li>
<li class="is-active">
<a href="#" aria-current="page">
{% trans "Followers" %}
</a>
</li>
</ul>
</nav>
{% endblock %}
{% block nullstate %}
<div>
<em>{% blocktrans with username=user.display_name %}{{ username }} has no followers{% endblocktrans %}</em>

View file

@ -1,12 +1,30 @@
{% extends 'user/relationships/layout.html' %}
{% load utilities %}
{% load i18n %}
{% block title %}
{% trans "Following" %} - {{ user|username }}
{% endblock %}
{% block header %}
<h1 class="title">
{% trans "Following" %}
</h1>
{% endblock %}
{% block breadcrumbs %}
<nav class="breadcrumb subtitle" aria-label="breadcrumbs">
<ul>
<li><a href="{% url 'user-feed' user|username %}">{% trans "User profile" %}</a></li>
<li class="is-active">
<a href="#" aria-current="page">
{% trans "Following" %}
</a>
</li>
</ul>
</nav>
{% endblock %}
{% block nullstate %}
<div>
<em>{% blocktrans with username=user.display_name %}{{ username }} isn't following any users{% endblocktrans %}</em>