X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a2ddf506a8d76719f6e8a79e784b3f297128656e..7d20ecc106db40a3c033bdc6260376628a24c0e2:/platforma/templates/manager/pull_request.html?ds=sidebyside diff --git a/platforma/templates/manager/pull_request.html b/platforma/templates/manager/pull_request.html index 9b235514..a44b1ede 100644 --- a/platforma/templates/manager/pull_request.html +++ b/platforma/templates/manager/pull_request.html @@ -55,6 +55,7 @@ button.attr('disabled', 'disabled'); var id = parseInt(button.attr('title')); var docid = $('h2', button.parents('.pull-request')).html(); + var diffUrl = button.parents('.pull-request').attr('data-diff-url'); var revision = $('.pull-request-revision', button.parents('.pull-request')).html(); $('.diff').slideUp(function() { $(this).remove() }); @@ -62,7 +63,7 @@ .hide() .appendTo($(this).parents('.pull-request')) .slideDown('slow') - .load('/api/documents/' + docid + '/diff?revision=' + revision, null, function() { + .load(diffUrl + '?revision=' + revision, null, function() { button.attr('disabled', null); }); } @@ -75,7 +76,7 @@ {% block maincontent %} {% if objects %} {% for pullreq in objects %} -
{{ pullreq.comment }}
+ {% ifnotequal pullreq.status 'A' %} + {% endifnotequal %}