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
|
2013-03-22 14:11:16 +01:00
|
|
|
%i.icon-angle-right
|
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
|
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|
|
2013-03-22 17:52:25 +01:00
|
|
|
= current_line
|
|
|
|
\
|
2013-01-14 19:55:57 +01:00
|
|
|
- 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|
|
2013-03-22 17:52:25 +01:00
|
|
|
= line
|
|
|
|
\
|