{{ attach_library('socialbase/file') }}
{% apply spaceless %}
  <li class="card-file">
    <a class="card-file__link" href="{{ link_url }}" title="{{ 'Open or download file'|t }}" target="_blank">
      <span class="card-file__title">{{ link_text|replace({'_': ' '}) }}</span>
      <span class="card-file__type">
        <img class="card-file__icon" src="/{{ path_to_socialbase }}/assets/images/mime-icons/icon_1_{{ node_icon }}_x16.png" srcset="/{{ path_to_socialbase }}/assets/images/mime-icons/icon_1_{{ node_icon }}_x32.png 2x" alt="{{ node_icon }}" />
        <span class="card-file__size">{{ file_size }}</span>
        <span class="card-file__count">{{ count }}</span>
      </span>
    </a>
  </li>
{% endapply %}
