diff --git a/seahub/templates/js/templates.html b/seahub/templates/js/templates.html
index e583ed67ed..05cde29e74 100644
--- a/seahub/templates/js/templates.html
+++ b/seahub/templates/js/templates.html
@@ -198,17 +198,17 @@
-
+
<% if (!repo_encrypted && can_generate_shared_link) { %>
-
+
<% } %>
<% if (dirent.perm == 'rw') { %>
-
+
<% } %>
<% if (dirent.perm == 'rw') { %>
<% } else if (dirent.perm == 'r' && !repo_encrypted) { %>
<% } else if (dirent.perm == 'r' && !repo_encrypted) { %>
|