comparison app/views/pastes/new.html.erb @ 417:080dd141898c

Add support for explicit highlighter languages
author nanaya <me@myconan.net>
date Mon, 14 Sep 2015 14:50:35 +0900
parents a2f8e5c80769
children 967233b26404
comparison
equal deleted inserted replaced
416:c4c8214fb0b2 417:080dd141898c
12 <%= link_to t(".preview_md"), "#", 12 <%= link_to t(".preview_md"), "#",
13 :class => "btn btn-default js-paste-preview-md pull-right" 13 :class => "btn btn-default js-paste-preview-md pull-right"
14 %> 14 %>
15 </div></div> 15 </div></div>
16 16
17 <div class="row"> 17 <div class="row"><div class="col-sm-3">
18 <div class="form-group col-sm-3 <%= error_class f.object, :key %>"> 18 <div class="form-group <%= error_class f.object, :key %>">
19 <%= f.label :key, t(".deletion_key") %> 19 <%= f.label :key, t(".deletion_key") %>
20 <%= f.text_field :key, :class => "form-control" %> 20 <%= f.text_field :key, :class => "form-control" %>
21 </div> 21 </div>
22 </div>
23 22
24 <div class="form-group"> 23 <div class="form-group">
25 <label><%= t(".privacy.label") %></label> 24 <label><%= t(".privacy.label") %></label>
26 25
27 <div class="radio-container"> 26 <div class="radio-container">
28 <% paste_privacy_options.each do |label, value| %> 27 <% paste_privacy_options.each do |label, value| %>
29 <div class="radio"> 28 <div class="radio">
30 <label> 29 <label>
31 <%= f.radio_button :is_private, value %> 30 <%= f.radio_button :is_private, value %>
32 <%= t(".privacy.#{label}") %> 31 <%= t(".privacy.#{label}") %>
33 </label> 32 </label>
34 </div> 33 </div>
35 <% end %> 34 <% end %>
35 </div>
36 </div> 36 </div>
37 </div>
38 37
39 <div class="form-group"> 38 <div class="form-group">
40 <%= f.button :class => "btn btn-primary" %> 39 <%= f.label :language %>
41 40
42 <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %> 41 <%= f.select :language, [], { :prompt => t(".language_none") }, :class => "form-control" %>
43 </div> 42 </div>
43
44 <div class="form-group">
45 <%= f.button :class => "btn btn-primary" %>
46
47 <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %>
48 </div>
49 </div></div>
44 <% end %> 50 <% end %>
45 51
46 <div class="modal fade js-paste-preview-md-modal" tabindex="-1" role="dialog"> 52 <div class="modal fade js-paste-preview-md-modal" tabindex="-1" role="dialog">
47 <div class="modal-dialog" role="document"> 53 <div class="modal-dialog" role="document">
48 <div class="modal-content"> 54 <div class="modal-content">