Mercurial > zeropaste
view app/views/pastes/show.html.erb @ 102:7a514c733e6c
A note about current design.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Mon, 12 Nov 2012 11:12:20 +0700 |
parents | 17f682a53b13 |
children | a8768ad51926 |
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 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> </ul> <div 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></div> </div> </div> </div> <hr /> <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>