<%= render 'layouts/rails_default' %> <%= render 'layouts/shim' %> <% if (params[:action] == 'print') %> <% begin %> <%= yield %> <% rescue StandardError => e %>

<%= icon('exclamation-triangle', size: '2x') %> Si è verificato un errore! <%= e %>

<% end %> <% else %> <%= render 'layouts/header'%>
<% if notice.present? %> <% if (notice.is_a? String) %>

<%= icon('check-circle', size: '2x') %><%= notice.html_safe %>

<% elsif (notice.is_a? Array) %> <% notice.each do |notice_item| %>

<%= icon('check-circle', size: '2x') %><%= notice_item.html_safe %>

<% end %> <% end %> <% end %> <% if alert.present? %> <% if (alert.is_a? String) %>

<%= icon('exclamation-triangle', size: '2x') %><%= alert.html_safe %>

<% elsif (alert.is_a? Array) %> <% alert.each do |alert_item| %>

<%= icon('exclamation-triangle', size: '2x') %><%= alert_item.html_safe %>

<% end %> <% end %> <% end %> <% begin %> <%= yield %> <% rescue StandardError => e %>

<%= icon('exclamation-triangle', size: '2x') %> Si è verificato un errore! <%= e %>

<% end %> <%= render 'layouts/footer'%>
<% end %> <%= debug(params) if Rails.env.development? %> <%= debug(@filter_params) if Rails.env.development? %> <%#= request.env.inspect if Rails.env.development? %> <%= "REQUEST_URI = #{request.headers["REQUEST_URI"]}" if Rails.env.development? %> <% if request.bot? %> <% Rails.logger.bot.debug("from #{request.headers["HTTP_FROM"]} IP #{request.remote_ip} (#{ApplicationController.helpers.remote_ip_humanreadable(request.remote_ip)}), REQUEST_URI = #{request.headers["REQUEST_URI"]}" ) %> <% end %>