2012-06-20 19:08:18 +02:00
|
|
|
= render "commits/commit_box"
|
2012-08-11 00:07:50 +02:00
|
|
|
= render "commits/diffs", diffs: @commit.diffs
|
|
|
|
= render "notes/notes", tid: @commit.id, tt: "commit"
|
2012-01-11 23:26:01 +01:00
|
|
|
= render "notes/per_line_form"
|
|
|
|
|
|
|
|
|
|
|
|
:javascript
|
|
|
|
$(document).ready(function(){
|
2012-06-04 00:37:27 +02:00
|
|
|
$(".line_note_link, .line_note_reply_link").live("click", function(e) {
|
2012-01-11 23:26:01 +01:00
|
|
|
var form = $(".per_line_form");
|
2012-02-13 23:20:23 +01:00
|
|
|
$(this).parent().parent().after(form);
|
2012-01-11 23:26:01 +01:00
|
|
|
form.find("#note_line_code").val($(this).attr("line_code"));
|
2012-06-04 00:37:27 +02:00
|
|
|
form.show();
|
2012-02-13 23:20:23 +01:00
|
|
|
return false;
|
2012-01-11 23:26:01 +01:00
|
|
|
});
|
|
|
|
});
|