2011-11-30 17:24:28 -05:00
.commit
2012-02-07 18:00:49 -05:00
= link_to tree_project_ref_path(@project, @commit.id), :class => "btn right small" do
Browse Code »
= image_tag gravatar_icon(@commit.author_email), :class => "avatar"
%code= @commit.id.to_s
%h5
= @commit.author_name
%small= @commit.created_at.stamp("Aug 21, 2011 9:23pm")
2012-02-14 17:21:00 -05:00
- if @commit.author_name != @commit.committer_name or @commit.author_email != @commit.committer_email or @commit.authored_date != @commit.committed_date
–
%cite committed by
= @commit.committer_name
%small= @commit.committed_date.stamp("Aug 21, 2011 9:23pm")
2011-11-30 17:24:28 -05:00
2012-03-15 17:44:04 -04:00
%br
2012-03-16 14:11:03 -04:00
%pre.commit_message.prettyprint
2011-12-26 17:22:15 -05:00
= commit_msg_with_link_to_issues(@project, @commit.safe_message)
2011-11-30 17:24:28 -05:00
.clear
2011-11-05 08:45:52 -04:00
%br
2011-10-08 17:36:38 -04:00
2012-02-11 17:29:16 -05:00
%p.cgray
Showing #{pluralize(@commit.diffs.count, "changed file")}
2012-02-06 15:32:04 -05:00
= render "commits/diffs", :diffs => @commit.diffs
2012-02-24 02:16:06 -05:00
= render "notes/notes", :tid => @commit.id, :tt => "commit"
2012-01-11 17:26:01 -05:00
= render "notes/per_line_form"
:javascript
$(document).ready(function(){
2012-02-24 15:19:47 -05:00
$(".line_note_link, .line_note_reply_link").live("click", function(e) {
2012-01-11 17:26:01 -05:00
var form = $(".per_line_form");
2012-02-13 17:20:23 -05:00
$(this).parent().parent().after(form);
2012-01-11 17:26:01 -05:00
form.find("#note_line_code").val($(this).attr("line_code"));
form.show();
2012-02-13 17:20:23 -05:00
return false;
2012-01-11 17:26:01 -05:00
});
});