summaryrefslogtreecommitdiff
path: root/app
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Changed the placeholder text and modified the css class to make it ↵revert-placeholderDarby2015-06-182-5/+24
| | | | | | visible" This reverts commit c39c823421e9dfd3add4cb49a82fa32831797aa0.
* Merge branch 'fix-labels-permisssion-check' into 'master'Douwe Maan2015-06-183-7/+3
|\ | | | | | | | | | | | | | | | | | | Fix 403 Access Denied error messages when accessing Labels section in a project This would occur if the project's issues or merge requests features were disabled. The change in 9bcd36396b9 caused `can?(current_user, :read_merge_request, project)` to be false if the merge request feature were disabled, so `authorize_labels!` needs to be changed accordingly. Closes #1813 See merge request !836
| * Fix 403 Access Denied error messages when accessing Labels section in a ↵Stan Hu2015-06-183-7/+3
| | | | | | | | | | | | project that has MRs disabled but issues enabled Closes #1813
* | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets2015-06-172-2/+8
|\ \
| * \ Merge branch 'swellard-issue-6123' into 'master'Dmitriy Zaporozhets2015-06-171-1/+3
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix duplicate 'Email has already been taken' message when creating a user devise :validatable and validates uniqueness set on the user email field cause 2 validations to fire when creating a new user with an email address already in use, Issue 6123 @stanhu Thanks for your input on merge request 807, I'll close that one in favour of this as I have added tests See merge request !817
| | * | Fix duplicate 'Email has already been taken' message when creating a user, ↵swellard2015-06-161-1/+1
| | | | | | | | | | | | | | | | updated comments
| | * | Fix duplicate 'Email has already been taken' message when creating a userswellard2015-06-161-1/+3
| | | |
| * | | Merge branch 'rs-dev-issue-2373' into 'master'Dmitriy Zaporozhets2015-06-171-1/+5
| |\ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | Prefix 2FA issuer with the GitLab host (e.g., 'dev.gitlab.org') https://dev.gitlab.org/gitlab/gitlabhq/issues/2373 See merge request !821
| | * | Prefix 2FA issuer with the GitLab host (e.g., 'dev.gitlab.org')rs-dev-issue-2373Robert Speicher2015-06-161-1/+5
| | | |
* | | | Merge branch 'placeholder_text'Dmitriy Zaporozhets2015-06-172-24/+5
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: Gemfile.lock
| * | | Changed the placeholder text and modified the css class to make it visibleplaceholder_textDarby2015-06-162-24/+5
| |/ /
* | | Bootlint: Fix incorrectly nested `form-group` elementRobert Speicher2015-06-161-2/+2
| | |
* | | Bootlint: Add missing `type` attribute for buttonsRobert Speicher2015-06-162-1/+3
| | |
* | | Bootlint: Modals no longer need a '.hide' classRobert Speicher2015-06-168-8/+8
| | |
* | | Bootlint: Use offset grid classes instead of empty divsRobert Speicher2015-06-1610-18/+10
| | |
* | | Merge branch 'support-comment-parallel-diff' into 'master'Douwe Maan2015-06-168-36/+82
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support commenting on a diff in side-by-side view ### What does this MR do? This MR adds support for commenting on a diff in side-by-side (aka parallel) view. It also fixes a JavaScript bug (see !779) when the comment button is clicked on a line that already has a comment. There is an existing bug where the comment count is not updated when a new comment is added. I'll send a MR for that later. ### Why was this MR needed? Commenting only worked in "inline" mode. Often the side-by-side view is more conducive to writing comments. ### What are the relevant issue numbers? Closes https://github.com/gitlabhq/gitlabhq/issues/9283 ### Screenshot ![image](https://gitlab.com/stanhu/gitlab-ce/uploads/3d0a3213fde38844a681a826da18139b/image.png) See merge request !810
| * | Support commenting on a diff in side-by-side viewStan Hu2015-06-168-36/+82
| | | | | | | | | | | | Closes https://github.com/gitlabhq/gitlabhq/issues/9283
* | | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets2015-06-161-1/+3
|\ \ \ | |/ /
| * | Merge branch 'fix-ext-issue-webbased-hooks' into 'master'Douwe Maan2015-06-161-1/+3
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix hooks for web based events with external issue references The creation of cross references for external issues (which would fail) is now prevented. This fixes a 500 error and the execution of hooks when creating a merge request or commenting on one. Fixes #1650, GH-9333. This regression might have been introduced by 8f8a8ab32bca8fdc79d7a5115eabbd015dd44c02. There is actually a TODO by @rspeicher mentioning external issues which is lost (unhandled) in a later commit. This fix is related to !766 and !804 which fix a similar issue for hooks for Git based events. See merge request !794
| | * Fix hooks for web based events with external issue referencesDaniel Gerhardt2015-06-141-1/+3
| | | | | | | | | | | | | | | | | | | | | The creation of cross references for external issues (which would fail) is now prevented. Fixes #1650, GH-9333.
* | | Merge branch 'header_layout_issue' into 'master'Douwe Maan2015-06-164-17/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix layout issue in header title truncation. @douwe Thanks for reviewing this fix for the issue mentioned in https://dev.gitlab.org/gitlab/gitlabhq/issues/2314#note_48539. **BEFORE** ![before](https://dev.gitlab.org/gitlab/gitlabhq/uploads/4ffb35f77155a92c64cfe36c66987eb0/before.gif) **AFTER** ![after](https://dev.gitlab.org/gitlab/gitlabhq/uploads/2bb2d0c4a93164f6d47e24cdcb9a106b/after.gif) See merge request !1867
| * | | Fix layout issue in header title truncation.Nicolas2015-06-164-17/+14
| |/ /
* | | Merge branch 'applications_form' into 'master'Douwe Maan2015-06-163-14/+25
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix UI issues in Applications form @douwe Thanks for reviewing this small fix. --- Before: ![application_form_before](https://dev.gitlab.org/gitlab/gitlabhq/uploads/11fbee17ad6a4c9456cd7d6cba5ae429/application_form_before.png) --- After: ![application_form_after](https://dev.gitlab.org/gitlab/gitlabhq/uploads/0c64214ccda6c77095f468fcb8c748f3/application_form_after.png) See merge request !1859
| * | Fix consistency issues on New Application page.Nicolas2015-06-152-3/+9
| | |
| * | Fix layout issue when New Application validation fails.Nicolas2015-06-151-10/+15
| | |
| * | Highlight Applications nav item when validation fails.Nicolas2015-06-141-1/+1
| |/
* | Look for .gitlab-ci.yml only if checkout_sha is presentfix-gitlab-ci-ymlDmitriy Zaporozhets2015-06-151-9/+13
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Merge branch 'fix-ext-issue-tracker-hook' into 'master'Dmitriy Zaporozhets2015-06-151-10/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix external issue tracker hook/test for HTTPS URLs If HTTPS was used for the 'project_url' of an external issue tracker, an error was raised because a HTTP connection was established to the default HTTPS port. The code has been corrected and simplified by using HTTParty. Additionally, the request now is made directly to the 'project_url' instead of the extracted root path. ## The bug is reproducible on gitlab.com 1. Set up a new external issue service (I used Redmine) 2. Set the project URL to 'http://example.com/redmine/projects/x' and click on 'Test settings' => Ok 3. Now set the URL to 'https://example.com/redmine/projects/x' and test it again => 500 ## What is actually happening? Web servers behave differently when a non-SSL connection is established to a SSL port: - Nginx / Apache 2.4: Status code 400 - Apache 2.2: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">... (no status code line is sent) - example.com: Empty response, no status code line ## Relevant log entries ``` 2015-06-04T11:10:47.972Z 16785 TID-exfks WARN: {"retry"=>true, "queue"=>"project_web_hook", "class"=>"ProjectServiceWorker", "args"=>[...], "error_message"=>"wrong status line: \"<!DOCTYPE HTML PUBLIC \\\"-//IETF//DTD HTML 2.0//EN\\\">\"", "error_class"=>"Net::HTTPBadResponse", ...} 2015-06-04T11:10:47.972Z 16785 TID-exfks WARN: wrong status line: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">" 2015-06-04T11:10:47.972Z 16785 TID-exfks WARN: /usr/lib/ruby/2.1.0/net/http/response.rb:41:in `read_status_line' [...] /home/git/gitlab-7.11.4/app/models/project_services/issue_tracker_service.rb:88:in `execute' /home/git/gitlab-7.11.4/app/workers/project_service_worker.rb:8:in `perform' [...] ``` See merge request !767
| * | Fix external issue tracker hook/test for HTTPS URLsdgerhardt/gitlab-ce-fix-ext-issue-tracker-hookDaniel Gerhardt2015-06-051-10/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | If HTTPS was used for 'project_url', an error was raised because a HTTP connection was established to the default HTTPS port. The code has been corrected and simplified by using HTTParty. Additionally, the request now is made directly to the 'project_url' instead of the extracted root path.
* | | Fix text align in last push eventDmitriy Zaporozhets2015-06-151-1/+1
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | Merge branch 'rs-dev-issue-2228' into 'master'Dmitriy Zaporozhets2015-06-1529-224/+312
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow user to customize default Dashboard page Renames the "Design" profile page to "Preferences" and adds a field to customize the default Dashboard page: > ![Screen_Shot_2015-06-11_at_11.12.53_PM](https://gitlab.com/gitlab-org/gitlab-ce/uploads/b5282a3be7861d1148528c6bc9e7a0e0/Screen_Shot_2015-06-11_at_11.12.53_PM.png) See merge request !778
| * | | Refactor RootControllerRobert Speicher2015-06-131-2/+12
| | | |
| * | | Refactor dashboard_choicesRobert Speicher2015-06-131-13/+16
| | | |
| * | | Remove redundant help text from custom dashboard selectionRobert Speicher2015-06-131-2/+0
| | | |
| * | | Fix alignment of Behavior form; add documentation linkRobert Speicher2015-06-131-2/+4
| | | |
| * | | Spec the failure cases for PreferencesController#updateRobert Speicher2015-06-131-4/+9
| | | |
| * | | Make the dashboard choice text match the text in the sidebarRobert Speicher2015-06-131-2/+2
| | | |
| * | | Add feature specs for default dashboard preferenceRobert Speicher2015-06-132-1/+6
| | | |
| * | | Add a form field to customize the dashboard preferenceRobert Speicher2015-06-132-2/+36
| | | |
| * | | Account for RootController for dashboard navigation and Dispatch JSRobert Speicher2015-06-132-2/+2
| | | |
| * | | Add RootControllerRobert Speicher2015-06-132-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | This controller is now the target for `root_url`. It sub-classes DashboardController so we can render the old default without a redirect if the user hasn't customized their dashboard location.
| * | | Add `dashboard` attribute to User modelRobert Speicher2015-06-132-1/+7
| | | |
| * | | Update markup/styling for syntax highlight theme preferenceRobert Speicher2015-06-132-9/+7
| | | |
| * | | Simplify the javascript behavior for Preference updatingRobert Speicher2015-06-133-14/+10
| | | |
| * | | Fix a few remaining references to the old Theme names/IDsRobert Speicher2015-06-131-1/+1
| | | |
| * | | Remove js handler from Profiles#updateRobert Speicher2015-06-131-1/+0
| | | | | | | | | | | | | | | | | | | | It was only used for the appearance live updating, which is now handled by Profiles::Preferences#update
| * | | Add PreferencesHelper moduleRobert Speicher2015-06-136-34/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Consolidates the helpers related to user preferences. Renames `app_theme` to `user_application_theme` to better explain what it is.
| * | | Add Gitlab::Themes module; remove Gitlab::ThemeRobert Speicher2015-06-134-41/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Now we can simply loop through all themes, among other things. This also removes the `dark_theme` / `light_theme` classes and the `theme_type` helper, since they weren't used anywhere.
| * | | Consolidate theme stylesheets into oneRobert Speicher2015-06-1311-107/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since they're all defined by a mixin, it didn't provide any benefit to have them in separate files. This also adds variables defining the basic color of each theme so we can re-use them in the previews.
| * | | Move the "Design" templates and logic to PreferencesRobert Speicher2015-06-137-70/+79
| | | |