{% if objectParameters is defined and objectParameters.class is defined and objectParameters.class == "download-link" %}
{% if not ibexa_field_is_empty( content, "image" ) %}
{{ render( controller( "ibexa_content:viewAction", {'contentId': ibexa_field_value(content,"image").destinationContentId, 'viewType': 'embed','params': {"class":"card-img-top img-fluid",'alias':'image400width','minimalMarkup': true}} ) ) }}
{% else %}
{% endif %} {{ ibexa_render_field(content, 'description') }} {% set route_reference = ibexa_route( 'ibexa.content.download', { 'content': content, 'fieldIdentifier': 'file' } ) %}

  {{ibexa_content_name( content )}} ({{ ibexa_field(content, 'file').value.fileSize|ibexa_file_size( 1 ) }})

{% else %} {% if onlyurl is defined and onlyurl == "true" %} {% apply spaceless %}{% set route_reference = ibexa_route( 'ibexa.content.download', { 'content': content, 'fieldIdentifier': 'file' } ) %} {{ ibexa_path( route_reference ) }} {% endapply %} {% else %}
{{ ibexa_render_field( content, 'file',{ 'template': '@ibexadesign/fields/db_field_templates.html.twig'} ) }}
{% endif %} {% endif %}