Mercurial > zeropaste
diff 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 |
line wrap: on
line diff
--- a/app/views/pastes/show.html.erb Mon Nov 12 11:42:26 2012 +0700 +++ b/app/views/pastes/show.html.erb Mon Nov 12 12:27:39 2012 +0700 @@ -9,8 +9,22 @@ <li class="active"><%= link_to 'Plain', '#plain', :data => { :toggle => 'tab' } %></li> <li><%= link_to 'Highlight', '#highlight', :data => { :toggle => 'tab' } %></li> <li><%= link_to 'Markdown', '#markdown', :data => { :toggle => 'tab' } %></li> + <li class="pull-right"> + <div class="btn-group" id="tab-resize"> + <a class="btn btn-inverse dropdown-toggle" data-toggle="dropdown" href="#"> + Width: full + <span class="caret"></span> + </a> + <ul class="dropdown-menu"> + <li><a href="#" data-size="full">full</a></li> + <li><a href="#" data-size="560px">560px</a></li> + <li><a href="#" data-size="760px">760px</a></li> + <li><a href="#" data-size="960px">960px</a></li> + </ul> + </div> + </li> </ul> - <div class="tab-content"> + <div id="paste" class="tab-content"> <div class="tab-pane active" id="plain"> <pre><%= @paste.paste %></pre> </div>