Commit graph

6 commits

Author SHA1 Message Date
Patrick Bajao
866bef8059 Fix suggestion on lines that are not part of an MR
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`.
2019-07-22 13:25:24 +08:00
Phil Hughes
522c01972c
Add LFS blob ID to GraphQL blob type 2019-06-10 09:05:44 +01:00
Phil Hughes
4644a2daf5
Add web_url to tree entry in GraphQL API 2019-06-05 08:46:32 +01:00
Mark Chao
623b7f3055 Centralize loading blob data before highlighting 2018-10-30 15:44:55 +08:00
Mark Chao
bc14e4ed10 Move :plain option to Highlight class
This is to DRY the repeated file size check.

Move spec and constants to Highlight
2018-10-30 15:44:55 +08:00
Mark Chao
32f9cf8ce3 Add BlobPresenter for highlighting
Force FoundBlob to use BlobPresenter
2018-10-30 15:44:55 +08:00