Sha256: ec2fe53c55286229924952559946ee9ab4024b7a45bd2d533b41d228fef5f50c

Contents?: true

Size: 503 Bytes

Versions: 2

Compression:

Stored size: 503 Bytes

Contents

<% if flash[:message] -%>
  <%= render "trestle/flash/alert", html_class: "alert-success", icon: icon("alert-icon far fa-check-circle"), alert: normalize_flash_alert(flash[:message]) %>
<% elsif flash[:error] -%>
  <%= render layout: "trestle/flash/alert", locals: { html_class: "alert-danger", icon: icon("alert-icon far fa-times-circle"), alert: normalize_flash_alert(flash[:error]) } do %>
    <%= render "trestle/flash/debug", errors: instance.errors if debug_form_errors? %>
  <% end %>
<% end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trestle-0.9.7 app/views/trestle/flash/_flash.html.erb
trestle-0.9.6 app/views/trestle/flash/_flash.html.erb