Class: PageHeaderPresenter

Inherits:
SimpleDelegator
  • Object
show all
Includes:
ContentImage
Defined in:
app/presenters/page_header_presenter.rb

Constant Summary

Constants included from ContentImage

ContentImage::DEFAULT_IMAGE, ContentImage::MISSING_WOOPLE_IMAGE

Instance Method Summary collapse

Methods included from ContentImage

#image

Instance Method Details

#completed_classObject



15
16
17
# File 'app/presenters/page_header_presenter.rb', line 15

def completed_class
  'completed' if header.completed?
end

#image_classObject



11
12
13
# File 'app/presenters/page_header_presenter.rb', line 11

def image_class
  'page-header-with-image' if has_image?
end

#titleObject



7
8
9
# File 'app/presenters/page_header_presenter.rb', line 7

def title
  name || header.title
end