rename -> site_title

A foolish consistency is the hobgoblin of little minds
This commit is contained in:
Klaas van Schelven
2024-01-16 23:07:10 +01:00
parent bfd555144a
commit 9ac74ffe17
6 changed files with 7 additions and 7 deletions

View File

@@ -38,7 +38,7 @@ def _send_alert(issue_id, subject_prefix, alert_article, alert_reason):
base_template_name="alerts/issue_alert",
recipient_list=[membership.user.email],
context={
"site_name": settings.SITE_NAME,
"site_title": settings.SITE_TITLE,
"base_url": settings.BASE_URL + "/",
"issue_title": issue.title(),
"project_name": issue.project.name,

View File

@@ -462,7 +462,7 @@
<tr>
<td class="email-masthead" style="word-break: break-word; font-family: &quot;Nunito Sans&quot;, Helvetica, Arial, sans-serif; font-size: 16px; text-align: center; padding: 25px 0;" align="center">
<a href="{{ base_url }}" class="f-fallback email-masthead_name" style="color: #A8AAAF; font-size: 16px; font-weight: bold; text-decoration: none; text-shadow: 0 1px 0 white;">
{{ site_name }}
{{ site_title }}
</a>
</td>
</tr>

View File

@@ -3,7 +3,7 @@
The issue title is:
{{ issue_title|truncatechars:100 }}
View it on {{ site_name }}:
View it on {{ site_title }}:
{{ issue_url }}
Manage notification settings:

View File

@@ -3,7 +3,7 @@ from django.conf import settings
DEBUG_CONTEXTS = {
"issue_alert": {
"site_name": settings.SITE_NAME,
"site_title": settings.SITE_TITLE,
"base_url": settings.BASE_URL + "/",
"issue_title": "AttributeError: 'NoneType' object has no attribute 'data'",
"project_name": "My first project",

View File

@@ -164,7 +164,7 @@ if SENTRY_DSN is not None:
)
BASE_URL = "http://bugsink:9000" # no trailing slash
SITE_NAME = "Bugsink" # you can customize this as e.g. "My Bugsink" or "Bugsink for My Company"
SITE_TITLE = "Bugsink" # you can customize this as e.g. "My Bugsink" or "Bugsink for My Company"
CELERY_BROKER_URL = 'amqp://bugsink:bugsink@localhost/'

View File

@@ -7,8 +7,8 @@ from .views import home, trigger_error, favicon
from alerts.views import debug_email
admin.site.site_header = settings.SITE_NAME
admin.site.site_title = settings.SITE_NAME
admin.site.site_header = settings.SITE_TITLE
admin.site.site_title = settings.SITE_TITLE
admin.site.index_title = "Admin" # everyone calls this the "admin" anyway. Let's set the title accordingly.