-
- Downloads
Implement frontend to allow specific people to access protected branches.
1. While creating a protected branch, you can set a single user / role for each setting ("Allowed to Merge", "Allowed to Push"). 2. More users / roles can be set subsequently. 3. Repurposed 'users_select.js.coffee` for the needs of this page. 4. Move protected branch settings to the `show` page. - Too many settings on the single index page can be overwhelming. Also, if the number of users that can access a protected branch is large, the amount of space between protected branches in the table can be unwieldy. - This is the simplest design I can think of - we can use this until we have someone from the frontend/ux team take a look at this. - Move protected branches javascript under a `protected_branches` directory. - The dropdowns don't show access levels / users that have already been selected. - Allow deleting access levels using two new access level controllers.
parent
d78ab154
No related branches found
No related tags found
Showing
- app/assets/javascripts/protected_branches_access_select_ee.js.es6 120 additions, 0 deletions...ts/javascripts/protected_branches_access_select_ee.js.es6
- app/assets/stylesheets/pages/projects.scss 9 additions, 0 deletionsapp/assets/stylesheets/pages/projects.scss
- app/controllers/projects/application_controller.rb 1 addition, 0 deletionsapp/controllers/projects/application_controller.rb
- app/controllers/projects/protected_branches/application_controller.rb 7 additions, 0 deletions...ers/projects/protected_branches/application_controller.rb
- app/controllers/projects/protected_branches/merge_access_levels_controller.rb 15 additions, 0 deletions...ects/protected_branches/merge_access_levels_controller.rb
- app/controllers/projects/protected_branches/push_access_levels_controller.rb 15 additions, 0 deletions...jects/protected_branches/push_access_levels_controller.rb
- app/controllers/projects/protected_branches_controller.rb 6 additions, 3 deletionsapp/controllers/projects/protected_branches_controller.rb
- app/helpers/dropdowns_helper.rb 10 additions, 1 deletionapp/helpers/dropdowns_helper.rb
- app/views/projects/protected_branches/_access_settings.html.haml 62 additions, 0 deletions...ws/projects/protected_branches/_access_settings.html.haml
- app/views/projects/protected_branches/_branches_list.html.haml 1 addition, 0 deletions...iews/projects/protected_branches/_branches_list.html.haml
- app/views/projects/protected_branches/_protected_branch.html.haml 4 additions, 1 deletion...s/projects/protected_branches/_protected_branch.html.haml
- app/views/projects/protected_branches/_protected_branch_access_summary.html.haml 9 additions, 0 deletions...ected_branches/_protected_branch_access_summary.html.haml
- app/views/projects/protected_branches/show.html.haml 8 additions, 1 deletionapp/views/projects/protected_branches/show.html.haml
- config/routes.rb 7 additions, 1 deletionconfig/routes.rb
Loading
| Loading
| @@ -662,6 +662,15 @@ pre.light-well { |
} | ||
} | ||
a.allowed-to-merge, a.allowed-to-push { | ||
cursor: pointer; | ||
cursor: hand; | ||
|
||
} | ||
.protected-branch-push-access-list, .protected-branch-merge-access-list { | ||
a { color: #fff; } | ||
} | ||
.protected-branches-list { | ||
a { | ||
color: $gl-gray; | ||
Loading
| Loading
|