summaryrefslogtreecommitdiff
path: root/app
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup bootstrap variable example filerefactor-cssDmitriy Zaporozhets2015-03-171-741/+4
|
* More use of sass variables. Reject flatly gray colorsDmitriy Zaporozhets2015-03-175-24/+17
|
* Align services like in EE for easier mergingDmitriy Zaporozhets2015-03-171-4/+22
|
* Merge branch 'external_wiki' into 'master'Dmitriy Zaporozhets2015-03-185-2/+62
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for external wikis ## What does this MR do? This MR adds the possibility to replace the link to the internal wiki of gitlab with a custom link. Currently this is realised as a service. ## What Use Case does this MR solve? In my Company we already have a wiki System (Confluence). We have a policy to use the existing wiki, so we can't switch to the internal wiki Gitlab provides. This currently only leaves us two choices: 1. Disable the gitlab wiki. That means we completly loose the connection between wiki and code from the gitlab ui. 2. Create a simple wiki page with a link to our external wiki and hope that no one uses the internal one. Both solutions are not really good. So what can be done to improve the situation while making it as easy as possible for new developers to access both, wiki and gitlab? Replacing the wiki link kinda like the JIRA integration replaces the issues link looks like a good first step to me. :) This can probably be extended later to completly prevent access to the internal wiki (currently that's still possible if you know the link) or maybe to check if the link really points to a wiki. ## Screenshot: ![external_wiki_service](https://gitlab.com/uploads/gitlab-org/gitlab-ce/89b27cf068/external_wiki_service.png) See merge request !291
| * Add a service to support external wikisHannes Rosenögger2015-03-125-2/+62
| |
* | Fix email template css for project moved emailsDmitriy Zaporozhets2015-03-171-2/+2
| |
* | Merge branch 'css-vars' into 'master'Dmitriy Zaporozhets2015-03-1810-31/+31
|\ \ | | | | | | | | | | | | | | | More actively use css variabled to prevent colors duplication See merge request !1715
| * | More actively use css variabled to prevent colors duplicationDmitriy Zaporozhets2015-03-1710-31/+31
| | |
* | | Fix scroll for last push widgetDmitriy Zaporozhets2015-03-171-1/+3
|/ /
* | Merge branch 'fix_service_trigger_ui' into 'master'Douwe Maan2015-03-172-6/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix service UI There was a small bug in the service UI that caused an empty 'Trigger' label to be shown. After this change the 'Trigger' field is not shown when only one event type of supported. Before: ![Screen Shot 2015-03-16 at 7.40.31 PM](https://gitlab.com/uploads/dblessing/gitlab-ce/0457a0b918/Screen_Shot_2015-03-16_at_7.40.31_PM.png) I think in the future there are other things we can do to enforce at least one selected event type and also show the user what the singular event type is if only one is supported. That will take time to work out and this is definitely acceptable for the time. See merge request !395
| * | Fix UI bug regarding servicesDrew Blessing2015-03-172-6/+6
| | |
* | | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets2015-03-174-4/+4
|\ \ \ | |/ /
| * | Merge branch 'atom-xhtml-squashed' into 'master'Douwe Maan2015-03-174-4/+4
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix invalid Atom feeds when using emoji, horizontal rules, or images This is a fix for issues #880, #723, #1113. Markdown must be rendered to XHTML, not HTML, when generating summary content for Atom feeds. Otherwise, content-less tags like *img* and *hr* are not terminated and make the Atom XML invalid. Such tags are generated when issue descriptions, merge request descriptions, comments, or commit messages use emoji, horizontal rules, or images. To pass this option through from the relevant Haml templates to the proper place in the `gfm()` method, a new method `gfm_with_options()` is introduced. It reuses the options dictionary passed to `markdown()` and interprets options `xhtml` and `parse_tasks` from it (the latter was a convenient replacement for `gfm_with_tasks()`). `xhtml` is already interpreted by Redcarpet::Render::HTML, but that alone was not sufficient, because the post-processing in `gfm()` would convert its XHTML tags back to HTML. I found no way of passing additional optional options to the existing `gfm()` method without requiring updates to existing callers and without getting in the way of the existing optional arguments, but maybe someone who knows more about Ruby than I can think of one. Thorough review appreciated since this is the first time I have used Ruby. See merge request !344
| | * | Fix invalid Atom feeds when using emoji, horizontal rules, or images.Christian Walther2015-03-164-4/+4
| | | | | | | | | | | | | | | | Fixes issues #880, #723, #1113: Markdown must be rendered to XHTML, not HTML, when generating summary content for Atom feeds. Otherwise, content-less tags like <img> and <hr>, generated when issue descriptions, merge request descriptions, comments, or commit messages use emoji, horizontal rules, or images, are not terminated and make the Atom XML invalid.
* | | | Merge branch 'last-deploy-key' into 'master'Dmitriy Zaporozhets2015-03-172-2/+10
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Delete deploy key when last connection to a project is destroyed. Addresses #1959. See merge request !1710
| * | | | Satisfy Rubocop.Douwe Maan2015-03-171-2/+1
| | | | |
| * | | | Delete deploy key when last connection to a project is destroyed.Douwe Maan2015-03-172-2/+11
| |/ / /
* | | | Merge branch 'issue_subscription' into 'master'Dmitriy Zaporozhets2015-03-178-2/+138
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Subscription to issue/mr Fixes #1911 and #1909 ![joxi_screenshot_1426601822159](https://dev.gitlab.org/gitlab/gitlabhq/uploads/53021bc5783271322ab2dfba7598eaa3/joxi_screenshot_1426601822159.png) ![joxi_screenshot_1426601836423](https://dev.gitlab.org/gitlab/gitlabhq/uploads/244ff360fbd6f30980f8dad699400814/joxi_screenshot_1426601836423.png) See merge request !1702
| * | | improve UIValery Sizov2015-03-173-18/+26
| | | |
| * | | testsValery Sizov2015-03-168-22/+36
| | | |
| * | | fix specsValery Sizov2015-03-162-11/+21
| | | |
| * | | rename table subscribe; make it polymorficValery Sizov2015-03-168-22/+24
| | | |
| * | | code folding fixValery Sizov2015-03-163-8/+11
| | | |
| * | | SubscriptionValery Sizov2015-03-158-2/+101
| | | |
* | | | Properly align save user profile buttonDmitriy Zaporozhets2015-03-171-2/+4
| | | |
* | | | Fix button color inside alertDmitriy Zaporozhets2015-03-161-1/+1
| | | |
* | | | Merge branch 'fix-null-visibility' into 'master'Dmitriy Zaporozhets2015-03-173-5/+9
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle null restricted_visibility_levels setting Fix a 500 error when the `restricted_visibility_levels` setting is null in the database - see #2134. See merge request !1705
| * | | | Fix restricted visibility bugsVinnie Okada2015-03-162-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check for nil values in the restricted_visibility_level validation method, and set the restricted visibility request parameter to `[]` when it's missing from the request.
| * | | | Handle null restricted_visibility_levels settingVinnie Okada2015-03-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Fix a 500 error when the `restricted_visibility_levels` setting is null in the database.
* | | | | Fix editor UI bugDmitriy Zaporozhets2015-03-161-2/+0
|/ / / /
* | | | Remove ugly highlight stylesDmitriy Zaporozhets2015-03-161-5/+0
| | | |
* | | | Merge branch 'post-receive-base64' into 'master'Dmitriy Zaporozhets2015-03-161-1/+16
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevent gitlab-shell character encoding issues by receiving its changes as raw data. Depends on gitlab/gitlab-shell!65. Fixes: - https://github.com/gitlabhq/gitlabhq/issues/7486 - https://gitlab.com/gitlab-org/gitlab-ce/issues/858 - https://gitlab.com/gitlab-org/gitlab-ce/issues/877 - https://gitlab.com/gitlab-org/gitlab-ce/issues/965 See merge request !1701
| * | | | Prevent gitlab-shell character encoding issues by receiving its changes as ↵Douwe Maan2015-03-151-1/+16
| | | | | | | | | | | | | | | | | | | | raw data.
* | | | | Merge branch 'fix-restricted-visibility' into 'master'Dmitriy Zaporozhets2015-03-1616-53/+157
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restricted visibility levels - bug fix and new feature This allows admin users to override restricted visibility settings when creating and updating projects and snippets, and moves the restricted visibility configuration from gitlab.yml to the web UI. See #1903. ## Move configuration location I added a new section to the application settings page for restricted visibility levels. Each level has a checkbox, styled with Bootstrap to look like a toggle button. A checked box means that the level is restricted. I added a glowing text shadow and changed the background color for checked buttons because the default styles made it hard to distinguish between checked and unchecked. This image shows the new section with the "Public" box checked: ![restricted_visibility_settings](https://dev.gitlab.org/Okada/gitlabhq/uploads/629562e4313f89b795e81c3bb0f95893/restricted_visibility_settings.png) ## Allow admins to override To allow admin users to override the restricted visibility levels, I had to remove the `visibility_level` validation from the `Project` class. The model doesn't know about the `current_user`, which should determine whether the restrictions can be overridden. We could use the creator in the validation, but that wouldn't work correctly for projects where a non-admin user is the creator and an admin tries to change the project to a restricted visibility level. The `Project::UpdateService` and `Project::CreateService` classes already had code to determine whether the current user is allowed to use a given visibility level; now all visibility level validation is done in those classes. Currently, when a non-admin tries to create or update a project using a restricted level, these classes silently set the visibility level to the global default (create) or the project's existing value (update). I changed this behavior to be more like an Active Model validation, where using a restricted level causes the entire request to be rejected. Project and personal snippets didn't have service classes, and restricted visibility levels weren't being enforced in the model or the controllers. The UI disabled radio buttons for restricted levels, but that wouldn't be difficult to circumvent. I created the `CreateSnippetService` and `UpdateSnippetService` classes to do the same restricted visibility check that the project classes do. And since I was dealing with snippet visibility levels, I updated the API endpoints for project snippets to allow users to set and update the visibility level. ## TODO * [x] Add more tests for restricted visibility functionality cc @sytse @dzaporozhets See merge request !1655
| * \ \ \ \ Merge branch 'master' into fix-restricted-visibilityVinnie Okada2015-03-14250-1388/+2433
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: db/schema.rb
| * | | | | | Update snippet authorizationVinnie Okada2015-03-141-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow authors and admins to update the visibility level of personal and project snippets.
| * | | | | | More restricted visibility changesVinnie Okada2015-03-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug fixes and new tests for the restricted visibility changes.
| * | | | | | Enforce restricted visibilities for snippetsVinnie Okada2015-03-089-50/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new service classes to create and update project and personal snippets. These classes are responsible for enforcing restricted visibility settings for non-admin users.
| * | | | | | Allow admins to override restricted visibilityVinnie Okada2015-03-084-12/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow admins to use restricted visibility levels when creating or updating projects.
| * | | | | | Move restricted visibility settings to the UIVinnie Okada2015-03-079-20/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add checkboxes to the application settings page for restricted visibility levels, and remove those settings from gitlab.yml.
* | | | | | | Small improvements to group/project member rowsDmitriy Zaporozhets2015-03-153-2/+5
| | | | | | |
* | | | | | | Update button class.Douwe Maan2015-03-151-1/+1
| | | | | | |
* | | | | | | Use same layout and interactivity for project members as group members.Douwe Maan2015-03-1517-97/+123
| | | | | | |
* | | | | | | Move group leave action from dashboard/groups to groups/group_members.Douwe Maan2015-03-154-20/+16
| | | | | | |
* | | | | | | Move group members index from `/members` to `/group_members`.Douwe Maan2015-03-157-24/+46
| | | | | | |
* | | | | | | Move project members index from `/team` to `/project_members`Douwe Maan2015-03-152-2/+2
| | | | | | |
* | | | | | | Remove old team scopes.Douwe Maan2015-03-153-3/+0
| | | | | | |
* | | | | | | Use `member` instead of `tm`.Douwe Maan2015-03-152-33/+33
| | | | | | |
* | | | | | | Use `project_member` instead of `team_member`.Douwe Maan2015-03-1519-105/+117
| | | | | | |
* | | | | | | Use `group_member` instead of `users_group` or `membership`.Douwe Maan2015-03-1511-45/+45
| |_|/ / / / |/| | | | |