<% if setting_protocol_mismatched? %>

<%= t 'warning_bar.protocol_mismatch.title' %>
<%= t 'warning_bar.protocol_mismatch.text_html', set_protocol: Setting.protocol, actual_protocol: request.ssl? ? 'https' : 'http', setting_path: admin_settings_general_path %>

<% end %> <% if setting_hostname_mismatched? %>

<%= t 'warning_bar.hostname_mismatch.title' %>
<%= t 'warning_bar.hostname_mismatch.text_html', set_hostname: Setting.host_name, actual_hostname: request.host, setting_path: admin_settings_general_path %>

<% end %>