2011-10-08 23:36:38 +02:00
|
|
|
- file = params[:path] ? File.join(params[:path], content.name) : content.name
|
2011-10-14 21:43:25 +02:00
|
|
|
- content_commit = @project.repo.log(@commit.id, file, :max_count => 1).last
|
2011-10-08 23:36:38 +02:00
|
|
|
- return unless content_commit
|
2011-11-16 06:38:53 +01:00
|
|
|
%tr{ :class => "tree-item", :url => tree_file_project_ref_path(@project, @ref, file) }
|
2011-10-08 23:36:38 +02:00
|
|
|
%td.tree-item-file-name
|
|
|
|
- if content.is_a?(Grit::Blob)
|
|
|
|
= image_tag "txt.png"
|
|
|
|
- else
|
|
|
|
= image_tag "dir.png"
|
2011-11-16 06:38:53 +01:00
|
|
|
= link_to truncate(content.name, :length => 40), tree_file_project_ref_path(@project, @ref || @commit.id, file), :remote => :true
|
2011-10-08 23:36:38 +02:00
|
|
|
%td
|
|
|
|
= time_ago_in_words(content_commit.committed_date)
|
|
|
|
ago
|
2011-11-06 21:21:48 +01:00
|
|
|
%td.commit
|
2011-11-06 21:38:08 +01:00
|
|
|
- tm = @project.team_member_by_name_or_email(content_commit.author_email, content_commit.author_name)
|
|
|
|
- if tm
|
|
|
|
= link_to "[#{tm.user_name}]", project_team_member_path(@project, tm)
|
2011-11-22 12:59:20 +01:00
|
|
|
= link_to truncate(content_commit.safe_message, :length => tm ? 20 : 40), project_commit_path(@project, content_commit), :class => "tree-commit-link"
|