Display price and discounts in Shopify

Display the price and discounts:

{% for item in cart.items %}
  <!-- item info -->
  {% if item.original_price > item.final_price %}
    <s>{{ item.original_price | money }}</s>
  {% endif %}
  {{ item.final_price | money }})
  {% if item.line_level_discount_allocations.size > 0 %}
    Discounts:
    <ul>
      {% for discount_allocation in item.line_level_discount_allocations %}
        <li>
          {{ discount_allocation.discount_application.title }}-{{ discount_allocation.amount | money }}
        </li>
      {% endfor %}
    </ul>
  {% endif %}
{% endfor %}