<?php
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */

// @codingStandardsIgnoreFile

?>
<?php $_source  = $block->getSource() ?>
<?php $_order   = $block->getOrder() ?>
<?php $block->setPriceDataObject($_source) ?>

<?php if ((float) $_source->getDiscountAmount()): ?>
    <tr>
        <td class="label">
            <?php if ($_order->getCouponCode()): ?>
                <?php /* @escapeNotVerified */ echo __('Discount (%1)', $_order->getCouponCode()) ?>
            <?php else: ?>
                <?php /* @escapeNotVerified */ echo __('Discount') ?>
            <?php endif; ?>
        </td>
        <td><?php /* @escapeNotVerified */ echo $block->displayPriceAttribute('discount_amount') ?></td>
    </tr>
<?php endif; ?>
