From 89de03bffe349e89c1d8caa54f2c88bcc82d180d Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 11 Feb 2022 14:58:40 -0500 Subject: [PATCH] Adds breadcrumbs --- .../templates/book/file_links/edit_links.html | 24 +++++++-------- .../settings/announcements/announcement.html | 17 +++++++++-- .../announcements/edit_announcement.html | 30 +++++++++++++++---- bookwyrm/templates/settings/layout.html | 2 ++ 4 files changed, 53 insertions(+), 20 deletions(-) diff --git a/bookwyrm/templates/book/file_links/edit_links.html b/bookwyrm/templates/book/file_links/edit_links.html index 39d3b998..9048ce7a 100644 --- a/bookwyrm/templates/book/file_links/edit_links.html +++ b/bookwyrm/templates/book/file_links/edit_links.html @@ -6,24 +6,24 @@ {% block content %} -
+

{% blocktrans with title=book|book_title %} Links for "{{ title }}" {% endblocktrans %}

-
- + +
diff --git a/bookwyrm/templates/settings/announcements/announcement.html b/bookwyrm/templates/settings/announcements/announcement.html index 09501382..03f012b4 100644 --- a/bookwyrm/templates/settings/announcements/announcement.html +++ b/bookwyrm/templates/settings/announcements/announcement.html @@ -6,7 +6,6 @@ {% block header %} {% trans "Announcement" %} -{% trans "Back to list" %} {% endblock %} {% block edit-button %} @@ -14,7 +13,7 @@
@@ -27,8 +26,20 @@
{% endblock %} -{% block panel %} +{% block breadcrumbs %} + +{% endblock %} +{% block panel %}
{% trans "Visible:" %}
diff --git a/bookwyrm/templates/settings/announcements/edit_announcement.html b/bookwyrm/templates/settings/announcements/edit_announcement.html index ef10c2a0..372d6973 100644 --- a/bookwyrm/templates/settings/announcements/edit_announcement.html +++ b/bookwyrm/templates/settings/announcements/edit_announcement.html @@ -2,11 +2,31 @@ {% load i18n %} {% block header %} -{% if announcement %} -{% trans "Edit Announcement" %} -{% else %} -{% trans "Create Announcement" %} -{% endif %} + {% if announcement %} + {% trans "Edit Announcement" %} + {% else %} + {% trans "Create Announcement" %} + {% endif %} +{% endblock %} + +{% block breadcrumbs %} + {% endblock %} {% block panel %} diff --git a/bookwyrm/templates/settings/layout.html b/bookwyrm/templates/settings/layout.html index 1addc8db..a74e111c 100644 --- a/bookwyrm/templates/settings/layout.html +++ b/bookwyrm/templates/settings/layout.html @@ -9,6 +9,7 @@

{% block header %}{% endblock %}

+ {% block breadcrumbs %}{% endblock %}
{% block edit-button %}{% endblock %} @@ -16,6 +17,7 @@
+