diff app/views/pastes/show.html.erb @ 179:b1aa7865bc7f

Added paste id data to markup.
author Edho Arief <edho@myconan.net>
date Fri, 01 Feb 2013 22:37:06 +0700
parents 88f957e0352b
children b4b7a29b70f6
line wrap: on
line diff
--- a/app/views/pastes/show.html.erb	Fri Feb 01 22:26:59 2013 +0700
+++ b/app/views/pastes/show.html.erb	Fri Feb 01 22:37:06 2013 +0700
@@ -3,7 +3,7 @@
   <h1><%= content_for :title %></h1>
 </div>
 
-<div id="paste-show" class="tabbable">
+<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' %>