comparison app/views/pastes/show.html.erb @ 98:58aa32120b54

Added paste id to title.
author Edho Arief <edho@myconan.net>
date Mon, 12 Nov 2012 09:38:02 +0700
parents d100218b96c9
children 90b59418828a
comparison
equal deleted inserted replaced
97:e8a0e82213cd 98:58aa32120b54
1 <% provide :title, 'Show' %> 1 <% provide :title, "Paste ##{@paste.id}" %>
2 <% @skip_csrf = true %> 2 <% @skip_csrf = true %>
3 <div class="page-header"> 3 <div class="page-header">
4 <h1>Paste</h1> 4 <h1><%= content_for :title %></h1>
5 </div> 5 </div>
6 <pre class="prettyprint linenums"><%= @paste.paste.gsub(/^$/, ' ') %></pre> 6 <pre class="prettyprint linenums"><%= @paste.paste.gsub(/^$/, ' ') %></pre>
7 7
8 <ul class="nav nav-pills"> 8 <ul class="nav nav-pills">
9 <li><%= link_to 'Raw', paste_path(@paste, :txt) %></li> 9 <li><%= link_to 'Raw', paste_path(@paste, :txt) %></li>