Add site title to all pages

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-07-17 18:53:56 -07:00
parent 1da0e87c54
commit 89849cf034
15 changed files with 87 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
{% extends "board/base.html" %} {% extends "board/base.html" %}
{% load i18n static %} {% load i18n static %}
{# Title #} {# Title #}
{% block title %}{% translate "Action success" %}{% endblock %} {% block title %}{% translate "Action success" %} {{block.super}}{% endblock %}
{# Body #} {# Body #}
{% block content %} {% block content %}
<div class="row" id="message"> <div class="row" id="message">

View File

@@ -1,6 +1,8 @@
{% extends "board/base.html" %} {% extends "board/base.html" %}
{% load i18n %} {% load i18n %}
{% block title %}Create new ban for {{ post.id }} {{ block.super }}{% endblock %}
{% block content %} {% block content %}
<form id="form" action="{% url 'board:ban_create' url=board.url id=post.id %}" method="post" autocomplete="off"> <form id="form" action="{% url 'board:ban_create' url=board.url id=post.id %}" method="post" autocomplete="off">
{% csrf_token %} {% csrf_token %}

View File

@@ -1,7 +1,7 @@
{% extends "board/base.html" %} {% extends "board/base.html" %}
{% load i18n static %} {% load i18n static %}
{# Title #} {# Title #}
{% block title %}{% translate "Ban success" %}{% endblock %} {% block title %}{% translate "Ban success" %} {{block.super}}{% endblock %}
{# Body #} {# Body #}
{% block content %} {% block content %}
<div class="row" id="message"> <div class="row" id="message">

View File

@@ -2,14 +2,11 @@
{% block title %} {% block title %}
{% if bans %} {% if bans %}
{% with title="Banned" %} Banned
{{ block.super }}
{% endwith %}
{% else %} {% else %}
{% with title="Not banned" %} Not banned
{{ block.super }}
{% endwith %}
{% endif %} {% endif %}
{{block.super}}
{% endblock title %} {% endblock title %}
{% block extrastyle %} {% block extrastyle %}

View File

@@ -3,9 +3,7 @@
{% load i18n %} {% load i18n %}
{% block title %} {% block title %}
{% with title=board.url %} /{{board.url}}/ - {{board.name}} {{block.super}}
{{ block.super }}
{% endwith %}
{% endblock title %} {% endblock title %}
{% block content %} {% block content %}

View File

@@ -1,9 +1,7 @@
{% extends "board/base.html" %} {% extends "board/base.html" %}
{% load i18n %} {% load i18n %}
{% block title %} {% block title %}News {{block.super}}{% endblock title %}
News
{% endblock title %}
{% block content %} {% block content %}

View File

@@ -1,6 +1,10 @@
{% extends "board/base.html" %} {% extends "board/base.html" %}
{% load i18n %} {% load i18n %}
{% block title %}
Deleting post {{post.id}} {{block.super}}
{% endblock title %}
{% block content %} {% block content %}
<form id="form" method="post" action="{% url 'board:post_delete' post.id %}"> <form id="form" method="post" action="{% url 'board:post_delete' post.id %}">
{% csrf_token %} {% csrf_token %}

View File

@@ -1,6 +1,10 @@
{% extends "board/base.html" %} {% extends "board/base.html" %}
{% load i18n post_body %} {% load i18n post_body %}
{% block title %}
Creating new post on /{{board.url}}/ {{block.super}}
{% endblock %}
{% block extrastyle %} {% block extrastyle %}
<style> <style>
table { table {

View File

@@ -2,9 +2,11 @@
{% load i18n post_body static %} {% load i18n post_body static %}
{% block title %} {% block title %}
{% with title=board.url %} {% if post.subject %}
{{ block.super }} {{post.subject }} -
{% endwith %} {% endif %}
/{{board.url}}/ - {{board.name}}
{{block.super}}
{% endblock title %} {% endblock title %}
{% block content %} {% block content %}

View File

@@ -1,6 +1,10 @@
{% extends "board/base.html" %} {% extends "board/base.html" %}
{% load i18n %} {% load i18n %}
{% block title %}
Modifying post {{post.id}} {{block.super}}
{% endblock title %}
{% block content %} {% block content %}
<form method="post" action="{% url 'board:post_modify' post.id %}"> <form method="post" action="{% url 'board:post_modify' post.id %}">
{% csrf_token %} {% csrf_token %}

View File

@@ -1,6 +1,10 @@
{% extends "board/base.html" %} {% extends "board/base.html" %}
{% load i18n %} {% load i18n %}
{% block title %}
Post created {{block.super}}
{% endblock title %}
{% block content %} {% block content %}
{% blocktranslate %} {% blocktranslate %}
Post created. Closing window in {{window_timeout}} second(s). Post created. Closing window in {{window_timeout}} second(s).

View File

@@ -1,6 +1,10 @@
{% extends "board/base.html" %} {% extends "board/base.html" %}
{% load i18n %} {% load i18n %}
{% block title %}
Wiping posts {{block.super}}
{% endblock title %}
{% block content %} {% block content %}
{% blocktranslate %}This will delete {{all_posts_count}} posts.{% endblocktranslate %} {% blocktranslate %}This will delete {{all_posts_count}} posts.{% endblocktranslate %}
<form method="post" {# action="{% url 'board:post_wipe_success' %}" #}> <form method="post" {# action="{% url 'board:post_wipe_success' %}" #}>

View File

@@ -1,6 +1,10 @@
{% extends "board/base.html" %} {% extends "board/base.html" %}
{% load i18n post_body %} {% load i18n post_body %}
{% block title %}
Replying to {{post.id}} {{block.super}}
{% endblock title %}
{% block extrastyle %} {% block extrastyle %}
<style> <style>
table { table {

View File

@@ -1,7 +1,7 @@
{% extends "board/base.html" %} {% extends "board/base.html" %}
{% load i18n %} {% load i18n %}
{# Title #} {# Title #}
{% block title %}{% blocktranslate %}Reporting post {{post.id}}{% endblocktranslate %}{% endblock %} {% block title %}{% blocktranslate %}Reporting post {{post.id}}{% endblocktranslate %}{{block.super}}{% endblock title %}
{# Body #} {# Body #}
{% block content %} {% block content %}
<div class="row"> <div class="row">

View File

@@ -1,6 +1,8 @@
{% extends "board/base.html" %} {% extends "board/base.html" %}
{% load i18n %} {% load i18n %}
{% block title %}Rules {{block.super}}{% endblock title %}
{% block content %} {% block content %}
<div class="row"> <div class="row">
<div class="column">&nbsp;</div> <div class="column">&nbsp;</div>
@@ -11,16 +13,53 @@
<div class="row"> <div class="row">
<div class="column">&nbsp;</div> <div class="column">&nbsp;</div>
<div class="column"> <div class="column">
<div class="row"><h2>Boards</h2></div> <p>
{% for board in boards %} The rules exist to create a place for everyone to post. You are welcome
<div class="row"> to have fun, but your fun should not come at the expense of others.
<a href="{% url 'board:board_detail' url=board.url %}">/{{board.url}}/ - {{board.name}}</a> Violations of any of these rules may result in a ban.
</div> </p>
{% endfor %}
<div class="row"><h2>Other links</h2></div> <p>
<div class="row"><a href="{% url 'board:news_list' %}">News</a></div> Please remember: most bans are not permanent and last only a few days.
<div class="row"><a href="{% url 'board:rules_list' %}">News</a></div> If you receive a ban, it is not the end of the world. Log off and take a
break.
</p>
<h3>
Global rules
</h3>
<p>
These rules apply to all boards unless noted otherwise.
</p>
<p>
<ol>
<li>
Do not post anything that violates United States law.
</li>
<li>
{{settings.SITE_NAME}} is for users aged 18 and older only.
Do not use this website if you are under the age of 18.
</li>
<li>
Do not post anyone's personal information ("dox") or call
for invasions ("raids"). Personal information includes, but
is not limited to:
<ul>
<li>Phone numbers</li>
<li>Addresses</li>
<li>Email addresses</li>
<li>Login information, passwords</li>
<li>Other private information</li>
</ul>
</li>
<li>Do not post pornography.</li>
<li>Do not use posts to advertise.</li>
<li>Do not complain about moderation practices.</li>
<li>Do not impersonate moderators or other staff.</li>
</ol>
</p>
</div> </div>
<div class="column">&nbsp;</div> <div class="column">&nbsp;</div>
</div> </div>