소스 검색

Update contact view

Daniel Supernault 6 년 전
부모
커밋
fc12f1eba5
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      resources/views/site/contact.blade.php

+ 5 - 3
resources/views/site/contact.blade.php

@@ -36,10 +36,12 @@
     @endif
     @else
     <p class="lead">
-      @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 <span class="font-weight-bold">{{config('instance.email')}}</span> 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 <span class="font-weight-bold">{{config('instance.email')}}</span>.
       @endif
     </p>
     @endauth