We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3d92f6 commit 96b8df9Copy full SHA for 96b8df9
Resources/views/Default/templates.html.twig
@@ -31,8 +31,7 @@
31
<script type="text/template" id="file-uploader-file-template">
32
<li data-name="<%- name %>" class="thumbnail">
33
{# Some things can be thumbnailed, some things not #}
34
- {# ACHTUNG: regular expression literals fail in Underscore templates #}
35
- <% if (url.match(new RegExp('(\.gif|\.jpg|\.jpeg|\.png)$', 'i'))) { %>
+ <% if ('undefined' != typeof thumbnail_url) { %>
36
<img src="<%- thumbnail_url %>" class="thumbnail-image" />
37
<% } %>
38
<div class="caption">
0 commit comments