2011-03-11 17:19:47 +00:00
|
|
|
.row= link_to "Commits", commits_path(@platform, @repository, @project, :treeish => @treeish)
|
2011-03-10 13:19:23 +00:00
|
|
|
.row.tags
|
|
|
|
%h3 Tags:
|
|
|
|
%ul
|
2011-03-11 17:19:47 +00:00
|
|
|
- @git_repository.tags.each do |tag|
|
|
|
|
%li= link_to tag.name, tree_path(@platform, @repository, @project, :treeish => tag.name)
|
2011-03-10 13:19:23 +00:00
|
|
|
|
|
|
|
.row.heads
|
|
|
|
%h3 Heads:
|
|
|
|
%ul
|
2011-03-11 17:19:47 +00:00
|
|
|
- @git_repository.heads.each do |head|
|
|
|
|
%li= link_to head.name, tree_path(@platform, @repository, @project, :treeish => head.name)
|
2011-03-10 13:19:23 +00:00
|
|
|
|
|
|
|
%table
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th name
|
|
|
|
%th age
|
|
|
|
%th message
|
|
|
|
|
|
|
|
%tbody
|
|
|
|
- if @path.present?
|
|
|
|
%tr
|
|
|
|
%td
|
2011-03-11 17:19:47 +00:00
|
|
|
= link_to "..", tree_path(@platform, @repository, @project, @treeish, File.join([@path, ".."].compact))
|
2011-03-10 13:19:23 +00:00
|
|
|
- @tree.contents.each do |entry|
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
- if entry.is_a?(Grit::Blob)
|
2011-03-11 17:19:47 +00:00
|
|
|
= link_to entry.name, blob_path(@platform, @repository, @project, @treeish, File.join([@path, entry.name].compact))
|
2011-03-10 13:19:23 +00:00
|
|
|
- else
|
2011-03-11 17:19:47 +00:00
|
|
|
= link_to "#{entry.name}/", tree_path(@platform, @repository, @project, @treeish, File.join([@path, entry.name].compact))
|
2011-03-10 13:19:23 +00:00
|
|
|
%td==
|
|
|
|
%td==
|