summaryrefslogtreecommitdiff
path: root/app/views/projects/protected_branches/_branches_list.html.haml
Commit message (Collapse)AuthorAgeFilesLines
* Backports EE changes from disabling branch unprotect UIJames Edwards-Jones2018-04-251-1/+1
|
* Use shared protected branches views for CE-partialsBob Van Landuyt2017-07-141-27/+3
|
* Created the gear settings entry and created a way to initialize both ↵Jose Ivan Vargas2017-03-061-1/+1
| | | | | | | | sections with one controller Changed views to partials, created the repository view, created a repository_helper to further aid the creation of variables across different controllers
* Fix .panel-title styleAlfredo Sumaran2016-08-051-1/+2
| | | | | | Since .panel-heading is a bit different from bootstrap, using .panel-title for h3 looks different. So with this .panel-title will look good again inheriting custom properties our app sets for .panel-heading
* Fix spelling. `braches` to `branches`Alfredo Sumaran2016-08-051-1/+1
|
* Fix class names and move each class to its own fileAlfredo Sumaran2016-08-051-5/+7
|
* Update layout and JS for create protected branch.Alfredo Sumaran2016-08-051-24/+23
| | | | Also updates protect branch list
* Implement final review comments from @rymai.Timothy Andrew2016-07-291-3/+0
| | | | | | | | | | | | | | | | 1. Instantiate `ProtectedBranchesAccessSelect` from `dispatcher` 2. Use `can?(user, ...)` instead of `user.can?(...)` 3. Add `DOWNTIME` notes to all migrations added in !5081. 4. Add an explicit `down` method for migrations removing the `developers_can_push` and `developers_can_merge` columns, ensuring that the columns created (on rollback) have the appropriate defaults. 5. Remove duplicate CHANGELOG entries. 6. Blank lines after guard clauses.
* Use `Gitlab::Access` to protected branch access levels.Timothy Andrew2016-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 1. It makes sense to reuse these constants since we had them duplicated in the previous enum implementation. This also simplifies our `check_access` implementation, because we can use `project.team.max_member_access` directly. 2. Use `accepts_nested_attributes_for` to create push/merge access levels. This was a bit fiddly to set up, but this simplifies our code by quite a large amount. We can even get rid of `ProtectedBranches::BaseService`. 3. Move API handling back into the API (previously in `ProtectedBranches::BaseService#translate_api_params`. 4. The protected branch services now return a `ProtectedBranch` rather than `true/false`. 5. Run `load_protected_branches` on-demand in the `create` action, to prevent it being called unneccessarily. 6. "Masters" is pre-selected as the default option for "Allowed to Push" and "Allowed to Merge". 7. These changes were based on a review from @rymai in !5081.
* Favor labels like `Allowed to push` over `Allowed To Push`.Timothy Andrew2016-07-291-2/+2
| | | | | - Based on feedback from @axil - http://docs.gitlab.com/ce/development/ui_guide.html#buttons
* Allow setting "Allowed To Push/Merge" while creating a protected branch.Timothy Andrew2016-07-291-1/+1
| | | | | | | | | | | | | | 1. Reuse the same dropdown component that we used for updating these settings (`ProtectedBranchesAccessSelect`). Have it accept options for the parent container (so we can control the elements it sees) and whether or not to save changes via AJAX (we need this for update, but not create). 2. Change the "Developers" option to "Developers + Masters", which is clearer. 3. Remove `developers_can_push` and `developers_can_merge` from the model, since they're not needed anymore.
* Add "No One Can Push" to the protected branches UI.Timothy Andrew2016-07-291-18/+19
| | | | | | | | | | 1. Move to dropdowns instead of checkboxes. One each for "Allowed to Push" and "Allowed to Merge" 2. Refactor the `ProtectedBranches` coffeescript class into `ProtectedBranchesAccessSelect`. 3. Modify the backend to accept the new parameters.
* Revert "Revert "Merge branch '18193-developers-can-merge' into 'master' ""Rémy Coutable2016-07-181-0/+2
| | | | | | | | This reverts commit 530f5158e297f3cde27f3566cfe13bad74ba3b50. See !4892. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Revert "Merge branch '18193-developers-can-merge' into 'master' "Robert Speicher2016-07-131-2/+0
| | | | | This reverts commit 9ca633eb4c62231e4ddff5466c723cf8e2bdb25d, reversing changes made to fb229bbf7970ba908962b837b270adf56f14098f.
* Implement last round of review comments from !4892.18193-developers-can-mergeTimothy Andrew2016-07-131-2/+2
| | | | | | | | 1. Fix typos, minor styling errors. 2. Use single quotes rather than double quotes in `user_access_spec`. 3. Test formatting.
* Added "developers can merge" setting to protected branchesMathias Vestergaard2016-07-131-0/+2
| | | | | - Cherry-picked from `mvestergaard:branch-protection-dev-merge` - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4220
* Modify the frontend for wildcard protected branches.Timothy Andrew2016-07-051-24/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Allow entering any branch name for a protected branch. - Either pick from a list of options, or enter it manually - You can enter wildcards. 2. Display branches matching a protected branch. - Add a `ProtectedBranches#show` page that displays the branches matching the given protected branch, or a message if there are no matches. - On the `index` page, display the last commit for an exact match, or the number of matching branches for a wildcard match. - Add an `iid` column to `protected_branches` - this is what we use for the `show` page URL. - On the off chance that this feature is unnecessary, this commit encapsulates it neatly, so it can be removed without affecting anything else. 3. Remove the "Last Commit" column from the list of protected branches. - There's no way to pull these for wildcard protected branches, so it's best left for the `show` page. - Rename the `@branches` instance variable to `@protected_branches` - Minor styling changes with the "Unprotect" button - floated right like the "Revoke" button for personal access tokens 4. Paginate the list of protected branches. 5. Move the instructions to the left side of the page.
* Fixed project settings alert colorsdeploy-key-alert-colorPhil Hughes2016-05-161-1/+1
| | | | In another MR, the class name was changed making all the alert messages have no background color
* Protected branches UIprotected-branches-uiPhil Hughes2016-04-261-25/+31
| | | | Closes #14027
* Make tables full width.Douwe Maan2015-10-191-29/+30
|
* Refactor buttonsDmitriy Zaporozhets2015-03-141-1/+1
|
* Upgrade to Rails 4.1.9Vinnie Okada2015-02-141-4/+4
| | | | | | Make the following changes to deal with new behavior in Rails 4.1.2: * Use nested resources to avoid slashes in arguments to path helpers.
* Inline protected branches listDmitriy Zaporozhets2014-12-291-13/+11
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Move styling to css.Marin Jankovski2014-12-261-8/+8
|
* Move protected branches list to a partial.Marin Jankovski2014-12-261-0/+36