view app/views/layouts/_alerts.html.erb @ 425:9369ad2f2ce8

Simplify logic
author nanaya <me@myconan.net>
date Mon, 26 Oct 2015 14:09:13 +0900
parents 16f1b4f8ce94
children 68231013b01b
line wrap: on
line source

<% if notice %>
  <div class="alert alert-info">
    <strong><%= t(".info") %>:</strong>
    <%= notice %>
  </div>
<% end %>

<% if alert %>
  <div class="alert alert-danger">
    <strong><%= t(".error") %>:</strong>
    <%= alert %>
  </div>
<% end %>