Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
c1714355
Commit
c1714355
authored
Feb 20, 2017
by
Nur Rony
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes line number copy issue for unfolded parallel view diff
parent
12cd4c83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
app/views/projects/blob/diff.html.haml
app/views/projects/blob/diff.html.haml
+2
-2
changelogs/unreleased/28367-fix-unfold-diff-line-number-copy-paste.yml
...released/28367-fix-unfold-diff-line-number-copy-paste.yml
+4
-0
No files found.
app/views/projects/blob/diff.html.haml
View file @
c1714355
...
...
@@ -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
...
...
changelogs/unreleased/28367-fix-unfold-diff-line-number-copy-paste.yml
0 → 100644
View file @
c1714355
---
title
:
Fixes includes line number during unfold copy n paste in parallel diff view
merge_request
:
9365
author
:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment