Sha256: 6ddd422f723455d45524610d89b2b5788712b2f94a02490980e2d8a00d712f2a

Contents?: true

Size: 529 Bytes

Versions: 4

Compression:

Stored size: 529 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: Trestle::DebugErrors.new(instance.errors) if debug_form_errors? %>
  <% end %>
<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trestle-0.10.0 app/views/trestle/flash/_flash.html.erb
trestle-0.10.0.pre2 app/views/trestle/flash/_flash.html.erb
trestle-0.10.0.pre app/views/trestle/flash/_flash.html.erb
trestle-0.9.8 app/views/trestle/flash/_flash.html.erb