2011-11-30 23:24:28 +01:00
|
|
|
.commit
|
|
|
|
%span.commit-info
|
2012-01-28 10:54:11 +01:00
|
|
|
= link_to tree_project_ref_path(@project, @commit.id), :class => "btn right" do
|
2012-01-27 07:57:55 +01:00
|
|
|
Browse Code »
|
2011-11-30 23:24:28 +01:00
|
|
|
- if @commit.author_email
|
|
|
|
= image_tag gravatar_icon(@commit.author_email), :class => "left", :width => 40, :style => "padding-right:5px;"
|
|
|
|
- else
|
|
|
|
= image_tag "no_avatar.png", :class => "left", :width => 40, :style => "padding-right:5px;"
|
|
|
|
%span.commit-title
|
|
|
|
%strong
|
|
|
|
= truncate(@commit.id.to_s, :length => 60)
|
|
|
|
%span.commit-author
|
|
|
|
%strong= @commit.author_name
|
|
|
|
= @commit.created_at.stamp("Aug 21, 2011 9:23pm")
|
|
|
|
|
|
|
|
%hr
|
|
|
|
%pre.commit_message
|
2011-12-26 23:22:15 +01:00
|
|
|
= commit_msg_with_link_to_issues(@project, @commit.safe_message)
|
2011-11-30 23:24:28 +01:00
|
|
|
.clear
|
2011-11-05 13:45:52 +01:00
|
|
|
%br
|
2011-10-08 23:36:38 +02:00
|
|
|
|
2012-02-06 21:32:04 +01:00
|
|
|
= render "commits/diffs", :diffs => @commit.diffs
|
2011-11-05 13:45:52 +01:00
|
|
|
= render "notes/notes"
|
2012-01-11 23:26:01 +01:00
|
|
|
= render "notes/per_line_form"
|
|
|
|
|
|
|
|
|
|
|
|
:javascript
|
|
|
|
$(document).ready(function(){
|
2012-01-25 20:10:09 +01:00
|
|
|
$(".noteable_line").live("dblclick", function(e) {
|
2012-01-11 23:26:01 +01:00
|
|
|
var form = $(".per_line_form");
|
|
|
|
$(this).parent().after(form);
|
|
|
|
form.find("#note_line_code").val($(this).attr("line_code"));
|
|
|
|
form.show();
|
|
|
|
});
|
|
|
|
});
|