diff options
author | Phil Hughes <me@iamphill.com> | 2016-02-22 14:09:13 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-02-22 14:09:13 +0000 |
commit | fbc578a7eced90ccb71687aaefa2d429a5ace63b (patch) | |
tree | a72e47c200c1d2c24f88f002e511899bca802322 /app/views/projects/blame | |
parent | f51d8af5a72e563b3ea87668b6f4981dcbcdcd14 (diff) | |
download | gitlab-ce-fbc578a7eced90ccb71687aaefa2d429a5ace63b.tar.gz |
Added line links to blame tableblame-line-link
Closes #4119
Diffstat (limited to 'app/views/projects/blame')
-rw-r--r-- | app/views/projects/blame/show.html.haml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/projects/blame/show.html.haml b/app/views/projects/blame/show.html.haml index eb6fbfaffa0..5f9a92ff93f 100644 --- a/app/views/projects/blame/show.html.haml +++ b/app/views/projects/blame/show.html.haml @@ -3,7 +3,7 @@ %h3.page-title Blame view -#tree-holder.tree-holder +#blob-content-holder.tree-holder .file-holder .file-title = blob_icon @blob.mode, @blob.name @@ -33,7 +33,9 @@ %td.line-numbers - line_count = blame_group[:lines].count - (current_line...(current_line + line_count)).each do |i| - %a.diff-line-num= i + %a.diff-line-num{href: "#L#{i}", id: "L#{i}", 'data-line-number' => i} + = icon("link") + = i \ - current_line += line_count %td.lines |