Do not show message about sending mail through the server if sending mail from the server is disabled

This commit is contained in:
Booteille 2025-06-12 14:03:56 +02:00
parent 7c417f3efd
commit 6dd9b5b27e
No known key found for this signature in database
GPG Key ID: 0AB6C6CA01272646
1 changed files with 4 additions and 2 deletions

View File

@ -9,10 +9,12 @@
% } % }
<div class="message is-info"> <div class="message is-info">
% if (!$self->config('disable_mail_sending')) {
<div class="message-body"> <div class="message-body">
<p><%= l('If you send the mail from this server, the links will be sent to the server, which may lower your privacy protection.') %></p> <p><%= l('If you send the mail from this server, the links will be sent to the server, which may lower your privacy protection.') %></p>
<p><%= l('Adding URLs not related to this Lufi instance to the mail body or subject is prohibited.') %></p> <p><%= l('Adding URLs not related to this Lufi instance to the mail body or subject is prohibited.') %></p>
</div> </div>
% }
</div> </div>
<form class="field" action="<%= url_for('m') %>" method="post" class="mail-form"> <form class="field" action="<%= url_for('m') %>" method="post" class="mail-form">