fixing menues (mobile mostly)
This commit is contained in:
@ -25,4 +25,23 @@ module ApplicationHelper
|
||||
image_tag(image , alt: someone.name , class: classes )
|
||||
end
|
||||
|
||||
def main_menu
|
||||
[["/retreats" , "Retreats"], ["/studios" , "Studios"],
|
||||
["/makerspace" , "Makerspace"],["/coworking" , "Coworking"],
|
||||
["/about" , "About"], ]
|
||||
end
|
||||
def member_memu
|
||||
items =[["/forum" ,"Forum"] , [main_app.member_path(current_member) , "Settings"]]
|
||||
if current_member.admin? and !Rails.env.production?
|
||||
items << [merged.pages_path(), "CMS" ]
|
||||
end
|
||||
items
|
||||
end
|
||||
def mobile_menu
|
||||
if current_member
|
||||
member_memu
|
||||
else
|
||||
[main_app.member_session_path, "Login"]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user