comparison app/views/pastes/new.html.erb @ 402:a18e19139f57

Markdown preview \o/
author nanaya <me@myconan.net>
date Sun, 06 Sep 2015 04:20:50 +0900
parents 851432f21603
children e0626046579a
comparison
equal deleted inserted replaced
401:6bb805283daf 402:a18e19139f57
1 <% provide :title, t(".title") %> 1 <% provide :title, t(".title") %>
2
2 <%= form_for @paste do |f| %> 3 <%= form_for @paste do |f| %>
3 <%= render "shared/filter_spam" %> 4 <%= render "shared/filter_spam" %>
4 5
5 <div class="form-group <%= error_class f.object, :paste %>"> 6 <div class="form-group <%= error_class f.object, :paste %>">
6 <%= f.text_area :paste, :autofocus => true, :class => "form-control paste-paste js-paste-paste", :rows => 20 %> 7 <%= f.text_area :paste, :autofocus => true, :class => "form-control paste-paste js-paste-paste", :rows => 20 %>
8 </div>
9
10
11 <div class="row"><div class="col-xs-12">
12 <%= link_to t(".preview_md"), "#",
13 :class => "btn btn-default js-paste-preview-md pull-right"
14 %>
7 </div> 15 </div>
8 16
9 <div class="form-horizontal"> 17 <div class="form-horizontal">
10 <div class="form-group <%= error_class f.object, :key %>"> 18 <div class="form-group <%= error_class f.object, :key %>">
11 <%= f.label :key, t(".deletion_key"), :class => "col-sm-2 control-label" %> 19 <%= f.label :key, t(".deletion_key"), :class => "col-sm-2 control-label" %>
34 42
35 <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %> 43 <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %>
36 </div></div> 44 </div></div>
37 </div> 45 </div>
38 <% end %> 46 <% end %>
47
48 <div class="modal fade js-paste-preview-md-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
49 <div class="modal-dialog" role="document">
50 <div class="modal-content">
51 <div class="modal-body js-paste-preview-md-box">
52 </div>
53 <div class="modal-footer">
54 <button type="button" class="btn btn-default" data-dismiss="modal">
55 <%= t(".close") %>
56 </button>
57 </div>
58 </div>
59 </div>
60 </div>