From 8f64da5bc7f9093b461950cfb998225a1201ef69 Mon Sep 17 00:00:00 2001
From: snipe
diff --git a/resources/views/vendor/mail/html/header.blade.php b/resources/views/vendor/mail/html/header.blade.php
index eefabab92..45ed4bd80 100644
--- a/resources/views/vendor/mail/html/header.blade.php
+++ b/resources/views/vendor/mail/html/header.blade.php
@@ -1,7 +1,22 @@
{{ Illuminate\Mail\Markdown::parse($slot) }}
+
+ @if ($snipeSettings->privacy_policy_link!='')
+ {{ trans('admin/settings/general.privacy_policy') }}
+ @endif
+
+
diff --git a/resources/views/vendor/mail/html/layout.blade.php b/resources/views/vendor/mail/html/layout.blade.php
index c7c629d4a..948afcee9 100644
--- a/resources/views/vendor/mail/html/layout.blade.php
+++ b/resources/views/vendor/mail/html/layout.blade.php
@@ -50,6 +50,7 @@
{{ $footer or '' }}
+
diff --git a/resources/views/vendor/mail/html/message.blade.php b/resources/views/vendor/mail/html/message.blade.php
index b69b4387f..5dfa2eb88 100644
--- a/resources/views/vendor/mail/html/message.blade.php
+++ b/resources/views/vendor/mail/html/message.blade.php
@@ -1,39 +1,39 @@
@component('mail::layout')
- {{-- Header --}}
- @slot('header')
- @component('mail::header', ['url' => config('app.url')])
- @if (($snipeSettings->show_images_in_email=='1' ) && ($snipeSettings::setupCompleted()))
+{{-- Header --}}
+@slot('header')
+@component('mail::header', ['url' => config('app.url')])
+@if (($snipeSettings->show_images_in_email=='1' ) && ($snipeSettings::setupCompleted()))
- @if ($snipeSettings->brand == '3')
- @if ($snipeSettings->logo!='')
-
-
- {{ $slot }}
-
+ @if (($snipeSettings->show_images_in_email=='1' ) && ($snipeSettings::setupCompleted()))
+
+ @if ($snipeSettings->brand == '3')
+ @if ($snipeSettings->logo!='')
+
+ @endif
+ {{ $snipeSettings->site_name }}
+
+ @elseif ($snipeSettings->brand == '2')
+ @if ($snipeSettings->logo!='')
+
+ @endif
+ @else
+ {{ $snipeSettings->site_name }}
+ @endif
+ @else
+ Snipe-IT
+ @endif
- @endif
- {{ $snipeSettings->site_name }}
-
- @elseif ($snipeSettings->brand == '2')
- @if ($snipeSettings->logo!='')
-
- @endif
- @else
- {{ $snipeSettings->site_name }}
- @endif
- @else
- Snipe-it
- @endif
- @endcomponent
- @endslot
+@if ($snipeSettings->brand == '3')
+@if ($snipeSettings->logo!='')
+
+@endif
+{{ $snipeSettings->site_name }}
- {{-- Body --}}
- {{ $slot }}
+@elseif ($snipeSettings->brand == '2')
+@if ($snipeSettings->logo!='')
+
+@endif
+@else
+{{ $snipeSettings->site_name }}
+@endif
+@else
+Snipe-IT
+@endif
+@endcomponent
+@endslot
- {{-- Subcopy --}}
- @isset($subcopy)
- @slot('subcopy')
- @component('mail::subcopy')
- {{ $subcopy }}
- @endcomponent
- @endslot
- @endisset
+{{-- Body --}}
+{{ $slot }}
+
+{{-- Subcopy --}}
+@isset($subcopy)
+@slot('subcopy')
+@component('mail::subcopy')
+{{ $subcopy }}
+@endcomponent
+@endslot
+@endisset
{{-- Footer --}}
@slot('footer')
@@ -45,9 +45,9 @@
@endif
@if ($snipeSettings->privacy_policy_link!='')
-{{ trans('admin/settings/general.privacy_policy') }}
+[{{ $snipeSettings->privacy_policy_link }}]({{ trans('admin/settings/general.privacy_policy') }})
@endif
@endcomponent
- @endslot
+@endslot
@endcomponent
diff --git a/resources/views/vendor/mail/markdown/message.blade.php b/resources/views/vendor/mail/markdown/message.blade.php
index 25e0ab4a4..09ffe0a59 100644
--- a/resources/views/vendor/mail/markdown/message.blade.php
+++ b/resources/views/vendor/mail/markdown/message.blade.php
@@ -2,13 +2,14 @@
{{-- Header --}}
@slot('header')
@component('mail::header', ['url' => config('app.url')])
- @if($snipeSettings::setupCompleted())
+ @if (($snipeSettings->show_images_in_email=='1' ) && ($snipeSettings::setupCompleted()))
+
@if ($snipeSettings->brand == '3')
@if ($snipeSettings->logo!='')
@endif
{{ $snipeSettings->site_name }}
-
+
@elseif ($snipeSettings->brand == '2')
@if ($snipeSettings->logo!='')
@@ -17,7 +18,7 @@
{{ $snipeSettings->site_name }}
@endif
@else
- Snipe-it
+ Snipe-IT
@endif
@endcomponent
@endslot
diff --git a/resources/views/vendor/notifications/email.blade.php b/resources/views/vendor/notifications/email.blade.php
index 039b33a39..2cad87a73 100644
--- a/resources/views/vendor/notifications/email.blade.php
+++ b/resources/views/vendor/notifications/email.blade.php
@@ -25,7 +25,7 @@ $style = [
/* Masthead ----------------------- */
- 'email-masthead' => 'padding: 25px 0; text-align: left;',
+ 'email-masthead' => 'padding: 25px 0; text-align: center;',
'email-masthead_name' => 'font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;',
'email-body' => 'width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;',
@@ -57,6 +57,7 @@ $style = [
'button--green' => 'background-color: #22BC66;',
'button--red' => 'background-color: #dc4d2f;',
'button--blue' => 'background-color: #3869D4;',
+
];
?>
@@ -71,12 +72,24 @@ $style = [
From 28e7ca5a84b9c95885471c79fda737cc2c4dda0c Mon Sep 17 00:00:00 2001
From: snipe
- @if ($snipeSettings->logo)
-
+ @if (($snipeSettings->show_images_in_email=='1' ) && ($snipeSettings::setupCompleted()))
+
+ @if ($snipeSettings->brand == '3')
+ @if ($snipeSettings->logo!='')
+
+ @endif
+ {{ $snipeSettings->site_name }}
+
+ @elseif ($snipeSettings->brand == '2')
+ @if ($snipeSettings->logo!='')
+
+ @endif
+ @else
+ {{ $snipeSettings->site_name }}
+ @endif
+ @else
+ Snipe-IT
@endif
-
- {{ $snipeSettings->site_name }}
-
diff --git a/resources/views/vendor/mail/html/message.blade.php b/resources/views/vendor/mail/html/message.blade.php
index 5dfa2eb88..c78d08745 100644
--- a/resources/views/vendor/mail/html/message.blade.php
+++ b/resources/views/vendor/mail/html/message.blade.php
@@ -45,7 +45,7 @@ Snipe-IT
@endif
@if ($snipeSettings->privacy_policy_link!='')
-[{{ $snipeSettings->privacy_policy_link }}]({{ trans('admin/settings/general.privacy_policy') }})
+{{ trans('admin/settings/general.privacy_policy') }}
@endif
@endcomponent
diff --git a/resources/views/vendor/mail/markdown/message.blade.php b/resources/views/vendor/mail/markdown/message.blade.php
index 09ffe0a59..895f73882 100644
--- a/resources/views/vendor/mail/markdown/message.blade.php
+++ b/resources/views/vendor/mail/markdown/message.blade.php
@@ -45,7 +45,7 @@
@endif
@if ($snipeSettings->privacy_policy_link!='')
-[{{ $snipeSettings->privacy_policy_link }}]({{ trans('admin/settings/general.privacy_policy') }})
+{{ trans('admin/settings/general.privacy_policy') }}ldfkgjg
@endif
@endcomponent
diff --git a/resources/views/vendor/notifications/email.blade.php b/resources/views/vendor/notifications/email.blade.php
index 2cad87a73..f89b65abe 100644
--- a/resources/views/vendor/notifications/email.blade.php
+++ b/resources/views/vendor/notifications/email.blade.php
@@ -196,6 +196,13 @@ $style = [
{{ $snipeSettings->site_name }}.
All rights reserved.
{{ Illuminate\Mail\Markdown::parse($slot) }}
-
- @if ($snipeSettings->privacy_policy_link!='')
- {{ trans('admin/settings/general.privacy_policy') }}
- @endif
-
-