Method: WikiHelper#wiki_page_title
- Defined in:
- app/helpers/wiki_helper.rb
#wiki_page_title(page, action = nil) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/helpers/wiki_helper.rb', line 6 def wiki_page_title(page, action = nil) titles = [_('Wiki')] if page.persisted? titles << page.human_title (page.human_title) (page.slug) end titles << action if action page_title(*titles.reverse) (_('Wiki'), wiki_path(page.wiki)) end |