Class: Tenon::PageDecorator

Inherits:
ApplicationDecorator show all
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_titleObject



3
4
5
6
7
8
9
# File 'app/decorators/tenon/page_decorator.rb', line 3

def option_title
  ot = ''
  ot << '&nbsp;' * ((@object.depth || 0) * 3)
  ot << '- ' if (@object.depth || 0) > 0
  ot << @object.title
  ot.html_safe
end