Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNur Rony <pro.nmrony@gmail.com>2017-02-20 10:48:16 +0300
committerNur Rony <pro.nmrony@gmail.com>2017-02-20 11:04:38 +0300
commitc1714355276476776ec3f16686722f49cac3895d (patch)
treed74d92cd1760e5e01a8f5608634cf340b2af19ed /app/views/projects/blob/diff.html.haml
parent12cd4c83604e43dc308ba13fa3d5a6571409c1f8 (diff)
fixes line number copy issue for unfolded parallel view diff
Diffstat (limited to 'app/views/projects/blob/diff.html.haml')
-rw-r--r--app/views/projects/blob/diff.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/blob/diff.html.haml b/app/views/projects/blob/diff.html.haml
index d1f7f65bf53..c48d9dd982c 100644
--- a/app/views/projects/blob/diff.html.haml
+++ b/app/views/projects/blob/diff.html.haml
@@ -19,10 +19,10 @@
= line_content
- when :parallel
%td.old_line.diff-line-num{ data: { linenumber: line_old } }
- = link_to raw(line_old), "##{line_old}"
+ %a{ href: "##{line_old}", data: { linenumber: line_old } }
= line_content
%td.new_line.diff-line-num{ data: { linenumber: line_new } }
- = link_to raw(line_new), "##{line_new}"
+ %a{ href: "##{line_new}", data: { linenumber: line_new } }
= line_content
- if @form.unfold? && @form.bottom? && @form.to < @blob.lines.size