Mercurial > zeropaste
comparison app/views/pastes/show.html.erb @ 108:a949b71c9afb
Allows paste content width resize.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Mon, 12 Nov 2012 12:27:39 +0700 |
parents | c6af63fc16ab |
children | 2b1041e8c35e |
comparison
equal
deleted
inserted
replaced
107:c6af63fc16ab | 108:a949b71c9afb |
---|---|
7 <div class="tabbable"> | 7 <div class="tabbable"> |
8 <ul id="paste-tabs" class="nav nav-tabs"> | 8 <ul id="paste-tabs" class="nav nav-tabs"> |
9 <li class="active"><%= link_to 'Plain', '#plain', :data => { :toggle => 'tab' } %></li> | 9 <li class="active"><%= link_to 'Plain', '#plain', :data => { :toggle => 'tab' } %></li> |
10 <li><%= link_to 'Highlight', '#highlight', :data => { :toggle => 'tab' } %></li> | 10 <li><%= link_to 'Highlight', '#highlight', :data => { :toggle => 'tab' } %></li> |
11 <li><%= link_to 'Markdown', '#markdown', :data => { :toggle => 'tab' } %></li> | 11 <li><%= link_to 'Markdown', '#markdown', :data => { :toggle => 'tab' } %></li> |
12 <li class="pull-right"> | |
13 <div class="btn-group" id="tab-resize"> | |
14 <a class="btn btn-inverse dropdown-toggle" data-toggle="dropdown" href="#"> | |
15 Width: full | |
16 <span class="caret"></span> | |
17 </a> | |
18 <ul class="dropdown-menu"> | |
19 <li><a href="#" data-size="full">full</a></li> | |
20 <li><a href="#" data-size="560px">560px</a></li> | |
21 <li><a href="#" data-size="760px">760px</a></li> | |
22 <li><a href="#" data-size="960px">960px</a></li> | |
23 </ul> | |
24 </div> | |
25 </li> | |
12 </ul> | 26 </ul> |
13 <div class="tab-content"> | 27 <div id="paste" class="tab-content"> |
14 <div class="tab-pane active" id="plain"> | 28 <div class="tab-pane active" id="plain"> |
15 <pre><%= @paste.paste %></pre> | 29 <pre><%= @paste.paste %></pre> |
16 </div> | 30 </div> |
17 <div class="tab-pane" id="highlight"> | 31 <div class="tab-pane" id="highlight"> |
18 <pre class="prettyprint linenums"></pre> | 32 <pre class="prettyprint linenums"></pre> |