src/AppBundle/Resources/views/ObjectViews/include/moreContentDownloads.html.twig line 1

Open in your IDE?
  1. {% if content.getAssets() %}
  2.     <div class="row inner-full">
  3.         <div class="col-10 offset-1">
  4.             <h4 class="smaller text-primary border-bottom">{{ 'news.details.downloads_title'|trans }}</h4>
  5.             <ul class="linklist list-unstyled">
  6.             {% for asset in content.getAssets() %}
  7.                 {% set title = asset.getMetadata('title') %}
  8.                 {% if not title %}
  9.                     {% set title = asset.getKey() %}
  10.                 {% endif %}
  11.                 <li><a class="lorch-icon lorch-icon-download" href="{{ asset.getFullPath() }}" target="_blank">{{ title }}</a></li>
  12.             {% endfor %}
  13.             </ul>
  14.         </div>
  15.     </div>
  16. {% endif %}