add theme1 with subnavigation first setup kind of ugly layout

This commit is contained in:
2015-10-12 18:09:33 +02:00
parent ea287f2305
commit a3b3536adc
8 changed files with 103 additions and 4 deletions
+7 -3
View File
@@ -36,10 +36,14 @@ private
end
def go_to_page_path(record, locale: I18n.locale)
str = case record
when Page then record.name
else record
case record
when Page
str = record.name
locale = record.locale
else
str = record
end
locale ||= I18n.locale
main_app.page_path(str, locale: locale)
end
helper_method :go_to_page_path