Display cart discounts in Shopify

Display between the subtotal and total if a discount applies to the cart as a whole.

Subtotal: {{ cart.items_subtotal_price | money }}
{% if cart.cart_level_discount_application.size > 0 %}
  Discounts:
  <ul>
    {% for discount_application in cart.cart_level_discount_applications %}
      <li>
        {{ discount_application.title }}-{{ discount_application.total_allocated_amount | money }}
      </li>
    {% endfor %}
  </ul>
{% endif %}
Total: {{ cart.total_price | money }}