2011-03-10 13:52:55 +00:00
|
|
|
= render :partial => "git/commits/commit", :locals => { :commit => @commit }
|
2011-03-10 13:47:42 +00:00
|
|
|
|
2011-03-11 17:19:47 +00:00
|
|
|
= link_to "Raw", raw_commit_path(@platform, @repository, @project, @commit.id, @path)
|
|
|
|
= link_to "Normal", blob_commit_path(@platform, @repository, @project, @commit.id, @path)
|
|
|
|
= link_to "History", commits_path(@platform, @repository, @project, @treeish, @path)
|
2011-03-10 13:47:42 +00:00
|
|
|
|
|
|
|
.row
|
|
|
|
%table{ :class => "blame" }
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%td
|
|
|
|
%td
|
|
|
|
|
|
|
|
%tbody
|
|
|
|
- @blame.each_with_index do |elem, index|
|
|
|
|
%tr
|
|
|
|
%td.message
|
2011-03-11 17:19:47 +00:00
|
|
|
.row= link_to elem[0].id, commit_path(@platform, @repository, @project, elem[0].id)
|
2011-03-10 13:47:42 +00:00
|
|
|
.row= elem[0].committer
|
|
|
|
.row= commit_date(elem[0].committed_date)
|
|
|
|
.row!= format_commit_message(elem[0].message)
|
|
|
|
|
|
|
|
%td.line_numbers= index
|
|
|
|
%td.code= elem[1]
|