Don't try to display bigfile limit settings if no bigfile plugin enabled
This commit is contained in:
parent
30865c9d1c
commit
0bbeede975
1 changed files with 9 additions and 8 deletions
|
@ -321,14 +321,15 @@ class UiWebsocketPlugin(object):
|
||||||
<input type="checkbox" class="checkbox" id="checkbox-autodownloadoptional" {checked}/><div class="checkbox-skin"></div>
|
<input type="checkbox" class="checkbox" id="checkbox-autodownloadoptional" {checked}/><div class="checkbox-skin"></div>
|
||||||
"""))
|
"""))
|
||||||
|
|
||||||
autodownload_bigfile_size_limit = int(site.settings.get("autodownload_bigfile_size_limit", config.autodownload_bigfile_size_limit))
|
if hasattr(config, "autodownload_bigfile_size_limit"):
|
||||||
body.append(_("""
|
autodownload_bigfile_size_limit = int(site.settings.get("autodownload_bigfile_size_limit", config.autodownload_bigfile_size_limit))
|
||||||
<div class='settings-autodownloadoptional'>
|
body.append(_("""
|
||||||
<label>{_[Auto download big file size limit]}</label>
|
<div class='settings-autodownloadoptional'>
|
||||||
<input type='text' class='text text-num' value="{autodownload_bigfile_size_limit}" id='input-autodownload_bigfile_size_limit'/><span class='text-post'>MB</span>
|
<label>{_[Auto download big file size limit]}</label>
|
||||||
<a href='#Set' class='button' id='button-autodownload_bigfile_size_limit'>{_[Set]}</a>
|
<input type='text' class='text text-num' value="{autodownload_bigfile_size_limit}" id='input-autodownload_bigfile_size_limit'/><span class='text-post'>MB</span>
|
||||||
</div>
|
<a href='#Set' class='button' id='button-autodownload_bigfile_size_limit'>{_[Set]}</a>
|
||||||
"""))
|
</div>
|
||||||
|
"""))
|
||||||
body.append("</li>")
|
body.append("</li>")
|
||||||
|
|
||||||
def sidebarRenderBadFiles(self, body, site):
|
def sidebarRenderBadFiles(self, body, site):
|
||||||
|
|
Loading…
Reference in a new issue