mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
rename -> site_title
A foolish consistency is the hobgoblin of little minds
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -462,7 +462,7 @@
|
||||
<tr>
|
||||
<td class="email-masthead" style="word-break: break-word; font-family: "Nunito Sans", 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>
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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/'
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user