view app/views/pastes/show.html.erb @ 184:02298b3d35cf

Update gems
author Edho Arief <edho@myconan.net>
date Mon, 18 Feb 2013 11:53:45 +0900
parents b1aa7865bc7f
children b4b7a29b70f6
line wrap: on
line source

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

<div id="paste-show" class="tabbable" data-id="<%= @paste.id %>">
  <div class="btn-toolbar">
    <div id="paste-mode" class="btn-group" data-toggle="buttons-radio">
      <%= link_to 'Plain', '#plain', :data => { :toggle => 'tab' }, :class => 'btn active' %>
      <%= link_to 'Highlight', '#highlight', :data => { :toggle => 'tab' }, :class => 'btn' %>
      <%= link_to 'Markdown', '#markdown', :data => { :toggle => 'tab' }, :class => 'btn' %>
    </div>
    <div class="btn-group" id="paste-resize">
      <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
        Width: auto
        <span class="caret"></span>
      </a>
      <ul class="dropdown-menu">
        <li><a href="#" data-size="auto">auto</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>
  </div>
  <div id="paste" data-mode="plain" data-width="auto" 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>