add theme1 with subnavigation first setup kind of ugly layout
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user