annotate app/views/layouts/_alerts.html.erb @ 383:af27800e9a0d

As it turned out delegating with `.click` doesn't work.
author nanaya <me@myconan.net>
date Sun, 07 Jun 2015 02:57:41 +0900
parents 2ad092e60975
children 62fef621f39c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
1 <% if params[:notice] %>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
2 <div class="alert alert-info">
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
3 <strong>Info:</strong>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
4 <%= params[:notice] %>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
5 </div>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
6 <% end %>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
7
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
8 <% if @paste && @paste.errors.any? %>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
9 <div class="alert alert-danger">
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
10 <strong>Error:</strong>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
11 <%= @paste.errors.full_messages.to_sentence %>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
12 </div>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
13 <% end %>