Class: ContentProviders::LearnLessonsIndexProvider

Inherits:
BitCore::ContentProvider
  • Object
show all
Defined in:
app/models/content_providers/learn_lessons_index_provider.rb

Overview

Provides a view of current learning tools: videos and lessons

Constant Summary collapse

DAYS_IN_WEEK =
7

Instance Method Summary collapse

Instance Method Details

#render_current(options) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'app/models/content_providers/learn_lessons_index_provider.rb', line 7

def render_current(options)
  membership = options.participant.active_membership

  options.view_context.render(
    template: "think_feel_do_engine/learn/lessons_index",
    locals: {
      weekly_tasks: weekly_tasks(options.participant,
                                 membership,
                                 options.app_context),
      week_in_study: membership.week_in_study,
      tool: content_module.tool
    }
  )
end

#show_nav_link?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'app/models/content_providers/learn_lessons_index_provider.rb', line 22

def show_nav_link?
  false
end