From 76ee5a679bcfb7a443bc69c782b870883dccd76d Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 25 Nov 2020 00:05:02 -0800 Subject: [PATCH 1/2] Fixed #8810 - email logo was not being used in emails --- .../views/vendor/mail/html/message.blade.php | 19 ++++++++++++++----- .../views/vendor/mail/html/themes/default.css | 6 ++++-- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/resources/views/vendor/mail/html/message.blade.php b/resources/views/vendor/mail/html/message.blade.php index 7c1e696e47..92191e886c 100644 --- a/resources/views/vendor/mail/html/message.blade.php +++ b/resources/views/vendor/mail/html/message.blade.php @@ -5,18 +5,27 @@ @if (isset($snipeSettings) && ($snipeSettings->show_images_in_email=='1' ) && ($snipeSettings::setupCompleted())) @if ($snipeSettings->brand == '3') -@if ($snipeSettings->logo!='') - + +@if ($snipeSettings->email_logo!='') + +@elseif ($snipeSettings->logo!='') + @endif {{ $snipeSettings->site_name }} +

@elseif ($snipeSettings->brand == '2') -@if ($snipeSettings->logo!='') - +@if ($snipeSettings->email_logo!='') + + +@elseif ($snipeSettings->logo!='') + @endif + @else {{ $snipeSettings->site_name }} @endif + @else Snipe-IT @endif @@ -41,7 +50,7 @@ Snipe-IT @if($snipeSettings::setupCompleted()) © {{ date('Y') }} {{ $snipeSettings->site_name }}. All rights reserved. @else -© {{ date('Y') }} Snipe-it. All rights reserved. +© {{ date('Y') }} Snipe-IT. All rights reserved. @endif @if ($snipeSettings->privacy_policy_link!='') diff --git a/resources/views/vendor/mail/html/themes/default.css b/resources/views/vendor/mail/html/themes/default.css index af392cf100..f3f86c4982 100644 --- a/resources/views/vendor/mail/html/themes/default.css +++ b/resources/views/vendor/mail/html/themes/default.css @@ -107,14 +107,16 @@ img { .header { padding: 25px 0; text-align: center; + vertical-align: middle; } .header a { - color: #bbbfc3; - font-size: 19px; + color: #2b2d30; + font-size: 25px; font-weight: bold; text-decoration: none; text-shadow: 0 1px 0 white; + vertical-align: middle; } /* Body */ From 6f99ce2b07b3e95c62e61150b882bec8b799346c Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 25 Nov 2020 00:45:46 -0800 Subject: [PATCH 2/2] Branding page UI improvements (image previews inline) --- .../partials/forms/edit/uploadLogo.blade.php | 34 +++++++++++++++---- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/resources/views/partials/forms/edit/uploadLogo.blade.php b/resources/views/partials/forms/edit/uploadLogo.blade.php index 0d77c776ca..101e392809 100644 --- a/resources/views/partials/forms/edit/uploadLogo.blade.php +++ b/resources/views/partials/forms/edit/uploadLogo.blade.php @@ -1,15 +1,35 @@
- +
+ {{ $logoLabel }} +
- @if ($setting->$logoVariable!='') + @if (($setting->$logoVariable!='') && (Storage::disk('public')->exists(e($snipeSettings->$logoVariable)))) +
-
- {{ Form::checkbox($logoClearVariable, '1', Request::old($logoClearVariable),array('class' => 'minimal')) }} Remove current {{ str_replace('_', ' ', $logoVariable) }} image -
+ + + +
+ @if ($logoVariable!='favicon') + + + + @else + + @endif + +
+
+ @else +
@endif -
+ +