gitlab-org--gitlab-foss/features/steps
Douwe Maan ef9ba9050e Merge branch 'single-file-diffs' into 'master'
Single file diffs

Closes #14103. Related (not part of this MR): #19553.

This adds a `diff_for_path` action to each place we render diffs (commit, compare, new MR, existing MR) which renders the diff for a single path. The action is always available with the same params as the 'parent' action, to make it simpler to generate the URIs.

If a diff is bigger than 10 KB, it will be collapsed by default and have a data attribute added. You can then click the message or the filename to expand that diff. For expanded files, you can collapse and expand them, but they won't make any AJAX requests.

![Expand_and_collapse_diffs](/uploads/a4072029085082b85c47006f67ac531c/Expand_and_collapse_diffs.gif)

See merge request !4990
2016-07-11 17:51:57 +00:00
..
admin Revert "Revert "Merge branch 'issue_3946' into 'master' "" 2016-07-07 23:48:02 -04:00
dashboard Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
explore Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
group UI and copywriting improvements 2016-06-14 13:18:14 +02:00
profile Fix profile test to click on header user profile link 2016-07-05 16:17:05 +03:00
project Merge branch 'single-file-diffs' into 'master' 2016-07-11 17:51:57 +00:00
shared Merge branch 'issues-blank-state' into 'master' 2016-07-07 21:17:23 +00:00
snippets
abuse_reports.rb
groups.rb Enable Style/SpaceAfterColon Rubocop cops 2016-06-29 15:16:04 +02:00
invites.rb
search.rb
snippet_search.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
user.rb