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

46 lines
1.3 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
- if entry.is_a?(Grit::Blob)
= link_to entry.name, blob_path(@project, @treeish, File.join([@path, entry.name].compact))
2011-04-01 01:36:34 +01:00
- else
= link_to "#{entry.name}/", tree_path(@project, @treeish, File.join([@path, entry.name].compact))
2011-04-01 01:36:34 +01:00
%td==  
%td.last==  
- content_for :sidebar, render(:partial => 'git/shared/sidebar')