changeset 179:b1aa7865bc7f

Added paste id data to markup.
author Edho Arief <edho@myconan.net>
date Fri, 01 Feb 2013 22:37:06 +0700
parents e4a0ef308a99
children dd5a154c17c7
files app/views/pastes/show.html.erb
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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' %>