Class: Spotlight::HomePagesController
- Inherits:
-
PagesController
show all
- Includes:
- Blacklight::SolrHelper
- Defined in:
- app/controllers/spotlight/home_pages_controller.rb
Instance Method Summary
collapse
#create, #destroy, #new, #update, #update_all
Instance Method Details
#_prefixes ⇒ Object
27
28
29
|
# File 'app/controllers/spotlight/home_pages_controller.rb', line 27
def _prefixes
@_prefixes ||= super + ['catalog']
end
|
#edit ⇒ Object
7
8
9
10
11
|
# File 'app/controllers/spotlight/home_pages_controller.rb', line 7
def edit
add_breadcrumb t(:'spotlight.curation.sidebar.feature_pages'), exhibit_feature_pages_path(@exhibit)
add_breadcrumb @page.title_or_default, edit_home_page_path(@page)
super
end
|
#index ⇒ Object
13
14
15
|
# File 'app/controllers/spotlight/home_pages_controller.rb', line 13
def index
redirect_to exhibit_feature_pages_path(@exhibit)
end
|
#show ⇒ Object
17
18
19
20
21
22
23
24
25
|
# File 'app/controllers/spotlight/home_pages_controller.rb', line 17
def show
(@response, @document_list) = get_search_results
if @page.nil? or !@page.published?
render '/catalog/index'
else
render 'show'
end
end
|