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:
parent
914a698513
commit
6e9dd2e9bc
@ -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) {
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user