summaryrefslogtreecommitdiff
path: root/app/helpers
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Better looking milestone listsDmitriy Zaporozhets2015-04-011-0/+4
| |/ /
* | | Merge branch 'email-full-url'Marin Jankovski2015-03-311-6/+18
|\ \ \ | |/ / |/| |
| * | Use relative URL for Markdown references, except in mails.email-full-urlDouwe Maan2015-03-271-6/+18
| | |
* | | Refactor star btn logic for non-logged in user and fix testsDmitriy Zaporozhets2015-03-291-12/+10
| | |
* | | Refactor star/fork buttonsDmitriy Zaporozhets2015-03-291-3/+7
| | |
* | | Merge branch 'file-type' of https://github.com/Soullivaneuh/gitlabhq into ↵Dmitriy Zaporozhets2015-03-293-4/+57
|\ \ \ | | | | | | | | | | | | Soullivaneuh-file-type
| * | | Improve file icons rendering on treeSullivan SENECHAL2015-03-283-4/+57
| | | |
* | | | Merge branch 'repo-buttons' into 'master'Dmitriy Zaporozhets2015-03-291-2/+2
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Repo buttons Fixes #796 Moved the star & fork button to inline with the other buttons. See merge request !473
| * | | Alignment fixes for repo buttonsPhil Hughes2015-03-291-1/+1
| | | |
| * | | Changed button typePhil Hughes2015-03-271-1/+1
| | | |
| * | | Fork/Star button re-designPhil Hughes2015-03-261-2/+2
| | | |
* | | | Improve UI for issues filtersissues-filtersDmitriy Zaporozhets2015-03-272-4/+2
| |/ / |/| |
* | | Big refactoring of issues filtersDmitriy Zaporozhets2015-03-264-11/+45
|/ / | | | | | | | | | | | | | | * Squash project users selectbox and users selectbox into one class * Move from API autocomplete to GitLab internal one * Smarter filter for project/group/all issues * Use selectbox with searchbox for assignee/author/milestone/label * Switch to ajax filter for issue author/assignee
* | Fix broken side-by-side diff view on merge request pageStan Hu2015-03-251-0/+4
| | | | | | | | Closes #1294
* | Merge pull request #8007 from mr-vinn/markdown-tagsDmitriy Zaporozhets2015-03-251-1/+0
|\ \ | | | | | | Allow HTML tags in user Markdown input
| * \ Merge branch 'master' into markdown-tagsVinnie Okada2015-03-243-15/+8
| |\ \
| * \ \ Merge branch 'master' into markdown-tagsVinnie Okada2015-03-223-13/+10
| |\ \ \
| * \ \ \ Merge branch 'master' into markdown-tagsVinnie Okada2015-03-215-5/+48
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Merge updated CHANGELOG entries
| * | | | | Change HTML sanitizationVinnie Okada2015-03-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the `SanitizationFilter` class from the html-pipeline gem for inline HTML instead of calling the Rails `sanitize` method.
| * | | | | Merge branch 'master' into markdown-tagsVinnie Okada2015-03-1738-422/+1066
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Use the latest HTML pipeline gem
| * | | | | | Allow HTML tags in user Markdown inputVinnie Okada2014-10-101-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow whitelisted tags to appear in rendered HTML output by disabling Redcarpet's `:filter_html` option.
* | | | | | | Merge branch 'more-rubocop-styles' into 'master'Dmitriy Zaporozhets2015-03-253-6/+9
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | More rubocop styles See merge request !449
| * | | | | | | Style/RedundantReturn enabledmore-rubocop-stylesDmitriy Zaporozhets2015-03-243-5/+8
| | | | | | | |
| * | | | | | | Enable more rubocop style checksDmitriy Zaporozhets2015-03-241-1/+1
| | |_|_|_|/ / | |/| | | | |
* | | | | | | Merge branch 'api-internal-errors' into 'master'Dmitriy Zaporozhets2015-03-252-2/+2
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Respond with full GitAccess error if user has project read access. Should help with debugging #1236. cc @marin See merge request !437
| * | | | | | Refactor GitAccess to use instance variables.Douwe Maan2015-03-242-2/+2
| | | | | | |
* | | | | | | Merge branch 'milestone_and_labels_links' into 'master'Dmitriy Zaporozhets2015-03-251-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Milestones and labels can be used even when issues are disabled. When Issues are disabled for a project Milestones and Labels can still be used for Merge Requests. See merge request !1739
| * | | | | | | Milestones and labels can be used even when issues are disabled.Marin Jankovski2015-03-241-1/+1
| |/ / / / / /
* | | | | | | Make sure issue assignee is properly reset.Douwe Maan2015-03-241-12/+1
|/ / / / / /
* | | | | | Merge branch 'master' of github.com:gitlabhq/gitlabhqDmitriy Zaporozhets2015-03-231-0/+4
|\ \ \ \ \ \
| * | | | | | Fix #8966 Remove Milestones/Labels from project navbar when Isses disabledvichak2015-03-231-0/+4
| | |_|_|/ / | |/| | | |
* | | | | | Update views to single form of address. Change "my" to "your"Dmitriy Zaporozhets2015-03-221-3/+3
|/ / / / /
* | | | | Restyle oauth accounts at profile page and add ability to unlink accountimprove-profileDmitriy Zaporozhets2015-03-213-13/+10
| |_|/ / |/| | |
* | | | Link to CI with refValery Sizov2015-03-201-1/+1
| | | |
* | | | Fix project issues and merge requests pagesDmitriy Zaporozhets2015-03-191-1/+0
| | | |
* | | | Merge branch 'changelog-link' into 'master'Dmitriy Zaporozhets2015-03-181-2/+35
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add changelog, license and contribution guide links to project sidebar. If the version is known, the "Version: 7.9.0pre" button links to the changelog, otherwise a "View changelog" button is shown. ![Screen_Shot_2015-03-18_at_14.22.29](https://dev.gitlab.org/gitlab/gitlabhq/uploads/747acc018ec9a188098e0f0bc4e91cc3/Screen_Shot_2015-03-18_at_14.22.29.png) See merge request !1708
| * | | | Add license and contribution guide links to project sidebar.Douwe Maan2015-03-181-2/+35
| | | | |
* | | | | List new commits for newly pushed branch in activity view.Douwe Maan2015-03-181-1/+1
|/ / / /
* | | | Merge branch 'external_wiki' into 'master'Dmitriy Zaporozhets2015-03-181-0/+11
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-121-0/+11
| | | |
* | | | 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.
* | | | Merge branch 'fix-restricted-visibility' into 'master'Dmitriy Zaporozhets2015-03-163-3/+22
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1411-31/+83
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: db/schema.rb
| * | | | | 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-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | Move restricted visibility settings to the UIVinnie Okada2015-03-072-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add checkboxes to the application settings page for restricted visibility levels, and remove those settings from gitlab.yml.
* | | | | | Use `project_member` instead of `team_member`.Douwe Maan2015-03-152-2/+2
| |/ / / / |/| | | |
* | | | | Refactor buttonsDmitriy Zaporozhets2015-03-141-2/+2
| | | | |
* | | | | Merge branch 'group-icon-performance' into 'master'Dmitriy Zaporozhets2015-03-123-10/+13
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevent database query each time we render group avatar Fixes #2118 See merge request !1688
| * | | | | Prevent database query each time we render group avatarDmitriy Zaporozhets2015-03-123-10/+13
| | |/ / / | |/| | |