Add cmtool to Qwaiter

This commit is contained in:
2013-03-03 14:21:29 +01:00
parent ba19316e16
commit a640255927
13 changed files with 115 additions and 69 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
= yield :footer
= link_to 'disclaimer', '#'
= link_to 'disclaimer', page_path('disclaimer')
'
= link_to 'privacy', '#'
= link_to 'privacy', page_path('privacy')
'
= link_to 'kernwaarden', '#'
= link_to 'kernwaarden', page_path('values')
+2 -1
View File
@@ -47,7 +47,8 @@ html lang="en"
.alert.alert-success
a.close data-dismiss="alert" ×
div= flash[:notice]
= yield :page_title
- if @page && @page.title.present?
h1.page-title= @page.title
= yield
#footer-wrap
.footer-shadow
+4 -6
View File
@@ -5,11 +5,9 @@
span.icon-bar
ul.nav
li[class=(current_page?(controller: '/dashboard', action: 'home') ? :active : nil)]= link_to t('menu.home'), root_path
li[class=(current_page?(controller: '/dashboard', action: 'about') ? :active : nil)]= link_to t('menu.about'), about_path
li[class=(current_page?(controller: '/pages', action: 'home') ? :active : nil)]= link_to t('menu.home'), root_path
li[class=(current_page?(controller: '/pages', action: 'show', name: 'about') ? :active : nil)]= link_to t('menu.about'), page_path('about')
.nav-collapse.collapse
ul.nav
li[class=(current_page?(controller: '/dashboard', action: 'clients') ? :active : nil)]= link_to t('menu.clients'), clients_path
li[class=(current_page?(controller: '/dashboard', action: 'bars_restaurants') ? :active : nil)]= link_to t('menu.bars_restaurants'), bars_restaurants_path
li[class=(current_page?(controller: '/dashboard', action: 'cartoon') ? :active : nil)]= link_to t('menu.cartoon'), cartoon_path
li[class=(current_page?(controller: '/dashboard', action: 'contact') ? :active : nil)]= link_to t('menu.contact'), contact_path
- Page.top_menu.each do |page|
li[class=(current_page?(controller: '/pages', action: 'show', name: page.name) ? :active : nil)]= link_to page.menu_text, page_path(page.name)