diff --git a/seahub/templates/wiki/wiki_list.html b/seahub/templates/wiki/wiki_list.html index d289c955c3..28f7526624 100644 --- a/seahub/templates/wiki/wiki_list.html +++ b/seahub/templates/wiki/wiki_list.html @@ -472,8 +472,6 @@ var NewWikiController = { _this.chooseEl.append($(_this.chooseWikiTmpl(data))); $('#new-wiki-by-existing-form').modal(); $('#simplemodal-container').css({'width':'auto', 'height':'auto'}) - } else { - _this.chooseEl.html("{% trans "No existing library to choose." %}"); } }, error: function(xhr) { diff --git a/seahub/wiki/views.py b/seahub/wiki/views.py index aa6d4248f6..c24c18529e 100644 --- a/seahub/wiki/views.py +++ b/seahub/wiki/views.py @@ -53,7 +53,7 @@ def slug(request, slug, file_path="home.md"): return redirect('auth_login') if not wiki.check_access_wiki(request): - return render_permission_error(request, _(u'Unable to view wiki')) + return render_permission_error(request, _(u'Permission denied.')) file_type, ext = get_file_type_and_ext(posixpath.basename(file_path)) if file_type == IMAGE: