gitlabhq/app/views/blame/show.html.haml

47 lines
1.4 KiB
Text
Raw Normal View History

2012-05-17 18:11:45 +02:00
= render "head"
#tree-holder.tree-holder
2012-05-17 18:11:45 +02:00
%ul.breadcrumb
%li
%span.arrow
= link_to project_tree_path(@project, @ref) do
2012-05-17 18:11:45 +02:00
= @project.name
- @tree.breadcrumbs(6) do |link|
\/
%li= link
.clear
2012-07-10 19:15:33 +02:00
.file_holder
.file_title
2012-05-17 18:11:45 +02:00
%i.icon-file
%span.file_name
= @tree.name
%small= number_to_human_size @tree.size
%span.options= render "tree/blob_actions"
2012-07-10 19:15:33 +02:00
.file_content.blame
2012-05-17 18:11:45 +02:00
%table
2013-01-14 19:55:57 +01:00
- current_line = 1
2012-05-17 18:11:45 +02:00
- @blame.each do |commit, lines|
2013-01-14 19:55:57 +01:00
- commit = CommitDecorator.decorate(Commit.new(commit))
2012-05-17 18:11:45 +02:00
%tr
2013-01-14 19:55:57 +01:00
%td.blame-commit
%span.commit
= link_to commit.short_id(8), project_commit_path(@project, commit), class: "commit_short_id"
 
= commit.author_link avatar: true, size: 16
 
= 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|
= current_line
- current_line += 1
2012-05-17 18:11:45 +02:00
%td.lines
2013-01-14 19:55:57 +01:00
%pre
- lines.each do |line|
= line