Sha256: 46b0bac5a0123427c48969ed74da32e8991083b7f8542bdfe5517df30f950daf

Contents?: true

Size: 575 Bytes

Versions: 4

Compression:

Stored size: 575 Bytes

Contents

<% if flash[:message] -%>
  <%= render "alert", html_class: "alert-success",
                      icon: icon("alert-icon ion-ios-checkmark-outline"),
                      title: t("trestle.flash.success.title", default: "Success!"),
                      message: flash[:message] %>
<% elsif flash[:error] -%>
  <%= render "alert", html_class: "alert-danger",
                      icon: icon("alert-icon ion-ios-close-outline"),
                      title: t("trestle.flash.failure.title", default: "Warning!"),
                      message: flash[:error] %>
<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trestle-0.8.4 app/views/trestle/application/_flash.html.erb
trestle-0.8.3 app/views/trestle/application/_flash.html.erb
trestle-0.8.2 app/views/trestle/application/_flash.html.erb
trestle-0.8.0 app/views/trestle/application/_flash.html.erb