Jacob Vosmaer
a87fe2a472
Fixes requested by Rémy
2016-02-17 11:08:47 +01:00
Jacob Vosmaer
24fa458615
Use /raw/ requests for image diffs
2016-02-16 17:29:45 +01:00
Rémy Coutable
5cd20de749
Eager-load image blob data in diffs
...
Since gitlab_git 8.0, blob data are lazy-loaded so we have to call
blob.load_all_data!(repo) to eager-load them.
Fixes #13458 .
2016-02-16 10:50:24 +01:00
Douwe Maan
677b4db9e6
Mark inline difference between old and new paths when a file is renamed
2016-01-29 19:37:17 +01:00
Robert Speicher
5f0d7e2e3b
Merge branch 'fix-mr-diff-edit-button' into 'master'
...
Fix MR diff 'Edit' button
It now works and has the right size.
See merge request !2542
2016-01-22 07:39:33 +00:00
Robert Speicher
2fed8bf390
Merge branch 'fix-diff-comments' into 'master'
...
More highlighted diff fixes
See merge request !2545
2016-01-22 07:37:47 +00:00
Douwe Maan
16d17b78ca
Restore diff comments
2016-01-22 02:10:58 +01:00
Douwe Maan
9369b7ec1f
Fix MR diff 'Edit' button
2016-01-21 22:46:49 +01:00
Douwe Maan
21facf5353
Use consistent markup and styling for highlighting across blobs, diffs, blame and snippets
2016-01-21 14:23:53 +01:00
Douwe Maan
0e992a3b4e
Properly highlight lines around '\ No newline at end of file'
2016-01-20 19:20:13 +01:00
Douwe Maan
701513dcc7
Move parallel diff logic to separate class
2016-01-20 14:53:20 +01:00
Rubén Dávila
c8db25c37c
Merge branch 'master' into issue_3945
2016-01-14 17:28:44 -05:00
Rubén Dávila
6b9c730e91
More refactoring from last code review. #3945
...
* Use commit objects instead of IDs when generating diffs
* Use proper references when generating MR's source and target
* Update broken specs
2016-01-14 16:47:55 -05:00
Douwe Maan
8dfad143d4
Add inline diff markers in highlighted diffs.
2016-01-14 22:28:07 +01:00
Douwe Maan
c881627d11
Refactor parallel_diff generation a bit.
2016-01-14 14:52:08 +01:00
Dmitriy Zaporozhets
bb5213588b
Update files/diffs to match new layout
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2016-01-14 12:31:31 +01:00
Rubén Dávila
0f0af19139
Little refactor for usage of html_safe. #3945
2016-01-13 11:39:15 -05:00
Rubén Dávila
48c45ba9a8
Use html_safe instead of raw. #3945
2016-01-13 10:58:19 -05:00
Rubén Dávila
80a4c808b1
Make diff_line_content helper return a safe String. #3945
2016-01-12 11:02:16 -05:00
Rubén Dávila
78d7c0e0d8
Fix broken specs. #3945
2016-01-08 19:05:55 -05:00
Rubén Dávila
21b602c60a
Change strategy to highlight diffs. #3945
...
Now we apply syntax highlighting to the whole old and new files.
This basically help us to highlight adequately multiline content.
2016-01-07 22:37:01 -05:00
Rubén Dávila
21958a3939
Add some styling for syntax highlighting themes. #3945
2016-01-07 13:45:19 -05:00
Rubén Dávila
1494bb3f25
Force white theme when viewing diffs. #3945
2016-01-06 21:01:44 -05:00
Rubén Dávila
776d70d11b
Use #html_safe instead of #raw in some diff views. #3945
2016-01-06 19:54:36 -05:00
Rubén Dávila
7de90f4b53
Fix broken spec and small refactor. #3945
2015-12-30 18:42:11 -05:00
Rubén Dávila
bb96d63153
New implementation for highlighting diff files. #3945
...
* It is more performant given now we process all the diff file instead
of processing line by line.
* Multiline comments are highlighted correctly.
2015-12-30 00:52:50 -05:00
Rubén Dávila and Rubén Dávila
34657b821a
Add syntax highlighting to diff view. #3945
2015-12-28 18:31:27 -05:00
Douwe Maan
f4f4a6b530
Fix specs and behavior for LFS files
2015-12-18 16:14:12 +01:00
Douwe Maan
d9c82d679f
Automatically fork a project when not allowed to edit a file.
2015-12-18 10:03:34 +01:00
Douwe Maan
51ed5225ad
Merge branch 'serve_lfs_object' into 'master'
...
Serve LFS object
Depends on gitlab-org/gitlab_git!57
See merge request !1976
2015-12-08 14:19:52 +00:00
Marin Jankovski
bf17609e2a
Rename blob helper, bump version of gitlab_git to 7.2.21.
2015-12-07 15:56:38 +01:00
Marin Jankovski
e53b350cb6
Add specs for showing lfs object in UI.
2015-12-07 15:03:50 +01:00
Douglas Barbosa Alexandre
12fdc13ad3
Fix 500 error when creating a merge request that removes a submodule
2015-12-04 17:35:14 -02:00
Marin Jankovski
b9a0f96d42
Don't show diffs for lfs pointers.
2015-12-04 12:01:08 +01:00
Dmitriy Zaporozhets
ca7e31c48f
Merge branch 'ui/consistency' into 'master'
...
UI: Improve consistency across the board
Depends on !1953
See the commits for more details, the messages mostly speak for themselves.
Fixes https://dev.gitlab.org/gitlab/gitlabhq/issues/2577
See merge request !1954
2015-12-02 22:17:48 +00:00
Douwe Maan
59c3ec4e67
Use file-type specific file icon in blame view and diff item
2015-12-02 14:55:36 +01:00
Douwe Maan
3ad1d320ef
Remove duplicated styling for center top menus
2015-12-02 14:49:12 +01:00
Douwe Maan
e49190cad9
Don't use params[:view] directly.
2015-11-17 16:33:38 +01:00
Dmitriy Zaporozhets
c5ec2a23a4
Small UI improvements to merge request page
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-11-06 16:27:18 +01:00
Douwe Maan
8710739e4e
Correctly find last known blob for file deleted in MR.
2015-10-20 14:24:02 +02:00
Stan Hu
b5d9a613d9
Make diff file view easier to use on mobile screens
2015-10-09 05:01:27 -07:00
Dmitriy Zaporozhets
e2576d588f
Avoid unnecessary usage of local vars
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-10-01 15:51:28 +02:00
Dmitriy Zaporozhets
0d967bce57
Show additions/deletions stats on merge request diff
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-10-01 13:52:08 +02:00
Dmitriy Zaporozhets
fe7e97320c
Fix bug when removed file was not appearing in merge request diff
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-09-30 12:31:23 +02:00
Dmitriy Zaporozhets
86556a079e
Improve diff UI and mr compare page
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-09-08 17:22:26 +02:00
Dmitriy Zaporozhets
0276e9032a
Limit content width for big screens except certain pages
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-08-26 11:51:28 +02:00
Stan Hu
3bee4a6712
Fix "Reload with full diff" URL button in compare branch view
...
This button worked when viewing merge requests because the JavaScript
stripped the .html in the Ajax request. However, it left the .html suffix
in the compare branch view.
2015-08-24 23:35:26 -07:00
Stan Hu
4a76cbe219
Merge branch 'fix-reload-with-full-diff-url' into 'master'
...
Fix the "Reload with full diff" URL button
On the first load, the merge request tabs would be requested in JSON format to render
the HTML. This would cause the "Reload with full diff" button to create a link to `diff.json`. Instead, generate the path in HTML mode.
Closes #2041
See merge request !1019
2015-07-25 15:38:23 +00:00
Robert Speicher
cad0e848b0
Fix and style the "Changes suppressed" link.
2015-07-23 16:07:45 -04:00
Stan Hu
ae3f869fd1
Fix the "Reload with full diff" URL button
...
On the first load, the merge request tabs would be requested in JSON format to render
the HTML. This would cause the "Reload with full diff" button to create a link to diff.json.
Closes #2041
2015-07-23 12:53:54 -07:00