fix menues

This commit is contained in:
2023-01-21 23:34:57 +02:00
parent 0a07042797
commit 10bdfa39cd
4 changed files with 34 additions and 15 deletions

View File

@ -54,4 +54,22 @@ module ApplicationHelper
rows
end
def main_menu
[["/members" , "Volunteers"],["/stories" , "Stories"], ["/info" , "Info"],
["/arriving" , "Arriving"],["/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