annotate app/views/pastes/new.html.erb @ 268:7f1eac4a7fa9

This one looks better.
author edogawaconan <me@myconan.net>
date Wed, 16 Oct 2013 03:04:37 +0900
parents 6cca1ab53337
children 2ad092e60975
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">
268
7f1eac4a7fa9 This one looks better.
edogawaconan <me@myconan.net>
parents: 265
diff changeset
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
7f1eac4a7fa9 This one looks better.
edogawaconan <me@myconan.net>
parents: 265
diff changeset
12 <strong>Error:</strong>
265
6cca1ab53337 Infinitely better error messages and notice.
edogawaconan <me@myconan.net>
parents: 190
diff changeset
13 <%= alert %>
190
d4682cea8e58 Fun with alerts.
Edho Arief <edho@myconan.net>
parents: 34
diff changeset
14 </div>
d4682cea8e58 Fun with alerts.
Edho Arief <edho@myconan.net>
parents: 34
diff changeset
15 <% end %>
d4682cea8e58 Fun with alerts.
Edho Arief <edho@myconan.net>
parents: 34
diff changeset
16
34
b1a816ff0d91 Better header (?).
Edho Arief <edho@myconan.net>
parents: 26
diff changeset
17 <div class="page-header">
b1a816ff0d91 Better header (?).
Edho Arief <edho@myconan.net>
parents: 26
diff changeset
18 <h1>New Paste</h1>
b1a816ff0d91 Better header (?).
Edho Arief <edho@myconan.net>
parents: 26
diff changeset
19 </div>
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
20
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
21 <%= render 'form' %>