1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-29 12:04:02 +00:00

change trans string

This commit is contained in:
ilearnit 2018-08-24 17:29:10 +08:00
parent 914a698513
commit 6e9dd2e9bc
2 changed files with 1 additions and 3 deletions

View File

@ -472,8 +472,6 @@ var NewWikiController = {
_this.chooseEl.append($(_this.chooseWikiTmpl(data))); _this.chooseEl.append($(_this.chooseWikiTmpl(data)));
$('#new-wiki-by-existing-form').modal(); $('#new-wiki-by-existing-form').modal();
$('#simplemodal-container').css({'width':'auto', 'height':'auto'}) $('#simplemodal-container').css({'width':'auto', 'height':'auto'})
} else {
_this.chooseEl.html("{% trans "No existing library to choose." %}");
} }
}, },
error: function(xhr) { error: function(xhr) {

View File

@ -53,7 +53,7 @@ def slug(request, slug, file_path="home.md"):
return redirect('auth_login') return redirect('auth_login')
if not wiki.check_access_wiki(request): 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)) file_type, ext = get_file_type_and_ext(posixpath.basename(file_path))
if file_type == IMAGE: if file_type == IMAGE: