rosa-build/app/views/git/repositories/show.html.haml

50 lines
1.5 KiB
Plaintext
Raw Normal View History

2011-04-01 01:36:34 +01:00
.block
2011-04-04 17:00:24 +01:00
= render :partial => "git/shared/navigation"
2011-03-10 13:19:23 +00:00
2011-04-04 17:00:24 +01:00
= render :partial => "git/shared/info"
2011-03-10 13:19:23 +00:00
2011-04-04 14:49:08 +01:00
- if @commit
.block
.content
.inner
= render :partial => "git/commits/commits", :object => [@commit]
2011-03-10 13:19:23 +00:00
2011-04-01 01:36:34 +01:00
.block
.content
.inner
%h3= render_path
%table.table.git_tree
%tr
%th.icon
%th name
%th age
%th.last message
- if @path.present?
%tr.odd
%td
%td.icon
= link_to "..", tree_path(@project, @treeish, File.join([@path, ".."].compact))
2011-04-01 01:36:34 +01:00
%td==  
%td.last==  
- (@tree.trees + @tree.blobs).each do |entry|
%tr{ :class => cycle("even", "odd")}
%td.icon
- if entry.is_a?(Grit::Blob)
= image_tag("git/icons/text_document_16.png")
- else
= image_tag("git/icons/folder_16.png")
%td.tree_element
- entry_path = File.join([@path.present? ? @path.encode_to_default : nil, entry.name.encode_to_default].compact)
2011-04-01 01:36:34 +01:00
- if entry.is_a?(Grit::Blob)
= link_to entry.name.encode_to_default,
blob_path(@project, @treeish.encode_to_default, entry_path)
2011-04-01 01:36:34 +01:00
- else
= link_to "#{entry.name.encode_to_default}/",
tree_path(@project, @treeish.encode_to_default, entry_path)
2011-04-01 01:36:34 +01:00
%td==  
%td.last==  
2012-02-04 20:12:37 +00:00
- content_for :sidebar, render(:partial => 'git/shared/sidebar')