comparison app/views/pastes/show.html.erb @ 261:f057e8c78e50

Fix /show.
author edogawaconan <me@myconan.net>
date Tue, 15 Oct 2013 22:40:08 +0900
parents 2d5c09a73958
children a9c45375a656
comparison
equal deleted inserted replaced
260:c4aba8990c5e 261:f057e8c78e50
8 8
9 <div class="page-header"> 9 <div class="page-header">
10 <h1><%= content_for :title %></h1> 10 <h1><%= content_for :title %></h1>
11 </div> 11 </div>
12 12
13 <div id="paste-show" class="tabbable" data-id="<%= @paste.id %>"> 13 <div id="paste-show" data-id="<%= @paste.id %>">
14 <div class="btn-toolbar"> 14 <div class="row"><div class="col-lg-12">
15 <div id="paste-mode" class="btn-group" data-toggle="buttons-radio"> 15 <div class="btn-toolbar">
16 <%= link_to 'Plain', '#pl', :data => { :toggle => 'tab' }, :class => 'btn active' %> 16 <div id="paste-mode" class="btn-group emul-radio" data-toggle="buttons">
17 <%= link_to 'Highlight', '#hl', :data => { :toggle => 'tab' }, :class => 'btn' %> 17 <%= link_to 'Plain', '#pl', :data => { :toggle => 'tab' }, :class => 'btn btn-default active' %>
18 <%= link_to 'Markdown', '#md', :data => { :toggle => 'tab' }, :class => 'btn' %> 18 <%= link_to 'Highlight', '#hl', :data => { :toggle => 'tab' }, :class => 'btn btn-default' %>
19 <%= link_to 'Markdown', '#md', :data => { :toggle => 'tab' }, :class => 'btn btn-default' %>
20 </div>
21 <div class="btn-group" id="paste-resize">
22 <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" data-base="Width: :size:" href="#">
23 <span id="width-text">Width: auto</span>
24 <span class="caret"></span>
25 </a>
26 <ul class="dropdown-menu">
27 <li><a href="#">auto</a></li>
28 <li><a href="#">560px</a></li>
29 <li><a href="#">760px</a></li>
30 <li><a href="#">960px</a></li>
31 </ul>
32 </div>
19 </div> 33 </div>
20 <div class="btn-group" id="paste-resize"> 34 </div></div>
21 <a class="btn dropdown-toggle" data-toggle="dropdown" data-base="Width: :size:" href="#"> 35 <div class="row"><div id="paste" class="col-lg-12 tab-content">
22 Width: auto
23 <span class="caret"></span>
24 </a>
25 <ul class="dropdown-menu">
26 <li><a href="#">auto</a></li>
27 <li><a href="#">560px</a></li>
28 <li><a href="#">760px</a></li>
29 <li><a href="#">960px</a></li>
30 </ul>
31 </div>
32 </div>
33 <div id="paste" class="tab-content">
34 <div class="tab-pane active" id="pl"> 36 <div class="tab-pane active" id="pl">
35 <pre><%= @paste.paste %></pre> 37 <pre><%= @paste.paste %></pre>
36 </div> 38 </div>
37 <div class="tab-pane" id="hl"> 39 <div class="tab-pane" id="hl">
38 <pre class="prettyprint linenums"></pre> 40 <pre class="prettyprint linenums"></pre>
39 </div> 41 </div>
40 <div class="tab-pane" id="md"> 42 <div class="tab-pane" id="md">
41 <div class="well"></div> 43 <div class="well"></div>
42 </div> 44 </div>
43 </div> 45 </div></div>
44 </div> 46 </div>
45 47
46 <div class="input-append"> 48 <div class="row"><div class="col-md-4">
47 <%= form_for @paste, :method => :delete do |f| %> 49 <%= form_for @paste, :method => :delete do |f| %>
48 <%= f.text_field :key, :value => nil, :placeholder => 'Deletion key', :autofocus => !flash[:error].blank? %> 50 <div class="input-group">
49 <%= f.submit 'Delete this paste', :class => 'btn btn-danger' %> 51 <%= f.text_field :key, :value => nil, :placeholder => 'Deletion key', :class => "form-control", :autofocus => !flash[:error].blank? %>
52 <span class="input-group-btn">
53 <%= f.submit 'Delete this paste', :class => 'btn btn-danger' %>
54 </span>
55 </div>
50 <% end %> 56 <% end %>
51 </div> 57 </div></div>
52 58
53 <div> 59 <div>
54 <ul class="nav nav-pills"> 60 <ul class="nav nav-pills">
55 <li><%= link_to 'Raw', paste_path(@paste, :txt) %></li> 61 <li><%= link_to 'Raw', paste_path(@paste, :txt) %></li>
56 <li><%= link_to 'New paste based on this', root_path(:base => @paste) %></li> 62 <li><%= link_to 'New paste based on this', root_path(:base => @paste) %></li>