Mercurial > zeropaste
comparison app/views/pastes/new.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 |
comparison
equal
deleted
inserted
replaced
384:7ba798dee39d | 385:62fef621f39c |
---|---|
1 <% provide :title, 'New Paste' %> | 1 <% provide :title, 'New Paste' %> |
2 | 2 |
3 <% if notice %> | |
4 <div class="alert alert-info"> | |
5 <strong>Info:</strong> | |
6 <%= notice %> | |
7 </div> | |
8 <% end %> | |
9 | |
10 <% if alert %> | |
11 <div class="alert alert-danger"> | |
12 <strong>Error:</strong> | |
13 <%= alert %> | |
14 </div> | |
15 <% end %> | |
16 | |
17 <%= render 'form' %> | 3 <%= render 'form' %> |