2012-02-29 01:30:22 +00:00
|
|
|
%h3= t("layout.projects.files_in_project")
|
|
|
|
.files
|
2012-05-02 10:18:07 +01:00
|
|
|
.l= render 'whereami'
|
|
|
|
= render '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==
|
2013-04-10 12:40:11 +01:00
|
|
|
- @project.tree_info(@tree, @treeish, @path).each do |node, node_path, commit|
|
2012-02-22 22:11:55 +00:00
|
|
|
%tr
|
|
|
|
%td
|
2013-04-10 12:46:39 +01:00
|
|
|
- if node.is_a? Grit::Submodule
|
2013-04-10 12:40:11 +01:00
|
|
|
.pic= image_tag 'folder-submodule.png'
|
|
|
|
.name
|
2013-06-14 10:54:08 +01:00
|
|
|
- if url = submodule_url(node, @treeish)
|
|
|
|
= link_to(node.name, url, :class => 'files-see')
|
|
|
|
= '@'
|
|
|
|
= link_to(node.id[0..6], "#{url}/tree/#{node.id}", :class => 'files-see')
|
|
|
|
- else
|
|
|
|
= "#{node.name} @ #{node.id[0..6]}"
|
2013-04-10 12:40:11 +01:00
|
|
|
- else
|
2013-04-10 12:57:07 +01:00
|
|
|
- options = [@project, @treeish, node_path]
|
|
|
|
- if node.is_a?(Grit::Tree)
|
|
|
|
- pic = 'folder.png'
|
|
|
|
- path = tree_path *options
|
|
|
|
.pic= image_tag pic || 'code.png'
|
|
|
|
.name= link_to(node.name, path || blob_path(*options), :class => 'files-see')
|
2013-04-10 12:46:39 +01:00
|
|
|
|
2013-04-11 11:09:32 +01:00
|
|
|
- if commit
|
|
|
|
%td
|
|
|
|
%span{:style => "display: none;"}= date = commit.committed_date || commit.authored_date
|
|
|
|
= l(date, :format => :short)
|
|
|
|
%td= commit.short_message
|
|
|
|
%td= (commit.committer || commit.author).name
|
|
|
|
- else
|
|
|
|
%td
|
|
|
|
%td
|
|
|
|
%td
|