Added parent-child relationship to pages to visualize a breadcrump and subpages.

This commit is contained in:
Benjamin Meichsner 2009-08-12 18:41:25 +02:00
parent 00619ccf55
commit a8c93c08b7
24 changed files with 513 additions and 51 deletions

View file

@ -95,8 +95,13 @@ module ApplicationHelper
end
# to set a title for both the h1-tag and the title in the header
def title(page_title)
content_for(:title) { page_title }
def title(page_title, show_title = true)
@content_for_title = page_title.to_s
@show_title = show_title
end
def show_title?
@show_title
end
def tab_is_active?(tab)