annotate app/views/layouts/_alerts.html.erb @ 420:bec47da9052a

Prevent explosion on nil language
author nanaya <me@myconan.net>
date Thu, 17 Sep 2015 18:12:38 +0900
parents 16f1b4f8ce94
children 68231013b01b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
385
62fef621f39c Move alerts to layout.
nanaya <me@myconan.net>
parents: 379
diff changeset
1 <% if notice %>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
2 <div class="alert alert-info">
414
16f1b4f8ce94 Add missing translations.
nanaya <me@myconan.net>
parents: 385
diff changeset
3 <strong><%= t(".info") %>:</strong>
385
62fef621f39c Move alerts to layout.
nanaya <me@myconan.net>
parents: 379
diff changeset
4 <%= notice %>
379
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
385
62fef621f39c Move alerts to layout.
nanaya <me@myconan.net>
parents: 379
diff changeset
8 <% if alert %>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
9 <div class="alert alert-danger">
414
16f1b4f8ce94 Add missing translations.
nanaya <me@myconan.net>
parents: 385
diff changeset
10 <strong><%= t(".error") %>:</strong>
385
62fef621f39c Move alerts to layout.
nanaya <me@myconan.net>
parents: 379
diff changeset
11 <%= alert %>
379
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 %>