Class: Spotlight::HomePage

Inherits:
Page
  • Object
show all
Extended by:
FriendlyId
Defined in:
app/models/spotlight/home_page.rb

Overview

Exhibit home page

Constant Summary

Constants inherited from Page

Page::MAX_PAGES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Page

#about_page?, #clone_for_locale, #content, #content=, #content?, #content_changed!, #content_type, #feature_page?, #featured_image, #home_page?, #lock!, #should_generate_new_friendly_id?, #thumbnail_image_url, #title, #to_partial_path, #top_level_page?, #top_level_page_or_self, #translated_page_for, #updated_after?

Class Method Details

.default_title_textObject



16
17
18
# File 'app/models/spotlight/home_page.rb', line 16

def default_title_text
  I18n.t('spotlight.pages.index.home_pages.title')
end

Instance Method Details

#display_sidebar?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'app/models/spotlight/home_page.rb', line 25

def display_sidebar?
  display_sidebar
end

#should_display_title?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'app/models/spotlight/home_page.rb', line 21

def should_display_title?
  display_title?
end