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-10-15 23:40:56 +02:00
|
|
|
= @tree.name.force_encoding('utf-8')
|
|
|
|
%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
|
|
|
|
= image_tag gravatar_icon(commit.author_email, 16)
|
|
|
|
= commit.author_name
|
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-07-10 09:57:43 +02:00
|
|
|
= Gitlab::Encode.utf8 lines.join("\n")
|