From 89849cf0341e8049b0e25b40bb1870c3964cde3f Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Sun, 17 Jul 2022 18:53:56 -0700 Subject: [PATCH] Add site title to all pages Signed-off-by: Alek Ratzloff --- board/templates/board/action_success.html | 2 +- board/templates/board/ban_form.html | 2 + board/templates/board/ban_success.html | 2 +- board/templates/board/banned.html | 9 +-- board/templates/board/board_detail.html | 4 +- board/templates/board/news_list.html | 4 +- .../templates/board/post_confirm_delete.html | 4 ++ board/templates/board/post_create.html | 4 ++ board/templates/board/post_detail.html | 8 ++- board/templates/board/post_modify.html | 4 ++ board/templates/board/post_success.html | 4 ++ board/templates/board/post_wipe.html | 4 ++ board/templates/board/reply_create.html | 4 ++ board/templates/board/report_form.html | 2 +- board/templates/board/rules.html | 57 ++++++++++++++++--- 15 files changed, 87 insertions(+), 27 deletions(-) diff --git a/board/templates/board/action_success.html b/board/templates/board/action_success.html index 9c950ba..41163ec 100644 --- a/board/templates/board/action_success.html +++ b/board/templates/board/action_success.html @@ -1,7 +1,7 @@ {% extends "board/base.html" %} {% load i18n static %} {# Title #} -{% block title %}{% translate "Action success" %}{% endblock %} +{% block title %}{% translate "Action success" %} {{block.super}}{% endblock %} {# Body #} {% block content %}
diff --git a/board/templates/board/ban_form.html b/board/templates/board/ban_form.html index ac723af..91a90b4 100644 --- a/board/templates/board/ban_form.html +++ b/board/templates/board/ban_form.html @@ -1,6 +1,8 @@ {% extends "board/base.html" %} {% load i18n %} +{% block title %}Create new ban for {{ post.id }} {{ block.super }}{% endblock %} + {% block content %}
{% csrf_token %} diff --git a/board/templates/board/ban_success.html b/board/templates/board/ban_success.html index 8d14073..1729a2f 100644 --- a/board/templates/board/ban_success.html +++ b/board/templates/board/ban_success.html @@ -1,7 +1,7 @@ {% extends "board/base.html" %} {% load i18n static %} {# Title #} -{% block title %}{% translate "Ban success" %}{% endblock %} +{% block title %}{% translate "Ban success" %} {{block.super}}{% endblock %} {# Body #} {% block content %}
diff --git a/board/templates/board/banned.html b/board/templates/board/banned.html index dcb2cf4..4ca597e 100644 --- a/board/templates/board/banned.html +++ b/board/templates/board/banned.html @@ -2,14 +2,11 @@ {% block title %} {% if bans %} - {% with title="Banned" %} - {{ block.super }} - {% endwith %} + Banned {% else %} - {% with title="Not banned" %} - {{ block.super }} - {% endwith %} + Not banned {% endif %} + {{block.super}} {% endblock title %} {% block extrastyle %} diff --git a/board/templates/board/board_detail.html b/board/templates/board/board_detail.html index 6784b6b..4b7d5b5 100644 --- a/board/templates/board/board_detail.html +++ b/board/templates/board/board_detail.html @@ -3,9 +3,7 @@ {% load i18n %} {% block title %} - {% with title=board.url %} - {{ block.super }} - {% endwith %} + /{{board.url}}/ - {{board.name}} {{block.super}} {% endblock title %} {% block content %} diff --git a/board/templates/board/news_list.html b/board/templates/board/news_list.html index 3825acb..67179a4 100644 --- a/board/templates/board/news_list.html +++ b/board/templates/board/news_list.html @@ -1,9 +1,7 @@ {% extends "board/base.html" %} {% load i18n %} -{% block title %} -News -{% endblock title %} +{% block title %}News {{block.super}}{% endblock title %} {% block content %} diff --git a/board/templates/board/post_confirm_delete.html b/board/templates/board/post_confirm_delete.html index d43658e..15f3c5e 100644 --- a/board/templates/board/post_confirm_delete.html +++ b/board/templates/board/post_confirm_delete.html @@ -1,6 +1,10 @@ {% extends "board/base.html" %} {% load i18n %} +{% block title %} +Deleting post {{post.id}} {{block.super}} +{% endblock title %} + {% block content %} {% csrf_token %} diff --git a/board/templates/board/post_create.html b/board/templates/board/post_create.html index 76a3b9f..ef26953 100644 --- a/board/templates/board/post_create.html +++ b/board/templates/board/post_create.html @@ -1,6 +1,10 @@ {% extends "board/base.html" %} {% load i18n post_body %} +{% block title %} +Creating new post on /{{board.url}}/ {{block.super}} +{% endblock %} + {% block extrastyle %}