Mercurial > zeropaste
diff app/views/layouts/_alerts.html.erb @ 379:2ad092e60975
[mq]: new-design
author | nanaya <me@myconan.net> |
---|---|
date | Sun, 07 Jun 2015 02:35:12 +0900 |
parents | |
children | 62fef621f39c |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/layouts/_alerts.html.erb Sun Jun 07 02:35:12 2015 +0900 @@ -0,0 +1,13 @@ +<% if params[:notice] %> + <div class="alert alert-info"> + <strong>Info:</strong> + <%= params[:notice] %> + </div> +<% end %> + +<% if @paste && @paste.errors.any? %> + <div class="alert alert-danger"> + <strong>Error:</strong> + <%= @paste.errors.full_messages.to_sentence %> + </div> +<% end %>