comparison 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
comparison
equal deleted inserted replaced
384:7ba798dee39d 385:62fef621f39c
1 <% if params[:notice] %> 1 <% if notice %>
2 <div class="alert alert-info"> 2 <div class="alert alert-info">
3 <strong>Info:</strong> 3 <strong>Info:</strong>
4 <%= params[:notice] %> 4 <%= notice %>
5 </div> 5 </div>
6 <% end %> 6 <% end %>
7 7
8 <% if @paste && @paste.errors.any? %> 8 <% if alert %>
9 <div class="alert alert-danger"> 9 <div class="alert alert-danger">
10 <strong>Error:</strong> 10 <strong>Error:</strong>
11 <%= @paste.errors.full_messages.to_sentence %> 11 <%= alert %>
12 </div> 12 </div>
13 <% end %> 13 <% end %>