Mercurial > zeropaste
comparison 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 |
comparison
equal
deleted
inserted
replaced
178:e4a0ef308a99 | 179:b1aa7865bc7f |
---|---|
1 <% provide :title, "Paste ##{@paste.id}" %> | 1 <% provide :title, "Paste ##{@paste.id}" %> |
2 <div class="page-header"> | 2 <div class="page-header"> |
3 <h1><%= content_for :title %></h1> | 3 <h1><%= content_for :title %></h1> |
4 </div> | 4 </div> |
5 | 5 |
6 <div id="paste-show" class="tabbable"> | 6 <div id="paste-show" class="tabbable" data-id="<%= @paste.id %>"> |
7 <div class="btn-toolbar"> | 7 <div class="btn-toolbar"> |
8 <div id="paste-mode" class="btn-group" data-toggle="buttons-radio"> | 8 <div id="paste-mode" class="btn-group" data-toggle="buttons-radio"> |
9 <%= link_to 'Plain', '#plain', :data => { :toggle => 'tab' }, :class => 'btn active' %> | 9 <%= link_to 'Plain', '#plain', :data => { :toggle => 'tab' }, :class => 'btn active' %> |
10 <%= link_to 'Highlight', '#highlight', :data => { :toggle => 'tab' }, :class => 'btn' %> | 10 <%= link_to 'Highlight', '#highlight', :data => { :toggle => 'tab' }, :class => 'btn' %> |
11 <%= link_to 'Markdown', '#markdown', :data => { :toggle => 'tab' }, :class => 'btn' %> | 11 <%= link_to 'Markdown', '#markdown', :data => { :toggle => 'tab' }, :class => 'btn' %> |