Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-02-17 03:09:32 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-17 03:09:32 +0300
commit1b1bd461da768b31adb730f42060b7d6adf548c5 (patch)
treef0150b942ee4e9f5798418aad6da669de6ace00b /app/views/projects/blame/_page.html.haml
parent2c34e41161b78fddbdff9a858086e95558e06ba0 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/projects/blame/_page.html.haml')
-rw-r--r--app/views/projects/blame/_page.html.haml34
1 files changed, 34 insertions, 0 deletions
diff --git a/app/views/projects/blame/_page.html.haml b/app/views/projects/blame/_page.html.haml
new file mode 100644
index 00000000000..92fb99c30a6
--- /dev/null
+++ b/app/views/projects/blame/_page.html.haml
@@ -0,0 +1,34 @@
+- current_line = @blame.first_line
+
+.file-content.blame.code{ class: user_color_scheme }
+ - groups_length = @blame.groups.size - 1
+ - @blame.groups.each_with_index do |blame_group, index|
+ - commit_data = @blame.commit_data(blame_group[:commit])
+ - line_count = blame_group[:lines].count
+
+ .tr{ class: ('last-row' if groups_length == index) }
+ .td.blame-commit.commit{ class: commit_data.age_map_class }
+ = commit_data.author_avatar
+
+ .commit-row-title
+ %span.item-title.str-truncated-100
+ = commit_data.commit_link
+ = 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.file-line-num.no-link{ href: "#L#{i}", id: "L#{i}", 'data-line-number' => i }
+ = i
+
+ .td.lines
+ %pre.code.highlight
+ %code
+ - blame_group[:lines].each do |line|
+ #{line}
+
+ - current_line += line_count