2012-05-17 18:11:45 +02:00
|
|
|
= render "head"
|
|
|
|
|
2012-10-15 23:40:56 +02:00
|
|
|
#tree-holder.tree-holder
|
2012-05-17 18:11:45 +02:00
|
|
|
%ul.breadcrumb
|
|
|
|
%li
|
|
|
|
%span.arrow
|
2012-09-17 18:39:57 +02:00
|
|
|
= 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
|
2012-11-08 18:41:07 +01:00
|
|
|
= @tree.name
|
2012-10-15 23:40:56 +02:00
|
|
|
%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
|
2012-10-27 18:27:47 +02:00
|
|
|
%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
|
|
|
|
2012-09-17 16:06:56 +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
|
2012-11-08 18:41:07 +01:00
|
|
|
= lines.join("\n")
|