mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 11:01:12 +00:00
Merge pull request #2946 from bookwyrm-social/followers-page-breadcrumbs
Adds breadcrumbs and better titles to followers/following pages
This commit is contained in:
commit
53c8085207
3 changed files with 39 additions and 0 deletions
|
@ -21,6 +21,8 @@
|
|||
{% endblock %}
|
||||
</header>
|
||||
|
||||
{% block breadcrumbs %}{% endblock %}
|
||||
|
||||
{# user bio #}
|
||||
<div class="block">
|
||||
<div class="columns">
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue