2012-02-29 01:30:22 +00:00
|
|
|
%h3= t("layout.projects.files_in_project")
|
|
|
|
.files
|
2012-03-07 21:34:49 +00:00
|
|
|
.l= render :partial => 'git/shared/whereami'
|
|
|
|
= render :partial => 'git/shared/fork'
|
2012-02-29 01:30:22 +00:00
|
|
|
.both
|
|
|
|
|
2012-02-22 22:11:55 +00:00
|
|
|
%table#myTable.tablesorter.project{:cellpadding => "0", :cellspacing => "0"}
|
|
|
|
%thead
|
|
|
|
%tr
|
2012-02-29 16:27:32 +00:00
|
|
|
%th.th1= t("layout.projects.filename")
|
|
|
|
%th.th2= t("layout.projects.age")
|
|
|
|
%th.th3= t("layout.projects.message")
|
|
|
|
%th.th4= t("layout.projects.author")
|
2012-02-22 22:11:55 +00:00
|
|
|
%tbody
|
|
|
|
- if @path.present?
|
|
|
|
%tr
|
|
|
|
%td
|
2012-03-01 17:33:46 +00:00
|
|
|
.pic= image_tag 'folder.png'
|
2012-03-21 19:55:14 +00:00
|
|
|
.name= link_to "..", tree_path(@project, @treeish, File.join([@path, ".."].compact))
|
2012-02-22 22:11:55 +00:00
|
|
|
%td==
|
|
|
|
%td==
|
|
|
|
%td==
|
|
|
|
- @project.tree_info(@tree, @treeish, @path).each_pair do |entry, commit|
|
|
|
|
%tr
|
|
|
|
%td
|
2012-03-21 19:55:14 +00:00
|
|
|
- entry_path = File.join([@path.present? ? @path : nil, entry.name].compact)
|
2012-02-22 22:11:55 +00:00
|
|
|
- if entry.is_a? Grit::Blob
|
2012-03-01 17:33:46 +00:00
|
|
|
.pic= image_tag 'code.png'
|
2012-03-21 19:55:14 +00:00
|
|
|
.name= link_to(entry.name, blob_path(@project, @treeish, entry_path), :class => 'files-see')
|
2012-02-22 22:11:55 +00:00
|
|
|
- else
|
2012-03-01 17:33:46 +00:00
|
|
|
.pic= image_tag 'folder.png'
|
2012-03-21 19:55:14 +00:00
|
|
|
.name= link_to(entry.name, tree_path(@project, @treeish, entry_path), :class => 'files-see')
|
2012-02-22 22:11:55 +00:00
|
|
|
%td
|
2012-03-21 19:55:14 +00:00
|
|
|
%span{:style => "display: none;"}= commit.committed_date || commit.authored_date
|
|
|
|
= l(commit.committed_date || commit.authored_date, :format => :short)
|
|
|
|
%td= commit.short_message
|
|
|
|
%td= (commit.committer || commit.author).name
|