+ <% if (show_cur_repo) { %>
{% trans "Current Library"%}
+ <% } %>
<% if (show_other_repos) { %>
{% trans "Other Libraries"%}
diff --git a/seahub/templates/js/templates.html b/seahub/templates/js/templates.html
index c9df5015dd..42e847888d 100644
--- a/seahub/templates/js/templates.html
+++ b/seahub/templates/js/templates.html
@@ -234,6 +234,11 @@
{% trans "Open via Client" %}
<% } %>
+ <% } else if (dirent.perm == 'r' && !repo_encrypted) { %>
+
+
<% } %>
@@ -316,6 +321,11 @@
{% trans "Open via Client" %}
<% } %>
+ <% } else if (dirent.perm == 'r' && !repo_encrypted) { %>
+
+
<% } %>
diff --git a/static/scripts/app/views/dirent.js b/static/scripts/app/views/dirent.js
index dd9ff653dd..cf15225091 100644
--- a/static/scripts/app/views/dirent.js
+++ b/static/scripts/app/views/dirent.js
@@ -308,21 +308,28 @@ define([
var title = op_type == 'mv' ? gettext("Move {placeholder} to:") : gettext("Copy {placeholder} to:");
title = title.replace('{placeholder}', '