comparison app/views/pastes/show.html.erb @ 214:22c4b5f90e24

Massive javascript and html refactor. Also, ie9
author Edho Arief <edho@myconan.net>
date Sun, 12 May 2013 02:43:38 +0900
parents d4682cea8e58
children e413246bb589
comparison
equal deleted inserted replaced
213:0993715b455d 214:22c4b5f90e24
11 </div> 11 </div>
12 12
13 <div id="paste-show" class="tabbable" data-id="<%= @paste.id %>"> 13 <div id="paste-show" class="tabbable" data-id="<%= @paste.id %>">
14 <div class="btn-toolbar"> 14 <div class="btn-toolbar">
15 <div id="paste-mode" class="btn-group" data-toggle="buttons-radio"> 15 <div id="paste-mode" class="btn-group" data-toggle="buttons-radio">
16 <%= link_to 'Plain', '#plain', :data => { :toggle => 'tab' }, :class => 'btn active' %> 16 <%= link_to 'Plain', '#pl', :data => { :toggle => 'tab' }, :class => 'btn active' %>
17 <%= link_to 'Highlight', '#highlight', :data => { :toggle => 'tab' }, :class => 'btn' %> 17 <%= link_to 'Highlight', '#hl', :data => { :toggle => 'tab' }, :class => 'btn' %>
18 <%= link_to 'Markdown', '#markdown', :data => { :toggle => 'tab' }, :class => 'btn' %> 18 <%= link_to 'Markdown', '#md', :data => { :toggle => 'tab' }, :class => 'btn' %>
19 </div> 19 </div>
20 <div class="btn-group" id="paste-resize"> 20 <div class="btn-group" id="paste-resize">
21 <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> 21 <a class="btn dropdown-toggle" data-toggle="dropdown" data-base="Width: :size:" href="#">
22 Width: auto 22 Width: auto
23 <span class="caret"></span> 23 <span class="caret"></span>
24 </a> 24 </a>
25 <ul class="dropdown-menu"> 25 <ul class="dropdown-menu">
26 <li><a href="#" data-size="auto">auto</a></li> 26 <li><a href="#">auto</a></li>
27 <li><a href="#" data-size="560px">560px</a></li> 27 <li><a href="#">560px</a></li>
28 <li><a href="#" data-size="760px">760px</a></li> 28 <li><a href="#">760px</a></li>
29 <li><a href="#" data-size="960px">960px</a></li> 29 <li><a href="#">960px</a></li>
30 </ul> 30 </ul>
31 </div> 31 </div>
32 </div> 32 </div>
33 <div id="paste" data-mode="plain" data-width="auto" class="tab-content"> 33 <div id="paste" class="tab-content">
34 <div class="tab-pane active" id="plain"> 34 <div class="tab-pane active" id="pl">
35 <pre><%= @paste.paste %></pre> 35 <pre><%= @paste.paste %></pre>
36 </div> 36 </div>
37 <div class="tab-pane" id="highlight"> 37 <div class="tab-pane" id="hl">
38 <pre class="prettyprint linenums"></pre> 38 <pre class="prettyprint linenums"></pre>
39 </div> 39 </div>
40 <div class="tab-pane" id="markdown"> 40 <div class="tab-pane" id="md">
41 <div class="well"></div> 41 <div class="well"></div>
42 </div> 42 </div>
43 </div> 43 </div>
44 </div> 44 </div>
45 45