summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-06-06 23:15:32 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-06-19 04:31:23 -0400
commitb3f9be06398e8872cc64a966f99866b67e18c337 (patch)
tree07a88eb847b26d16b5e2301962d36e4bfb26772b /app/views
parent74a6732c0dfc1416cad382203544d9c4d6246f58 (diff)
downloadgitlab-ce-b3f9be06398e8872cc64a966f99866b67e18c337.tar.gz
Refactor and spec BlobView JS
Diffstat (limited to 'app/views')
-rw-r--r--app/views/shared/_file_highlight.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/shared/_file_highlight.html.haml b/app/views/shared/_file_highlight.html.haml
index 86921f0a777..ab70f4770bc 100644
--- a/app/views/shared/_file_highlight.html.haml
+++ b/app/views/shared/_file_highlight.html.haml
@@ -4,8 +4,8 @@
- blob.data.lines.to_a.size.times do |index|
- offset = defined?(first_line_number) ? first_line_number : 1
- i = index + offset
- / We're not using `link_to` because it is too slow once we get to thousands of lines.
- %a{href: "#L#{i}", id: "L#{i}", rel: "#L#{i}"}
+ -# We're not using `link_to` because it is too slow once we get to thousands of lines.
+ %a{href: "#L#{i}", id: "L#{i}", 'data-line-number' => i}
%i.fa.fa-link
= i
:preserve