annotate app/views/pastes/new.html.erb @ 450:fa5a000dc7a6

Shiny donate link
author nanaya <me@nanaya.pro>
date Thu, 27 Jul 2017 00:37:55 +0900
parents b2991317d4d7
children 68231013b01b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
1 <% provide :title, t(".title") %>
402
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
2
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
3 <%= form_for @paste do |f| %>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
4 <%= render "shared/filter_spam" %>
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
5
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
6 <div class="form-group <%= error_class f.object, :paste %>">
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
7 <%= f.text_area :paste, :autofocus => true, :class => "form-control paste-paste js-paste-paste", :rows => 20 %>
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
8 </div>
189
b4b7a29b70f6 Initial work for paste deletion.
Edho Arief <edho@myconan.net>
parents: 56
diff changeset
9
402
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
10
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
11 <div class="row"><div class="col-xs-12">
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
12 <%= link_to t(".preview_md"), "#",
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
13 :class => "btn btn-default js-paste-preview-md pull-right"
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
14 %>
403
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
15 </div></div>
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
16
424
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
17 <div class="form-group <%= error_class f.object, :key %> form-group--narrow">
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
18 <%= f.label :key, t(".deletion_key") %>
434
b2991317d4d7 Disable deletion key autocomplete
nanaya <me@myconan.net>
parents: 424
diff changeset
19 <%= f.text_field :key, :autocomplete => "off", :class => "form-control" %>
424
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
20 </div>
402
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
21
424
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
22 <div class="form-group">
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
23 <label><%= t(".privacy.label") %></label>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
24
424
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
25 <div class="radio-container">
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
26 <% paste_privacy_options.each do |label, value| %>
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
27 <div class="radio">
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
28 <label>
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
29 <%= f.radio_button :is_private, value %>
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
30 <%= t(".privacy.#{label}") %>
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
31 </label>
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
32 </div>
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
33 <% end %>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
34 </div>
424
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
35 </div>
417
080dd141898c Add support for explicit highlighter languages
nanaya <me@myconan.net>
parents: 410
diff changeset
36
424
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
37 <div class="form-group form-group--narrow">
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
38 <%= f.label :language %>
417
080dd141898c Add support for explicit highlighter languages
nanaya <me@myconan.net>
parents: 410
diff changeset
39
424
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
40 <%= f.select :language, [], { :prompt => t(".language_none") }, :class => "form-control" %>
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
41 </div>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
42
424
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
43 <div class="form-group">
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
44 <%= f.button :class => "btn btn-primary" %>
403
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
45
424
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
46 <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %>
967233b26404 Fix styling for md size
nanaya <me@myconan.net>
parents: 417
diff changeset
47 </div>
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
48 <% end %>
402
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
49
409
130dc1054fd2 Fix styling.
nanaya <me@myconan.net>
parents: 408
diff changeset
50 <div class="modal fade js-paste-preview-md-modal" tabindex="-1" role="dialog">
402
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
51 <div class="modal-dialog" role="document">
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
52 <div class="modal-content">
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
53 <div class="modal-body js-paste-preview-md-box">
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
54 </div>
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
55 <div class="modal-footer">
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
56 <button type="button" class="btn btn-default" data-dismiss="modal">
408
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 407
diff changeset
57 <%= t("buttons.close") %>
402
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
58 </button>
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
59 </div>
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
60 </div>
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
61 </div>
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
62 </div>