gitlab-org--gitlab-foss/features/steps/project
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
..
badges Reuse no_cache_headers method in badges controller 2016-03-17 12:16:34 +01:00
builds Just remove the prefix, feedback: 2016-07-11 20:06:35 +08:00
commits Disable overflow messages 2016-07-08 10:57:21 +01:00
issues Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
merge_requests Add traits for each access_level to ProjectMember factory 2016-03-06 16:53:22 -05:00
source Escapes branch names before appending to dom 2016-06-18 21:49:20 +01:00
active_tab.rb Render only issues/mr in subnav depends on context 2016-06-10 19:15:23 +03:00
archived.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
create.rb Backport changes from gitlab-org/gitlab-ee!372 2016-05-04 17:05:16 -04:00
deploy_keys.rb Updated tests for deploy keys 2016-04-25 17:45:05 +01:00
fork.rb Modify tests to match new navigation behaviour for project pages 2016-05-16 12:36:27 -05:00
forked_merge_requests.rb Enable Style/SpaceAfterComma Rubocop cop 2016-06-29 15:23:44 +02:00
graph.rb Add tests and changelog item for language graphs 2015-12-08 02:38:59 +01:00
hooks.rb Fix test failures 2016-05-09 13:58:43 +02:00
labels.rb Fixed failing label subscribe test 2016-06-09 17:19:14 +01:00
merge_requests.rb Add DiffNote model 2016-07-06 18:50:59 -04:00
network_graph.rb Tests fix for ref switcher 2016-06-18 21:49:20 +01:00
project.rb Fixed notification tests 2016-06-21 08:35:11 +01:00
project_find_file.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
project_group_links.rb Add finders logic and tests for shared projects feature 2016-03-11 18:55:17 +01:00
project_milestone.rb Modify tests to match new navigation behaviour for project pages 2016-05-16 12:36:27 -05:00
project_shortcuts.rb Fix shortcuts tests 2016-05-16 17:36:06 -05:00
redirects.rb Fix rubocop warnings in features 2015-10-03 19:59:54 -05:00
services.rb Backport JIRA service 2015-12-18 14:19:48 -06:00
snippets.rb Updated snippets tests 2016-05-19 10:01:27 +01:00
star.rb spinach tests will pass now 2015-12-23 12:26:50 -05:00
team_management.rb UI and copywriting improvements 2016-06-14 13:18:14 +02:00
wiki.rb Hook up the updated WikiLinkFilter to the wiki controllers. 2016-06-09 10:15:01 +05:30