diff --git a/seahub/templates/js/templates.html b/seahub/templates/js/templates.html
index 205e3da3ae..b5e9d6787f 100644
--- a/seahub/templates/js/templates.html
+++ b/seahub/templates/js/templates.html
@@ -437,7 +437,7 @@
- <% if (dirent.is_img) { %>
+ <% if (dirent.is_img || dirent.is_video) { %>
<% if (dirent.encoded_thumbnail_src) { %>

<% } else { %>
@@ -532,7 +532,7 @@
|
- <% if (dirent.is_img) { %>
+ <% if (dirent.is_img || dirent.is_video) { %>
<% if (dirent.encoded_thumbnail_src) { %>

<% } else { %>
@@ -605,7 +605,7 @@
|