summaryrefslogtreecommitdiff
path: root/app/presenters/blob_presenter.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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