Class: PageHeaderPresenter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- PageHeaderPresenter
show all
- Includes:
- ContentImage
- Defined in:
- app/presenters/page_header_presenter.rb
Constant Summary
ContentImage::DEFAULT_IMAGE, ContentImage::MISSING_WOOPLE_IMAGE
Instance Method Summary
collapse
#image
Instance Method Details
#completed_class ⇒ Object
15
16
17
|
# File 'app/presenters/page_header_presenter.rb', line 15
def completed_class
'completed' if .completed?
end
|
#image_class ⇒ Object
11
12
13
|
# File 'app/presenters/page_header_presenter.rb', line 11
def image_class
'page-header-with-image' if has_image?
end
|
#title ⇒ Object
7
8
9
|
# File 'app/presenters/page_header_presenter.rb', line 7
def title
name || .title
end
|