view app/views/layouts/_alerts.html.erb @ 385:62fef621f39c

Move alerts to layout.
author nanaya <me@myconan.net>
date Sun, 07 Jun 2015 10:13:25 +0900
parents 2ad092e60975
children 16f1b4f8ce94
line wrap: on
line source

<% if notice %>
  <div class="alert alert-info">
    <strong>Info:</strong>
    <%= notice %>
  </div>
<% end %>

<% if alert %>
  <div class="alert alert-danger">
    <strong>Error:</strong>
    <%= alert %>
  </div>
<% end %>