From fc12f1eba537e1cd428df01eea23c87df65e47e9 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 18 Jun 2019 18:49:45 -0600 Subject: [PATCH] Update contact view --- resources/views/site/contact.blade.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/views/site/contact.blade.php b/resources/views/site/contact.blade.php index 56935702b..7baaad61d 100644 --- a/resources/views/site/contact.blade.php +++ b/resources/views/site/contact.blade.php @@ -36,10 +36,12 @@ @endif @else

- @if(filter_var(config('instance.email'), FILTER_VALIDATE_EMAIL) == true) - You can contact the admins by sending an email to {{config('instance.email')}}. - @elseif (config('instance.contact.enabled')) + @if(config('instance.email') && config('instance.contact.enabled')) + You can contact the admins by sending an email to {{config('instance.email')}} or log in to send a message. + @elseif (!config('instance.email') && config('instance.contact.enabled')) The admins have not set a contact email address. Please log in to send a message. + @elseif (config('instance.email') && !config('instance.contact.enabled')) + You can contact the admins by sending an email to {{config('instance.email')}}. @endif

@endauth