File tree Expand file tree Collapse file tree 4 files changed +14
-6
lines changed
github_integration/lib/open_project/github_integration
gitlab_integration/lib/open_project/gitlab_integration Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -3626,6 +3626,7 @@ en:
36263626 label_ical_access_key_generation_hint : " Automatically generated when subscribing to a calendar."
36273627 label_ical_access_key_latest : " latest"
36283628 label_ical_access_key_revoke : " Revoke"
3629+ label_integrations : " Integrations"
36293630 label_add_column : " Add column"
36303631 label_applied_status : " Applied status"
36313632 label_archive_project : " Archive project"
Original file line number Diff line number Diff line change @@ -55,10 +55,16 @@ def self.settings
5555 settings :
5656 ) do
5757 ::Redmine ::MenuManager . map ( :admin_menu ) do |menu |
58+ menu . push :admin_integrations ,
59+ { controller : "/github_integration/admin/settings" , action : "show" } ,
60+ if : -> ( _ ) { User . current . admin? } ,
61+ icon : :"git-compare" ,
62+ caption : :label_integrations
5863 menu . push :admin_github_integration ,
5964 { controller : "/github_integration/admin/settings" , action : "show" } ,
65+ parent : :admin_integrations ,
6066 if : -> ( _ ) { User . current . admin? } ,
61- caption : :label_github_integration ,
67+ caption : "GitHub" ,
6268 icon : "mark-github"
6369 end
6470
Original file line number Diff line number Diff line change @@ -56,8 +56,9 @@ def self.settings
5656 ::Redmine ::MenuManager . map ( :admin_menu ) do |menu |
5757 menu . push :admin_gitlab_integration ,
5858 { controller : "/gitlab_integration/admin/settings" , action : "show" } ,
59+ parent : :admin_integrations ,
5960 if : -> ( _ ) { User . current . admin? } ,
60- caption : :label_gitlab_integration ,
61+ caption : "GitLab" ,
6162 icon : :"op-logo-gitlab"
6263 end
6364
Original file line number Diff line number Diff line change 4747 context "without having any menu items hidden in configuration" do
4848 it "must display all menu items" do
4949 expect ( page ) . to have_test_selector ( "menu-blocks--container" )
50- expect ( page ) . to have_test_selector ( "menu-block" , count : 22 )
51- expect ( page ) . to have_test_selector ( "op-menu--item-action" , count : 23 ) # All plus 'overview'
50+ expect ( page ) . to have_test_selector ( "menu-block" , count : 23 )
51+ expect ( page ) . to have_test_selector ( "op-menu--item-action" , count : 24 ) # All plus 'overview'
5252 end
5353 end
5454
5858 } do
5959 it "must not display the hidden menu items and blocks" do
6060 expect ( page ) . to have_test_selector ( "menu-blocks--container" )
61- expect ( page ) . to have_test_selector ( "menu-block" , count : 21 )
61+ expect ( page ) . to have_test_selector ( "menu-block" , count : 22 )
6262 expect ( page ) . not_to have_test_selector ( "menu-block" , text : I18n . t ( :label_color_plural ) )
6363
64- expect ( page ) . to have_test_selector ( "op-menu--item-action" , count : 22 ) # All plus 'overview'
64+ expect ( page ) . to have_test_selector ( "op-menu--item-action" , count : 23 ) # All plus 'overview'
6565 expect ( page ) . not_to have_test_selector ( "op-menu--item-action" , text : I18n . t ( :label_color_plural ) )
6666 end
6767 end
You can’t perform that action at this time.
0 commit comments