gitlab-org--gitlab-foss/app/views/projects/blame/show.html.haml

40 lines
1.3 KiB
Plaintext
Raw Normal View History

%h3.page-title Blame view
2012-05-17 16:11:45 +00:00
#tree-holder.tree-holder
.file-holder
.file-title
2012-05-17 16:11:45 +00:00
%i.icon-file
%span.file_name
= @path
2013-04-03 07:06:31 +00:00
%small= number_to_human_size @blob.size
%span.options= render "projects/blob/actions"
.file-content.blame
2012-05-17 16:11:45 +00:00
%table
2013-01-14 18:55:57 +00:00
- current_line = 1
2012-05-17 16:11:45 +00:00
- @blame.each do |commit, lines|
- commit = Commit.new(commit)
2012-05-17 16:11:45 +00:00
%tr
2013-01-14 18:55:57 +00:00
%td.blame-commit
%span.commit
= link_to commit.short_id(8), project_commit_path(@project, commit), class: "commit_short_id"
 
= commit_author_link(commit, avatar: true, size: 16)
2013-01-14 18:55:57 +00:00
 
= link_to_gfm truncate(commit.title, length: 20), project_commit_path(@project, commit.id), class: "row_title"
%td.lines.blame-numbers
%pre
- if lines.empty?
= current_line
- current_line += 1
- else
- lines.each do |line|
2013-03-22 16:52:25 +00:00
= current_line
\
2013-01-14 18:55:57 +00:00
- current_line += 1
2012-05-17 16:11:45 +00:00
%td.lines
2013-01-14 18:55:57 +00:00
%pre
2013-05-16 12:09:47 +00:00
:erb
<% lines.each do |line| %>
<%= line %>
<% end %>