16 lines
		
	
	
		
			612 B
		
	
	
	
		
			Twig
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			612 B
		
	
	
	
		
			Twig
		
	
	
	
	
	
| <figure>
 | |
|     {% set thumbnail = attachment.getThumbnail() %}
 | |
|     <img class="u-photo"
 | |
|          alt="{{ attachment.getBestTitle(note) }}"
 | |
|          src="{{ attachment.getThumbnailUrl() }}"
 | |
|          width="{{ thumbnail.getWidth() }}"
 | |
|          height="{{ thumbnail.getHeight() }}">
 | |
|         <figcaption>
 | |
|             {% if attachment.getFilename() is not null %}
 | |
|                 <a href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getBestTitle(note) }}</a>
 | |
|             {% else %}
 | |
|                 {{ attachment.getBestTitle(note) }}
 | |
|             {% endif %}
 | |
|         </figcaption>
 | |
| </figure>
 |