comparison app/views/pastes/show.html.erb @ 103:a8768ad51926

Allows hash-based onload tab switch.
author Edho Arief <edho@myconan.net>
date Mon, 12 Nov 2012 11:28:11 +0700
parents 17f682a53b13
children 28518004899a
comparison
equal deleted inserted replaced
102:7a514c733e6c 103:a8768ad51926
3 <div class="page-header"> 3 <div class="page-header">
4 <h1><%= content_for :title %></h1> 4 <h1><%= content_for :title %></h1>
5 </div> 5 </div>
6 6
7 <div class="tabbable"> 7 <div class="tabbable">
8 <ul class="nav nav-tabs"> 8 <ul id="paste-tabs" class="nav nav-tabs">
9 <li class="active"><%= link_to 'Plain', '#plain', :data => { :toggle => 'tab' } %></li> 9 <li class="active"><%= link_to 'Plain', '#plain', :data => { :toggle => 'tab' } %></li>
10 <li><%= link_to 'Highlight', '#highlight', :data => { :toggle => 'tab' } %></li> 10 <li><%= link_to 'Highlight', '#highlight', :data => { :toggle => 'tab' } %></li>
11 <li><%= link_to 'Markdown', '#markdown', :data => { :toggle => 'tab' } %></li> 11 <li><%= link_to 'Markdown', '#markdown', :data => { :toggle => 'tab' } %></li>
12 </ul> 12 </ul>
13 <div class="tab-content"> 13 <div class="tab-content">