changeset 41:ca7e3661cda0

Better styled show paste.
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 02:12:26 +0700
parents a81fb558f954
children c91c994b22b9
files app/views/pastes/show.html.erb
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/pastes/show.html.erb	Thu Oct 04 02:09:46 2012 +0700
+++ b/app/views/pastes/show.html.erb	Thu Oct 04 02:12:26 2012 +0700
@@ -1,8 +1,11 @@
+<% provide :title, 'Show' %>
 <p id="notice"><%= notice %></p>
 
-<p>
-  <b>Paste:</b>
+  <h1>Paste</h1>
   <pre><%= @paste.paste %></pre>
-</p>
 
-<%= link_to 'Raw', paste_path(@paste, :txt) %> | <%= link_to 'New paste based on this', root_path(:base => @paste.id) %> | <%= link_to 'More Paste', root_path %>
+<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>