mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Checks if settings let URL's be shown in email notifications
This commit is contained in:
parent
cd2997b674
commit
7cc8b39863
|
@ -1,13 +1,18 @@
|
||||||
@component('mail::layout')
|
@component('mail::layout')
|
||||||
{{-- Header --}}
|
{{-- Header --}}
|
||||||
@slot('header')
|
@slot('header')
|
||||||
@component('mail::header', ['url' => config('app.url')])
|
|
||||||
|
|
||||||
{{-- Check that the $snipeSettings variable is set, images are set to be shown, and setup is complete --}}
|
{{-- Check that the $snipeSettings variable is set, images are set to be shown, and setup is complete --}}
|
||||||
|
|
||||||
|
|
||||||
@if (isset($snipeSettings) && ($snipeSettings::setupCompleted()))
|
@if (isset($snipeSettings) && ($snipeSettings::setupCompleted()))
|
||||||
|
|
||||||
|
@if ($snipeSettings->show_url_in_email=='1' )
|
||||||
|
@component('mail::header', ['url' => config('app.url')])
|
||||||
|
@else
|
||||||
|
@component('mail::header', ['url' => ''])
|
||||||
|
@endif
|
||||||
|
|
||||||
{{-- Show images in email! --}}
|
{{-- Show images in email! --}}
|
||||||
@if (($snipeSettings->show_images_in_email=='1' ) && (($snipeSettings->brand == '3') || ($snipeSettings->brand == '2')))
|
@if (($snipeSettings->show_images_in_email=='1' ) && (($snipeSettings->brand == '3') || ($snipeSettings->brand == '2')))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue