Module: Course::Video::VideosHelper

Defined in:
app/helpers/course/video/videos_helper.rb

Instance Method Summary collapse

Instance Method Details

#display_video_tabsObject


3
4
5
6
7
8
9
10
11
# File 'app/helpers/course/video/videos_helper.rb', line 3

def display_video_tabs
  return nil if current_course.video_tabs.count == 1
  tabs do
    current_course.video_tabs.each do |tab|
      concat(nav_to(format_inline_text(tab.title),
                    course_videos_path(current_course, tab: tab)))
    end
  end
end