fixing menues (mobile mostly)

This commit is contained in:
2023-01-21 20:25:58 +02:00
parent 0360afc762
commit d3c23cdd74
10 changed files with 37 additions and 22 deletions

View File

@ -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