Class: ContentProviders::ModuleIndexProvider

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

Overview

Provides a set of links to ContentModules in the current context.

Instance Method Summary collapse

Instance Method Details

#render_current(options) ⇒ Object



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

def render_current(options)
  content_modules = get_content_modules(options)
  participant = options.participant

  options.view_context.render(
    template: "think_feel_do_engine/participants/content_modules/index",
    locals: {
      participant: participant,
      content_modules: content_modules,
      didactic_modules: content_modules.non_visualization.didactic,
      non_didactic_modules: content_modules.non_visualization.not_didactic,
      membership: options
                    .view_context
                    .view_membership(participant, participant.active_group)
    }
  )
end

#show_nav_link?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'app/models/content_providers/module_index_provider.rb', line 23

def show_nav_link?
  false
end