socialbase-1.1.0/templates/file/file-link--comment.html.twig

templates/file/file-link--comment.html.twig
{#
/**
* @file
* Theme override for a link to a file for nodes.
*
* Available variables:
* - attributes: The HTML attributes for the containing element.
* - link: A link to the file.
* - node_icon: An icon.
*
* @ingroup templates
*
* @see \Drupal\bootstrap\Plugin\Preprocess\FileLink::preprocessVariables
*/
#}
{{ attach_library('socialbase/file') }}
{% apply spaceless %}

  <div class="file-tile">
      <span class="file-link notranslate">{{ link }}</span>
      <span class="file-metadata">
        <span class="file-size">{{ file_size }}</span>
        <span class="file-icon">
          <img class="node-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>
      </span>
  </div>

{% endapply %}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc