annotate app/views/pastes/_form.html.erb @ 378:e84276bf344a

Immediate return instead of unless ... end.
author nanaya <me@myconan.net>
date Sat, 06 Jun 2015 22:36:32 +0900
parents 5ca896a5ddef
children 2ad092e60975
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
260
c4aba8990c5e Fix new paste form.
edogawaconan <me@myconan.net>
parents: 213
diff changeset
1 <%= form_for @paste do |f| %>
c4aba8990c5e Fix new paste form.
edogawaconan <me@myconan.net>
parents: 213
diff changeset
2 <div class="form-group">
c4aba8990c5e Fix new paste form.
edogawaconan <me@myconan.net>
parents: 213
diff changeset
3 <%= f.text_area :paste, :rows => 10, :class => "form-control" %>
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
4 </div>
189
b4b7a29b70f6 Initial work for paste deletion.
Edho Arief <edho@myconan.net>
parents: 56
diff changeset
5
260
c4aba8990c5e Fix new paste form.
edogawaconan <me@myconan.net>
parents: 213
diff changeset
6 <div class="form-group">
c4aba8990c5e Fix new paste form.
edogawaconan <me@myconan.net>
parents: 213
diff changeset
7 <%= f.label :key, "Deletion key", class: "control-label" %>
c4aba8990c5e Fix new paste form.
edogawaconan <me@myconan.net>
parents: 213
diff changeset
8 <div class="row"><div class="col-sm-3">
c4aba8990c5e Fix new paste form.
edogawaconan <me@myconan.net>
parents: 213
diff changeset
9 <%= f.text_field :key, :class => "form-control" %>
c4aba8990c5e Fix new paste form.
edogawaconan <me@myconan.net>
parents: 213
diff changeset
10 </div></div>
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
11 </div>
297
dff632a63ada Basic spam filtering.
edogawaconan <me@myconan.net>
parents: 265
diff changeset
12 <%= render 'shared/filter_spam' %>
260
c4aba8990c5e Fix new paste form.
edogawaconan <me@myconan.net>
parents: 213
diff changeset
13 <div class="checkbox">
c4aba8990c5e Fix new paste form.
edogawaconan <me@myconan.net>
parents: 213
diff changeset
14 <%= f.label :is_private do %>
c4aba8990c5e Fix new paste form.
edogawaconan <me@myconan.net>
parents: 213
diff changeset
15 <%= f.check_box :is_private %>
c4aba8990c5e Fix new paste form.
edogawaconan <me@myconan.net>
parents: 213
diff changeset
16 Private
c4aba8990c5e Fix new paste form.
edogawaconan <me@myconan.net>
parents: 213
diff changeset
17 <% end %>
c4aba8990c5e Fix new paste form.
edogawaconan <me@myconan.net>
parents: 213
diff changeset
18 </div>
306
5ca896a5ddef Use button instead of (input) submit.
edogawaconan <me@myconan.net>
parents: 297
diff changeset
19 <%= f.button :class => 'btn btn-primary' %>
260
c4aba8990c5e Fix new paste form.
edogawaconan <me@myconan.net>
parents: 213
diff changeset
20 <%= link_to 'Clear', root_path, :class => 'btn btn-danger', :id => 'reset_paste' %>
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
21 <% end %>