Mercurial > zeropaste
annotate app/views/pastes/new.html.erb @ 384:7ba798dee39d
No need to assign to variable when it can be just chained.
author | nanaya <me@myconan.net> |
---|---|
date | Sun, 07 Jun 2015 02:59:29 +0900 |
parents | 2ad092e60975 |
children | 62fef621f39c |
rev | line source |
---|---|
26 | 1 <% provide :title, 'New Paste' %> |
190 | 2 |
265
6cca1ab53337
Infinitely better error messages and notice.
edogawaconan <me@myconan.net>
parents:
190
diff
changeset
|
3 <% if notice %> |
190 | 4 <div class="alert alert-info"> |
268 | 5 <strong>Info:</strong> |
265
6cca1ab53337
Infinitely better error messages and notice.
edogawaconan <me@myconan.net>
parents:
190
diff
changeset
|
6 <%= notice %> |
6cca1ab53337
Infinitely better error messages and notice.
edogawaconan <me@myconan.net>
parents:
190
diff
changeset
|
7 </div> |
6cca1ab53337
Infinitely better error messages and notice.
edogawaconan <me@myconan.net>
parents:
190
diff
changeset
|
8 <% end %> |
6cca1ab53337
Infinitely better error messages and notice.
edogawaconan <me@myconan.net>
parents:
190
diff
changeset
|
9 |
6cca1ab53337
Infinitely better error messages and notice.
edogawaconan <me@myconan.net>
parents:
190
diff
changeset
|
10 <% if alert %> |
6cca1ab53337
Infinitely better error messages and notice.
edogawaconan <me@myconan.net>
parents:
190
diff
changeset
|
11 <div class="alert alert-danger"> |
268 | 12 <strong>Error:</strong> |
265
6cca1ab53337
Infinitely better error messages and notice.
edogawaconan <me@myconan.net>
parents:
190
diff
changeset
|
13 <%= alert %> |
190 | 14 </div> |
15 <% end %> | |
16 | |
2 | 17 <%= render 'form' %> |