Class: Tenon::PageDecorator
- Inherits:
-
ApplicationDecorator
- Object
- Draper::Decorator
- ApplicationDecorator
- Tenon::PageDecorator
- Defined in:
- app/decorators/tenon/page_decorator.rb
Instance Method Summary collapse
Methods inherited from ApplicationDecorator
#delete_link, #edit_link, #edit_path, #path, #published?
Instance Method Details
#option_title ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/decorators/tenon/page_decorator.rb', line 3 def option_title ot = '' ot << ' ' * ((@object.depth || 0) * 3) ot << '- ' if (@object.depth || 0) > 0 ot << @object.title ot.html_safe end |