2012-06-20 19:08:18 +02:00
|
|
|
= render "commits/commit_box"
|
2013-01-04 21:13:32 +01:00
|
|
|
|
2013-01-04 22:35:31 +01:00
|
|
|
%p.right.cgray
|
2013-01-04 21:13:32 +01:00
|
|
|
This commit has
|
|
|
|
%span.cgreen #{@commit.stats.additions} additions
|
|
|
|
and
|
|
|
|
%span.cred #{@commit.stats.deletions} deletions
|
|
|
|
|
2012-08-11 00:07:50 +02:00
|
|
|
= render "commits/diffs", diffs: @commit.diffs
|
2012-12-02 20:43:39 +01:00
|
|
|
= render "notes/notes_with_form"
|
2012-01-11 23:26:01 +01:00
|
|
|
|
|
|
|
:javascript
|
2012-08-30 20:31:55 +02:00
|
|
|
$(function(){
|
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));
|
2013-01-04 21:13:32 +01:00
|
|
|
|
2012-11-21 18:25:32 +01:00
|
|
|
});
|
2013-01-04 21:13:32 +01:00
|
|
|
|
2012-01-11 23:26:01 +01:00
|
|
|
});
|