diff options
author | Phil Hughes <me@iamphill.com> | 2016-04-14 19:00:05 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-04-20 19:25:16 +0300 |
commit | 6495c13d70cfd26cb46fb8bd0b7bc138cb939ff0 (patch) | |
tree | 73951733a26daa2dded272072b3c56db1e268fd4 /app/views/projects/blob/diff.html.haml | |
parent | 7bcacafc8a601896f8750f29fcde71f8f8ffb910 (diff) |
Fixed issue with lines not being selectable when expanding diff
Diffstat (limited to 'app/views/projects/blob/diff.html.haml')
-rw-r--r-- | app/views/projects/blob/diff.html.haml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/projects/blob/diff.html.haml b/app/views/projects/blob/diff.html.haml index 38e62c81fed..88d51b00e3e 100644 --- a/app/views/projects/blob/diff.html.haml +++ b/app/views/projects/blob/diff.html.haml @@ -1,17 +1,17 @@ - if @lines.present? - if @form.unfold? && @form.since != 1 && !@form.bottom? - %tr.line_holder{ id: @form.since } + %tr.line_holder = render "projects/diffs/match_line", { line: @match_line, line_old: @form.since, line_new: @form.since, bottom: false, new_file: false } - @lines.each_with_index do |line, index| - line_new = index + @form.since - line_old = line_new - @form.offset - %tr.line_holder + %tr.line_holder{ id: line_old } %td.old_line.diff-line-num{ data: { linenumber: line_old } } - = link_to raw(line_old), "#" - %td.new_line.diff-line-num{ data: { linenumber: line_old } } - = link_to raw(line_new) , "#" + = link_to raw(line_old), "##{line_old}" + %td.new_line.diff-line-num + = link_to raw(line_new) , "##{line_old}" %td.line_content.noteable_line==#{' ' * @form.indent}#{line} - if @form.unfold? && @form.bottom? && @form.to < @blob.loc |