diff --git a/app/views/layouts/_member_menu.haml b/app/views/layouts/_member_menu.haml index 2ca7b48..24bf8de 100644 --- a/app/views/layouts/_member_menu.haml +++ b/app/views/layouts/_member_menu.haml @@ -4,9 +4,10 @@ Forum %a.block.rounded-lg.px-4.py-2.text-sm.text-gray-500.hover:bg-gray-50.hover:text-gray-700{:href => main_app.member_path(current_member), :role => "menuitem"} Profile - - if current_member.admin? - %a.block.rounded-lg.px-4.py-2.text-sm.text-gray-500.hover:bg-gray-50.hover:text-gray-700{:href => merged.pages_path(), :role => "menuitem"} - CMS + - unless Rails.env.production? + - if current_member.admin? + %a.block.rounded-lg.px-4.py-2.text-sm.text-gray-500.hover:bg-gray-50.hover:text-gray-700{:href => merged.pages_path(), :role => "menuitem"} + CMS = form_tag( main_app.destroy_member_session_path , {method: :delete } ) do %button.flex.w-full.items-center.gap-2.rounded-lg.px-4.py-2.text-sm.text-blue-700.hover:bg-red-50{:role => "menuitem", :type => "submit"} %svg.h-4.w-4{:fill => "none", :stroke => "currentColor", "stroke-width" => "2", :viewbox => "0 0 24 24", :xmlns => "http://www.w3.org/2000/svg"} diff --git a/config/deploy.rb b/config/deploy.rb index 565f329..d56122f 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -55,8 +55,8 @@ task :deploy do invoke :'deploy:link_shared_paths' invoke :'bundle:install' invoke :'rails:assets_precompile' - invoke :'deploy:cleanup' invoke :'rails:db_migrate' + invoke :'deploy:cleanup' on :launch do in_path(fetch(:current_path)) do