Adds breadcrumbs and better titles to followers/following pages

This commit is contained in:
Mouse Reeve 2023-08-06 15:09:45 -07:00
parent 9d69f2fb3e
commit 0e43cc4274
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>