Skip to content

Instantly share code, notes, and snippets.

View palderson's full-sized avatar

Peter Alderson palderson

View GitHub Profile
@palderson
palderson / _lesson_content.html.haml
Created September 22, 2012 19:20
Rendering partials within nested tabs
.tab-content
- @course.lessons.each_with_index do |lesson, index|
%div{:class => "tab-pane #{'active' if index == 0}", :id => "lesson_#{lesson.id}"}
.page-header
%h2{:class => 'inline'}
Lesson:
= raw lesson.lesson_name
%small{:class => 'btn-group', :style => "float:right"}
= link_to("#", :class => "btn-large btn-info prevtab") do
<i class="icon-chevron-left icon-white"></i> Back