From 0e43cc4274fdf154b37a059143d09c7709614eb8 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sun, 6 Aug 2023 15:09:45 -0700 Subject: [PATCH] Adds breadcrumbs and better titles to followers/following pages --- bookwyrm/templates/user/layout.html | 2 ++ .../user/relationships/followers.html | 19 +++++++++++++++++++ .../user/relationships/following.html | 18 ++++++++++++++++++ 3 files changed, 39 insertions(+) diff --git a/bookwyrm/templates/user/layout.html b/bookwyrm/templates/user/layout.html index dfc7efc9b..4c7031ba5 100755 --- a/bookwyrm/templates/user/layout.html +++ b/bookwyrm/templates/user/layout.html @@ -21,6 +21,8 @@ {% endblock %} +{% block breadcrumbs %}{% endblock %} + {# user bio #}
diff --git a/bookwyrm/templates/user/relationships/followers.html b/bookwyrm/templates/user/relationships/followers.html index c7d6833b7..267f55706 100644 --- a/bookwyrm/templates/user/relationships/followers.html +++ b/bookwyrm/templates/user/relationships/followers.html @@ -1,12 +1,31 @@ {% extends 'user/relationships/layout.html' %} +{% load utilities %} {% load i18n %} +{% block title %} + {% trans "Followers" %} - {{ user|username }} +{% endblock %} + {% block header %}

{% trans "Followers" %}

{% endblock %} +{% block breadcrumbs %} + +{% endblock %} + + {% block nullstate %}
{% blocktrans with username=user.display_name %}{{ username }} has no followers{% endblocktrans %} diff --git a/bookwyrm/templates/user/relationships/following.html b/bookwyrm/templates/user/relationships/following.html index 3952d045f..603311232 100644 --- a/bookwyrm/templates/user/relationships/following.html +++ b/bookwyrm/templates/user/relationships/following.html @@ -1,12 +1,30 @@ {% extends 'user/relationships/layout.html' %} +{% load utilities %} {% load i18n %} +{% block title %} + {% trans "Following" %} - {{ user|username }} +{% endblock %} + {% block header %}

{% trans "Following" %}

{% endblock %} +{% block breadcrumbs %} + +{% endblock %} + {% block nullstate %}
{% blocktrans with username=user.display_name %}{{ username }} isn't following any users{% endblocktrans %}