download-count-file-field-formatter.html.twig in Open Social 8.5
{{ attach_library('socialbase/file') }}
{% 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>
{% endspaceless %}
File
themes/socialbase/templates/file/download-count-file-field-formatter.html.twig
View source
- {{ attach_library('socialbase/file') }}
- {% 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>
- {% endspaceless %}