annotate app/views/pastes/new.html.erb @ 265:6cca1ab53337

Infinitely better error messages and notice.
author edogawaconan <me@myconan.net>
date Wed, 16 Oct 2013 02:56:30 +0900
parents d4682cea8e58
children 7f1eac4a7fa9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
a8b0775798c3 Added title.
Edho Arief <edho@myconan.net>
parents: 25
diff changeset
1 <% provide :title, 'New Paste' %>
190
d4682cea8e58 Fun with alerts.
Edho Arief <edho@myconan.net>
parents: 34
diff changeset
2
265
6cca1ab53337 Infinitely better error messages and notice.
edogawaconan <me@myconan.net>
parents: 190
diff changeset
3 <% if notice %>
190
d4682cea8e58 Fun with alerts.
Edho Arief <edho@myconan.net>
parents: 34
diff changeset
4 <div class="alert alert-info">
265
6cca1ab53337 Infinitely better error messages and notice.
edogawaconan <me@myconan.net>
parents: 190
diff changeset
5 <%= notice %>
6cca1ab53337 Infinitely better error messages and notice.
edogawaconan <me@myconan.net>
parents: 190
diff changeset
6 </div>
6cca1ab53337 Infinitely better error messages and notice.
edogawaconan <me@myconan.net>
parents: 190
diff changeset
7 <% end %>
6cca1ab53337 Infinitely better error messages and notice.
edogawaconan <me@myconan.net>
parents: 190
diff changeset
8
6cca1ab53337 Infinitely better error messages and notice.
edogawaconan <me@myconan.net>
parents: 190
diff changeset
9 <% if alert %>
6cca1ab53337 Infinitely better error messages and notice.
edogawaconan <me@myconan.net>
parents: 190
diff changeset
10 <div class="alert alert-danger">
6cca1ab53337 Infinitely better error messages and notice.
edogawaconan <me@myconan.net>
parents: 190
diff changeset
11 <%= alert %>
190
d4682cea8e58 Fun with alerts.
Edho Arief <edho@myconan.net>
parents: 34
diff changeset
12 </div>
d4682cea8e58 Fun with alerts.
Edho Arief <edho@myconan.net>
parents: 34
diff changeset
13 <% end %>
d4682cea8e58 Fun with alerts.
Edho Arief <edho@myconan.net>
parents: 34
diff changeset
14
34
b1a816ff0d91 Better header (?).
Edho Arief <edho@myconan.net>
parents: 26
diff changeset
15 <div class="page-header">
b1a816ff0d91 Better header (?).
Edho Arief <edho@myconan.net>
parents: 26
diff changeset
16 <h1>New Paste</h1>
b1a816ff0d91 Better header (?).
Edho Arief <edho@myconan.net>
parents: 26
diff changeset
17 </div>
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
18
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
19 <%= render 'form' %>