#93: remove _commit_info partial

This commit is contained in:
Vokhmin Alexey V 2013-04-11 14:09:32 +04:00
parent c7603fd607
commit 8b77323f5f
2 changed files with 11 additions and 13 deletions

View File

@ -1,10 +0,0 @@
- 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

View File

@ -29,8 +29,7 @@
- url = node.url(@treeish).gsub(/^git/, 'http').gsub(/.git$/, '') - url = node.url(@treeish).gsub(/^git/, 'http').gsub(/.git$/, '')
= link_to(node.name, url, :class => 'files-see') = link_to(node.name, url, :class => 'files-see')
= '@' = '@'
- id = node.id = link_to(node.id[0..6], "#{url}/tree/#{node.id}", :class => 'files-see')
= link_to(id[0..6], "#{url}/tree/#{id}", :class => 'files-see')
- else - else
- options = [@project, @treeish, node_path] - options = [@project, @treeish, node_path]
- if node.is_a?(Grit::Tree) - if node.is_a?(Grit::Tree)
@ -39,4 +38,13 @@
.pic= image_tag pic || 'code.png' .pic= image_tag pic || 'code.png'
.name= link_to(node.name, path || blob_path(*options), :class => 'files-see') .name= link_to(node.name, path || blob_path(*options), :class => 'files-see')
= render 'commit_info', :commit => commit - 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