From 90e1a949623ead173c0952f802d7b5c5487251b1 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Fri, 5 Oct 2018 15:35:14 +0200 Subject: Make application name configurable * Added app_name configuration option * Extended `EngelsystemMailer` to prepend the application name to all mails Closes #426 --- resources/views/emails/mail.twig | 4 ++-- resources/views/layouts/app.twig | 2 +- resources/views/layouts/maintenance.html | 6 +++--- resources/views/layouts/parts/navbar.twig | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'resources/views') diff --git a/resources/views/emails/mail.twig b/resources/views/emails/mail.twig index f5ac5860..c99fc104 100644 --- a/resources/views/emails/mail.twig +++ b/resources/views/emails/mail.twig @@ -1,6 +1,6 @@ {{ __('Hi %s,', [user]) }} -{{ __('here is a message for you from the engelsystem:') }} +{{ __('here is a message for you from the %s:', [config('app_name')]) }} {{ message|raw }} -{{ __('This email is autogenerated and has not been signed. You got this email because you are registered in the engelsystem.') }} +{{ __('This email is autogenerated and has not been signed. You got this email because you are registered in the %s.', [config('app_name')]) }} diff --git a/resources/views/layouts/app.twig b/resources/views/layouts/app.twig index d8f8d10f..ed0d96af 100644 --- a/resources/views/layouts/app.twig +++ b/resources/views/layouts/app.twig @@ -3,7 +3,7 @@ {% block head %} - {% block title %}{{ title }}{% endblock %} - Engelsystem + {% block title %}{{ title }}{% endblock %} - {{ config('app_name') }} diff --git a/resources/views/layouts/maintenance.html b/resources/views/layouts/maintenance.html index f7ab5772..85b95168 100644 --- a/resources/views/layouts/maintenance.html +++ b/resources/views/layouts/maintenance.html @@ -1,7 +1,7 @@ - Maintenance - Engelsystem + Maintenance - %APP_NAME% @@ -19,7 +19,7 @@ - ENGELSYSTEM + %APP_NAME%