File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/Resources/views/Admin/MediaManager/Modal/Content/Files Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11{% set filePath = folder is not empty ? folder ~ ' /' ~ file .path : file .path %}
2- {% if file .isImage %}
2+ {% if file .isImage and file . mimeType != ' image/svg+xml ' %}
33 <a href =" /media/{{ filePath }}" target =" _blank" rel =" noopener noreferrer" >
44 <img src =" {{ filePath | imagine_filter(' monsieurbiz_sylius_media_manager_uploaded_image' ) }}" alt =" {{ filePath | escape (' html_attr' ) }}" style =" max-width: 300px;max-height: 30px;" />
55 </a >
6+ {% elseif file .isImage and file .mimeType == ' image/svg+xml' %}
7+ <a href =" /media/{{ filePath }}" target =" _blank" rel =" noopener noreferrer" >
8+ <img src =" /media/{{ filePath }}" alt =" {{ filePath | escape (' html_attr' ) }}" style =" max-width: 300px;max-height: 30px;" />
9+ </a >
610{% elseif file .isFile %}
711 <a href =" /media/{{ filePath }}" target =" _blank" rel =" noopener noreferrer" class =" ui button mini icon" >
812 <i class =" eye icon" ></i >
You can’t perform that action at this time.
0 commit comments