summaryrefslogtreecommitdiff
path: root/app/helpers
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge branch 'you-get-a-title-and-you-get-a-title-and-everyone-gets-a-title' ↵Dmitriy Zaporozhets2015-05-023-58/+26
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into 'master' Add a page title to every page. ![You get a title, and you get a title; everyone gets a title!](https://i.imgflip.com/kvmq8.jpg) The `page_title` helper pushes the provided string at the end of the title, but because of the order that layouts are rendered in by ActionView, the result is always this: ``` <title from view> | <title from as specified in the controller or by its layout> | <title from layouts/_head> ``` For example: `Merge Requests | GitLab.org / Gitlab Community Edition | GitLab`. All a developer needs to know is to put a `page_title` call describing the page in question at the start of every template. To get everything where I wanted it to go without too much duplication, I had to make some changes around layouts, sidebars and controllers. See merge request !593
| * | | | Add helpers for header title and sidebar, and move setting those from ↵Douwe Maan2015-05-012-8/+26
| | | | | | | | | | | | | | | | | | | | controllers to layouts.
| * | | | Add a page title to every page.Douwe Maan2015-04-303-58/+8
| |/ / /
* | | | Remove title_for_issue helperRobert Speicher2015-04-301-12/+1
| | | |
* | | | Add Gitlab::Markdown::SanitizationFilterRobert Speicher2015-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | This just extends the HTML::Pipeline::SanitizationFilter with our custom whitelist.
* | | | Add Gitlab::Markdown::AutolinkFilterRobert Speicher2015-04-301-3/+1
| | | |
* | | | Add Gitlab::Markdown::TableOfContentsFilterRobert Speicher2015-04-301-1/+0
|/ / / | | | | | | | | | Removes header and table of contents processing from Redcarpet renderer.
* | | Merge branch 'fix-submodule-error-with-forked-project' into 'master'Dmitriy Zaporozhets2015-04-302-4/+4
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix "Revspec not found" errors when viewing diffs in a forked project with submodules ## What does this MR do? This MR fixes an error that occurs when viewing diffs in a forked project with submodules. ### Are there points in the code the reviewer needs to double check? Testing this code was tricky. The only way this problem shows up is if the origin project does NOT have the submodule update commit. The introduction of gitlab-test-fork serves that purpose: it contains a submodule update not present in gitlab-test. ### Why was this MR needed? A user would receive a 500 error when trying to view a merge request with a submodule update. #1413 has details on how to reproduce this issue. ### What are the relevant issue numbers / [Feature requests](http://feedback.gitlab.com/)? #1413 See merge request !512
| * | Fix "Revspec not found" errors when viewing diffs in a forked project with ↵Stan Hu2015-04-272-4/+4
| | | | | | | | | | | | | | | | | | submodules Closes #1413
* | | Merge branch 'footnotes-markdown' into 'master'Douwe Maan2015-04-291-1/+2
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | Add footnotes support to Markdown This merge request fix this issue : https://gitlab.com/gitlab-org/gitlab-ce/issues/555 See merge request !572
| * | Add footnotes support to MarkdownGuillaume Delbergue2015-04-241-1/+2
| | | | | | | | | | | | Signed-off-by: Guillaume Delbergue <guillaume.delbergue@greensocs.com>
* | | Merge branch 'fix-relative-submodule-links-with-personal-projects' into 'master'Dmitriy Zaporozhets2015-04-271-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix broken file browsing with relative submodule in personal projects Git submodules with relative links work fine for projects in groups but not in personal projects. This patch fixes this issue. To reproduce the problem, go here: https://gitlab.com/andrewwu.tw/submodule-test/tree/master Closes https://github.com/gitlabhq/gitlabhq/issues/7554 See merge request !565
| * | | Fix broken file browsing with relative submodule in personal projectsStan Hu2015-04-231-1/+1
| | | | | | | | | | | | | | | | Closes https://github.com/gitlabhq/gitlabhq/issues/7554
* | | | Add new admin settingsVinnie Okada2015-04-261-1/+23
| | | | | | | | | | | | | | | | | | | | Add new global application settings for default project and snippet visibility levels.
* | | | Check if project before calling count on issuable.Marin Jankovski2015-04-241-1/+3
| | | |
* | | | Add issue and merge request count for state filters.Marin Jankovski2015-04-241-0/+12
| |/ / |/| |
* | | Merge branch 'master' into new-sidebarDmitriy Zaporozhets2015-04-234-9/+26
|\ \ \ | |/ / | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: app/controllers/snippets_controller.rb
| * | Recover from all `URI::Error`sRobert Speicher2015-04-211-4/+8
| | | | | | | | | | | | | | | Fixes #2257 Fixes #2260
| * | Escape title attributes in referencesRobert Speicher2015-04-202-2/+6
| | |
| * | Begin cleaning out spec/helpers/gitlab_markdown_helper_specRobert Speicher2015-04-201-0/+1
| | |
| * | Reference filters :sparkles:Robert Speicher2015-04-202-5/+13
| | | | | | | | | | | | | | | Commit ranges, commits, external issues, issues, labels, merge requests, snippets, users.
* | | Fix toggle of sidebarDmitriy Zaporozhets2015-04-222-8/+16
|/ / | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Fix merge request comments on files with multiple commitsDominik Sander2015-04-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Having a merge request with a comments on a line which is then changed in a later commit prevented new comments from properly showing up in the merge request show page. * `Note#set_diff` do not use stored the diff when creating a new note in merge requests (we can not be sure the diff did not changed since the last comment on that line) * Do not rely just on `outdated?` of the first note when displaying comments of a MR in the discussion tab, but partition the active/outdated notes and display them all * In the inline changes tab just select the active notes, so an outdated note does not prevent an active one from being rendered * Just show active comments in the side-by-side changes tab
* | Consistently use "invitation" rather than "invite" in text.Douwe Maan2015-04-142-2/+2
| |
* | Let members be invited from Add members pane.Douwe Maan2015-04-141-0/+2
| |
* | Correctly render invite members without user.Douwe Maan2015-04-142-4/+12
| |
* | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets2015-04-141-25/+0
|\ \
| * \ Merge branch 'revert_fix_email_images' into 'master'Douwe Maan2015-04-141-25/+0
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert "Merge branch 'fix_email_images' into 'master'" This reverts commit d66148ef393f1748c669c934eec4e928d92ef36a, reversing changes made to cdb64a81a8ca96961033b8ab06d5191ef5449634. This change needed to be reverted, because not enough email clients support inline images. /cc @DouweM As discussed before. I'll try to create a MR to allow access to all images this week. I'm a bit busy at the moment so no guarantees. ;) See merge request !513
| | * | Revert "Merge branch 'fix_email_images' into 'master'"Hannes Rosenögger2015-04-131-25/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit d66148ef393f1748c669c934eec4e928d92ef36a, reversing changes made to cdb64a81a8ca96961033b8ab06d5191ef5449634. This change needed to be reverted, because not enough email clients support inline images.
* | | | Merge branch 'rs-link-to-performance' into 'master'Dmitriy Zaporozhets2015-04-141-21/+23
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | Speed up the overridden `link_to` helper Only bothers to check the provided link's external status if it's a String that doesn't begin with a path or anchor character. See merge request !1767
| * | | Use `start_with?` instead of String slicing to check for external linksRobert Speicher2015-04-121-1/+1
| | | | | | | | | | | | | | | | [ci skip]
| * | | Speed up the overridden `link_to` helperRobert Speicher2015-04-121-21/+23
| | | | | | | | | | | | | | | | | | | | Only bothers to check the provided link's external status if it's a String that doesn't begin with a path or anchor character.
* | | | Merge branch 'reference-access-control' into 'master'Dmitriy Zaporozhets2015-04-131-3/+4
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | Only allow users to reference groups, projects, issues, MRs, commits they have access to. Addresses https://dev.gitlab.org/gitlab/gitlabhq/issues/2183. See merge request !1742
| * | | Don't require user to every gfm call.Douwe Maan2015-04-031-1/+1
| | | |
| * | | Add Commit#author and #committer.Douwe Maan2015-04-021-3/+4
| | | |
| * | | Only allow user to reference objects they have access to.Douwe Maan2015-04-021-1/+1
| | | |
* | | | Merge branch 'public-deploy-keys' into 'master'Dmitriy Zaporozhets2015-04-131-0/+8
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow admin to create public deploy keys that are accessible to any project. Addresses private issue https://dev.gitlab.org/gitlab/gitlabhq/issues/1774. Project settings: ![Screen_Shot_2015-03-27_at_14.46.48](https://gitlab.com/gitlab-org/gitlab-ce/uploads/01799ff912671ba6db3f828ea1aca1a6/Screen_Shot_2015-03-27_at_14.46.48.png) The "Public deploy keys" section is only shown when there are any. If there are public deploy keys but no project deploy keys, only public deploy keys are shown. If there are no public deploy keys and no project deploy keys, the current "Deploy keys from projects you have access to will be displayed here" placeholder is shown. The list of projects below the public key has been changed to only show projects the user has access to. "Public deploy key" seems to be repeated on the left, but the first is just the title. The label is always visible for public deploy keys. Admin index: ![Screen_Shot_2015-03-27_at_14.47.06](https://gitlab.com/gitlab-org/gitlab-ce/uploads/ea889d274cfd3f0694d47d602f4f3e94/Screen_Shot_2015-03-27_at_14.47.06.png) Admin detail page: ![Screen_Shot_2015-03-27_at_14.47.16](https://gitlab.com/gitlab-org/gitlab-ce/uploads/8c8475e05bf6b497da3b9f1bc102329f/Screen_Shot_2015-03-27_at_14.47.16.png) Projects using the deploy key are listed on the left and can be disabled easily. See merge request !469
| * | | Clean up code.Douwe Maan2015-04-031-0/+8
| | | |
* | | | Merge branch 'regex-start-of-string' into 'master'Dmitriy Zaporozhets2015-04-123-4/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix persistent XSS vulnerability around profile website URLs. Fixes gitlab/gitlab-ee#268 See merge request !1761
| * | | | Use `\A` and `\z` in regexes instead of `^` and `$`.Douwe Maan2015-04-103-4/+4
| | | | |
* | | | | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets2015-04-102-6/+15
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Merge branch 'fix-submodules-with-relative-links' into 'master'Douwe Maan2015-04-101-6/+13
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix broken file browsing with a submodule that has a relative link ## What does this MR do? This MR fixes an error that occurs when browsing a submodule with a relative link. ### Are there points in the code the reviewer needs to double check? I re-wrote the function because I was confused by how the first one was supposed to work. Please review if it's clearer. ### Why was this MR needed? A 500 Error would occur when using the file browser on a repo with a submodule. Here's how to reproduce the bug: 1. Start a new project in GitLab. 2. Clone git://git.gniibe.org/gnuk/gnuk.git/ locally. 3. Push repo to new project. 4. Click on "Files" in the project. The .gitmodules file: ``` [submodule "chopstx"] path = chopstx url = ../../chopstx/chopstx.git ``` ### What are the relevant issue numbers / [Feature requests](http://feedback.gitlab.com/)? 1. #775 2. #1385 3. https://github.com/gitlabhq/gitlabhq/issues/8153 4. https://github.com/gitlabhq/gitlabhq/issues/8881 5. https://github.com/gitlabhq/gitlabhq/issues/7554 See merge request !508
| | * | | | Fix broken file browsing with a submodule that has a relative linkStan Hu2015-04-091-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | Closes #775
| * | | | | Move current user to the top of the list in author/assignee filtersStan Hu2015-04-091-0/+2
| |/ / / / | | | | | | | | | | | | | | | Closes #1321
* | | | | Disable RedCarpet's `escape_html` optionRobert Speicher2015-04-091-17/+21
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | This option defaults to true in RedCarpet 3.2.0, but we handle sanitization later in the process with html-pipeline. Closes #2211
* | | | Fix bug where Wiki pages that include a '/' were no longer accessibleStan Hu2015-04-071-0/+22
| | | | | | | | | | | | | | | | Closes #1363
* | | | Merge branch 'emailsonpush-last-line' into 'master'Dmitriy Zaporozhets2015-04-071-5/+1
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix final line in EmailsOnPush email diff being rendered as error. Fixes https://github.com/gitlabhq/gitlabhq/issues/8976 and private issue https://dev.gitlab.org/gitlab/gitlabhq/issues/2194. Pulls in gitlab_git 7.1.5, which includes https://gitlab.com/gitlab-org/gitlab_git/merge_requests/18. See merge request !480
| * | | Move EmailsOnPush highlight CSS inline instead of being in every ↵Douwe Maan2015-03-311-5/+1
| | | | | | | | | | | | | | | | notification email.
* | | | Check symlink mode as a String for file_type_icon_classRobert Speicher2015-04-011-1/+1
| |/ / |/| | | | | | | | See https://gitlab.com/gitlab-org/gitlab_git/commit/8ae14bb84b94a2ec15f8a639fb82f0f55c77ad69
* | | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceMarin Jankovski2015-03-311-0/+4
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: lib/gitlab/markdown.rb