gitlab-org--gitlab-foss/app/views/commits/show.html.haml

30 lines
789 B
Plaintext
Raw Normal View History

2011-11-30 22:24:28 +00:00
.commit
= 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")
2011-11-30 22:24:28 +00:00
%hr
%pre.commit_message
= commit_msg_with_link_to_issues(@project, @commit.safe_message)
2011-11-30 22:24:28 +00:00
.clear
2011-11-05 12:45:52 +00:00
%br
2011-10-08 21:36:38 +00:00
2012-02-06 20:32:04 +00:00
= render "commits/diffs", :diffs => @commit.diffs
2011-11-05 12:45:52 +00:00
= render "notes/notes"
= render "notes/per_line_form"
:javascript
$(document).ready(function(){
$(".noteable_line").live("dblclick", function(e) {
var form = $(".per_line_form");
$(this).parent().after(form);
form.find("#note_line_code").val($(this).attr("line_code"));
form.show();
});
});