debian-mirror-gitlab/app/views/projects/blame/show.html.haml

62 lines
2 KiB
Text
Raw Normal View History

2020-07-28 23:09:34 +05:30
- page_title _("Blame"), @blob.path, @ref
2020-10-24 23:57:45 +05:30
- link_icon = sprite_icon("link", size: 12)
2015-09-25 12:07:36 +05:30
2019-12-04 20:38:33 +05:30
#blob-content-holder.tree-holder
= render "projects/blob/breadcrumb", blob: @blob, blame: true
2017-09-10 17:25:29 +05:30
2019-12-04 20:38:33 +05:30
.file-holder
= render "projects/blob/header", blob: @blob, blame: true
2021-04-17 20:07:23 +05:30
2019-12-04 20:38:33 +05:30
.file-blame-legend
2021-04-17 20:07:23 +05:30
%span.left-label Newer
%span.legend-box.legend-box-0
%span.legend-box.legend-box-1
%span.legend-box.legend-box-2
%span.legend-box.legend-box-3
%span.legend-box.legend-box-4
%span.legend-box.legend-box-5
%span.legend-box.legend-box-6
%span.legend-box.legend-box-7
%span.legend-box.legend-box-8
%span.legend-box.legend-box-9
%span.right-label Older
2019-12-04 20:38:33 +05:30
.table-responsive.file-content.blame.code.js-syntax-highlight
%table
- current_line = 1
2020-06-23 00:09:42 +05:30
- @blame.groups.each do |blame_group|
- commit_data = @blame.commit_data(blame_group[:commit])
2021-04-17 20:07:23 +05:30
- line_count = blame_group[:lines].count
%tr
%td.blame-commit{ class: commit_data.age_map_class }
.commit
= commit_data.author_avatar
.commit-row-title
%span.item-title.str-truncated-100
= commit_data.commit_link
%span
= commit_data.project_blame_link
 
.light
= commit_data.commit_author_link
= _('committed')
#{commit_data.time_ago_tooltip}
%td.line-numbers
- (current_line...(current_line + line_count)).each do |i|
%a.diff-line-num.gl-justify-content-end{ href: "#L#{i}", id: "L#{i}", 'data-line-number' => i, class: "gl-display-flex!" }
= link_icon
= i
\
2020-06-23 00:09:42 +05:30
2021-04-17 20:07:23 +05:30
%td.lines
%pre.code.highlight
%code
- blame_group[:lines].each do |line|
#{line}
2020-06-23 00:09:42 +05:30
2021-04-17 20:07:23 +05:30
- current_line += line_count