summaryrefslogtreecommitdiff
path: root/app/presenters/blob_presenter.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@14-9-stable-eev14.9.0-rc42GitLab Bot2022-03-181-2/+19
|
* Add latest changes from gitlab-org/gitlab@14-8-stable-eev14.8.0-rc42GitLab Bot2022-02-181-3/+27
|
* Add latest changes from gitlab-org/gitlab@14-7-stable-eev14.7.0-rc42GitLab Bot2022-01-201-0/+20
|
* Add latest changes from gitlab-org/gitlab@14-6-stable-eev14.6.0-rc42GitLab Bot2021-12-201-30/+23
|
* Add latest changes from gitlab-org/gitlab@14-5-stable-eev14.5.0-rc42GitLab Bot2021-11-181-0/+33
|
* Add latest changes from gitlab-org/gitlab@14-4-stable-eev14.4.0-rc42GitLab Bot2021-10-201-1/+1
|
* Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42GitLab Bot2021-07-201-0/+4
|
* Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42GitLab Bot2021-05-191-2/+60
|
* Add latest changes from gitlab-org/gitlab@13-3-stable-eeGitLab Bot2020-08-201-0/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-221-1/+5
|
* Support selective highlighting of lines65152-unfolded-lines-perf-improvementPatrick Bajao2019-09-021-2/+16
| | | | | | | | | | Instead of highlighting all lines when not all of them are needed, only highlight from the beginning up to the specified limit. The `BlobPresenter#highlight` method has been updated to support `to` param. This param will be used to limit the content to be highlighted.
* Revert "Merge branch '65152-selective-highlight' into 'master'"revert-d61dab91Patrick Bajao2019-08-091-17/+2
| | | This reverts merge request !31361
* Support selective highlighting of lines65152-selective-highlightPatrick Bajao2019-08-061-2/+17
| | | | | | | | | | | | Instead of highlighting all lines when not all of them are needed, only highlight specific lines. The `BlobPresenter#highlight` method has been updated to support `since` and `to` params. These params will be used to limit the content to be highlighted. Modify `Gitlab::Highlight` to support `since` param which will then be used to determine the starting line number.
* Fix suggestion on lines that are not part of an MR57953-fix-unfolded-diff-suggestionsPatrick Bajao2019-07-221-1/+7
| | | | | | | | | | Return the `text` as plain string in the response instead of including HTML tags but keep `rich_text` as is. The fix is to modify `Blob::UnfoldPresenter#diff_files` to map each raw diff line (limited by the range specified) to a corresponding line in an array of highlighted lines to use as `rich_text`.
* Add LFS blob ID to GraphQL blob typePhil Hughes2019-06-101-1/+1
|
* Add web_url to tree entry in GraphQL APIPhil Hughes2019-06-051-0/+4
|
* Centralize loading blob data before highlightingMark Chao2018-10-301-0/+2
|
* Move :plain option to Highlight classMark Chao2018-10-301-1/+1
| | | | | | This is to DRY the repeated file size check. Move spec and constants to Highlight
* Add BlobPresenter for highlightingMark Chao2018-10-301-0/+14
Force FoundBlob to use BlobPresenter