<f:comment><!--
    Download item: Renders a list item that displays a download.
    This partial must be used in a ul.tb-downloads container and
    must receive the following arguments:
    - url
    - label
--></f:comment>

<f:if condition="{url} && {label}">
    <li class="tb-downloads__item">
        <a class="tb-downloads__link" href="{url}" target="_blank">
            <span class="tb-downloads__icon-wrapper">
                <svg class="c-icon" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M10 9.252l2.738-2.737a.999.999 0 1 1 1.414 1.414l-4.419 4.418a.995.995 0 0 1-.733.32.995.995 0 0 1-.733-.32L3.849 7.929a.999.999 0 1 1 1.414-1.414L8 9.252V1a1 1 0 0 1 2 0v8.252zm6 2.415a1 1 0 0 1 2 0v3.556a2.787 2.787 0 0 1-2.778 2.778H2.773A2.797 2.797 0 0 1 0 15.223v-3.556a1 1 0 0 1 2 0v3.551a.793.793 0 0 0 .778.783h12.444a.787.787 0 0 0 .778-.778v-3.556z" fill-rule="nonzero"></path></svg>
            </span>
            <span class="tb-downloads__text">
                {label}
            </span>
        </a>
    </li>
</f:if>
