2012-06-20 20:08:18 +03:00
|
|
|
= render "commits/commit_box"
|
2012-08-10 18:07:50 -04:00
|
|
|
= render "commits/diffs", diffs: @commit.diffs
|
2012-09-14 04:59:55 +02:00
|
|
|
= render "notes/notes_with_form", tid: @commit.id, tt: "commit"
|
2012-01-12 00:26:01 +02:00
|
|
|
= render "notes/per_line_form"
|
|
|
|
|
|
|
|
|
|
|
|
:javascript
|
2012-08-30 21:31:55 +03:00
|
|
|
$(function(){
|
|
|
|
PerLineNotes.init();
|
2012-11-21 18:25:32 +01:00
|
|
|
var w, h;
|
|
|
|
$('.diff_file').each(function(){
|
|
|
|
$('.image.diff_removed img', this).on('load', $.proxy(function(event){
|
|
|
|
var w = event.currentTarget.naturalWidth
|
|
|
|
, h = event.currentTarget.naturalHeight;
|
|
|
|
$('.image.diff_removed .image-info', this).append(' | <b>W:</b> ' + w + 'px | <b>H:</b> ' + h + 'px');
|
|
|
|
}, this));
|
|
|
|
$('.image.diff_added img', this).on('load', $.proxy(function(event){
|
|
|
|
var w = event.currentTarget.naturalWidth
|
|
|
|
, h = event.currentTarget.naturalHeight;
|
|
|
|
$('.image.diff_added .image-info', this).append(' | <b>W:</b> ' + w + 'px | <b>H:</b> ' + h + 'px');
|
|
|
|
}, this));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
2012-01-12 00:26:01 +02:00
|
|
|
});
|