view app/views/pastes/show.html.erb @ 113:c24b17044ad1

Changed size for dropdown menu.
author Edho Arief <edho@myconan.net>
date Mon, 12 Nov 2012 13:08:22 +0700
parents 2b1041e8c35e
children b72f99d7b8cf
line wrap: on
line source

<% provide :title, "Paste ##{@paste.id}" %>
<% @skip_csrf = true %>
<div class="page-header">
  <h1><%= content_for :title %></h1>
</div>

<div class="tabbable">
  <ul id="paste-tabs" class="nav nav-tabs">
    <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 id="paste" data-width="0" class="tab-content">
    <div class="tab-pane active" id="plain">
      <pre><%= @paste.paste %></pre>
    </div>
    <div class="tab-pane" id="highlight">
      <pre class="prettyprint linenums"></pre>
    </div>
    <div class="tab-pane" id="markdown">
      <div class="well"></div>
    </div>
  </div>
</div>

<div>
  <ul class="nav nav-pills">
    <li><%= link_to 'Raw', paste_path(@paste, :txt) %></li>
    <li><%= link_to 'New paste based on this', root_path(:base => @paste.id) %></li>
    <li><%= link_to 'More Paste', root_path %></li>
  </ul>
</div>