annotate app/views/layouts/_alerts.html.erb @ 380:2ddd61aca2c8
I18n. And refactor paste privacy settings form.
author |
nanaya <me@myconan.net> |
date |
Sun, 07 Jun 2015 02:45:49 +0900 |
parents |
2ad092e60975 |
children |
62fef621f39c |
rev |
line source |
379
|
1 <% if params[:notice] %>
|
|
2 <div class="alert alert-info">
|
|
3 <strong>Info:</strong>
|
|
4 <%= params[:notice] %>
|
|
5 </div>
|
|
6 <% end %>
|
|
7
|
|
8 <% if @paste && @paste.errors.any? %>
|
|
9 <div class="alert alert-danger">
|
|
10 <strong>Error:</strong>
|
|
11 <%= @paste.errors.full_messages.to_sentence %>
|
|
12 </div>
|
|
13 <% end %>
|