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

36 lines
1 KiB
Plaintext
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
- @blame.each do |commit, lines|
- commit = Commit.new(commit)
2012-07-22 13:08:24 +02:00
- commit = CommitDecorator.decorate(commit)
2012-05-17 18:11:45 +02:00
%tr
%td.author= commit.author_link avatar: true, size: 16
2012-07-10 19:15:33 +02:00
%td.blame_commit
2012-05-17 18:11:45 +02:00
 
%code= link_to commit.short_id, project_commit_path(@project, commit)
= link_to_gfm truncate(commit.title, length: 30), project_commit_path(@project, commit), class: "row_title" rescue "--broken encoding"
2012-05-17 18:11:45 +02:00
%td.lines
= preserve do
%pre
= lines.join("\n")