rosa-build/app/views/git/commits/_commits.html.haml

26 lines
1.0 KiB
Plaintext
Raw Normal View History

2011-04-01 01:36:34 +01:00
%ul.list.commits
- commits.each do |commit|
%li.commit
%table
%tr
%td.committers
.author #{commit.author}, #{commit_date(commit.authored_date)}
- if commit.committer != commit.author
.committer
(committed by: #{commit.committer}, #{commit_date(commit.committed_date)})
%td.message
%p= link_to commit.message, commit_path(@project, commit.id)
2011-04-01 01:36:34 +01:00
%td.trees
.commit
Commit:
%span{ :style => "float: right;"}
#{link_to short_hash_id(commit.id), commit_path(@project, commit.id)}
2011-04-01 01:36:34 +01:00
.tree
Tree:
%span{ :style => "float: right;"}
#{link_to short_hash_id(commit.tree.id), tree_path(@project, :treeish => commit.tree.id)}
2011-04-01 01:36:34 +01:00
- commit.parents.each do |parent|
.parent
Parent:
%span{ :style => "float: right;"}
#{link_to short_hash_id(parent.id), tree_path(@project, :treeish => parent.id)}