Class: Hyrax::HomepageController

Inherits:
ApplicationController
  • Object
show all
Includes:
Blacklight::AccessControls::Catalog, Blacklight::SearchContext
Defined in:
app/controllers/hyrax/homepage_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



12
13
14
15
16
17
18
19
# File 'app/controllers/hyrax/homepage_controller.rb', line 12

def index
  @presenter = presenter_class.new(current_ability, collections)
  @featured_researcher = ContentBlock.for(:researcher)
  @marketing_text = ContentBlock.for(:marketing)
  @featured_work_list = FeaturedWorkList.new
  @announcement_text = ContentBlock.for(:announcement)
  recent
end