summaryrefslogtreecommitdiff
path: root/app/views/projects/diffs/_content.html.haml
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2016-09-02 15:26:45 +0100
committerLuke Bennett <lukeeeebennettplus@gmail.com>2016-09-03 20:24:31 +0100
commitffdccaa0a8290ff563b377d26e4e91b803e7b049 (patch)
treef6aa4f04f1ff00e61b9033a4ee1796cd2e8d76fa /app/views/projects/diffs/_content.html.haml
parent2aaab34b67eb2a6593780eda33d501a715ef0c5f (diff)
downloadgitlab-ce-ffdccaa0a8290ff563b377d26e4e91b803e7b049.tar.gz
Updated diff toggle targets and added icon
Diffstat (limited to 'app/views/projects/diffs/_content.html.haml')
-rw-r--r--app/views/projects/diffs/_content.html.haml4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/projects/diffs/_content.html.haml b/app/views/projects/diffs/_content.html.haml
index d37961c4e40..779c8ea0104 100644
--- a/app/views/projects/diffs/_content.html.haml
+++ b/app/views/projects/diffs/_content.html.haml
@@ -11,7 +11,9 @@
- elsif diff_file.collapsed?
- url = url_for(params.merge(action: :diff_for_path, old_path: diff_file.old_path, new_path: diff_file.new_path))
.nothing-here-block.diff-collapsed{data: { diff_for_path: url } }
- This diff is collapsed. Click to expand it.
+ This diff is collapsed.
+ %a.click-to-expand
+ Click to expand it.
- elsif diff_file.diff_lines.length > 0
- if diff_view == :parallel
= render "projects/diffs/parallel_view", diff_file: diff_file, project: project, blob: blob