summaryrefslogtreecommitdiff
path: root/app/presenters/blobs/unfold_presenter.rb
Commit message (Collapse)AuthorAgeFilesLines
* Replace ... with new expansion optionsSamantha Ming2019-08-101-7/+33
| | | | | | | | - expand upwards - expand downwards - expand all in both inline and parallel views
* Revert "Merge branch '65152-selective-highlight' into 'master'"revert-d61dab91Patrick Bajao2019-08-091-6/+17
| | | This reverts merge request !31361
* Support selective highlighting of lines65152-selective-highlightPatrick Bajao2019-08-061-17/+6
| | | | | | | | | | | | 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-9/+21
| | | | | | | | | | 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`.
* Move diff_line preparation into presenterMark Chao2019-03-071-0/+31
| | | | Update spec
* Add full option for blob diff actionMark Chao2019-03-061-0/+44
Returns all diff lines for frontend if full is true. Turn UnfoldForm into presenter, and move controller logic to presenter.