1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 08:14:10 +00:00

Update contact view

This commit is contained in:
Daniel Supernault 2019-06-18 18:49:45 -06:00
parent 8430a8419a
commit fc12f1eba5
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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