mirror of https://gitlab.com/bashrc2/epicyon
Checkbox for low bandwidth
parent
e91e4a0727
commit
11c02dcfb9
14
daemon.py
14
daemon.py
|
@ -5424,6 +5424,20 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
else:
|
||||
disableGrayscale(baseDir)
|
||||
|
||||
# low bandwidth images checkbox
|
||||
if path.startswith('/users/' + adminNickname + '/') or \
|
||||
isArtist(baseDir, nickname):
|
||||
currLowBandwidth = \
|
||||
getConfigParam(baseDir, 'lowBandwidth')
|
||||
lowBandwidth = False
|
||||
if fields.get('lowBandwidth'):
|
||||
if fields['lowBandwidth'] == 'on':
|
||||
lowBandwidth = True
|
||||
if currLowBandwidth != lowBandwidth:
|
||||
setConfigParam(baseDir, 'lowBandwidth',
|
||||
lowBandwidth)
|
||||
self.server.lowBandwidth = lowBandwidth
|
||||
|
||||
# save filtered words list
|
||||
filterFilename = \
|
||||
acctDir(baseDir, nickname, domain) + \
|
||||
|
|
|
@ -2773,6 +2773,11 @@ showNodeInfoVersion = \
|
|||
if showNodeInfoVersion is not None:
|
||||
args.showNodeInfoVersion = bool(showNodeInfoVersion)
|
||||
|
||||
lowBandwidth = \
|
||||
getConfigParam(baseDir, 'lowBandwidth')
|
||||
if lowBandwidth is not None:
|
||||
args.lowBandwidth = bool(lowBandwidth)
|
||||
|
||||
userAgentsBlocked = []
|
||||
if args.userAgentBlocks:
|
||||
userAgentsBlockedStr = args.userAgentBlocks
|
||||
|
|
|
@ -473,5 +473,6 @@
|
|||
"Maximum Price": "السعر الأقصى",
|
||||
"Create a new wanted item": "قم بإنشاء عنصر مطلوب جديد",
|
||||
"Wanted Items Search": "البحث عن العناصر المطلوبة",
|
||||
"Website": "موقع إلكتروني"
|
||||
"Website": "موقع إلكتروني",
|
||||
"Low Bandwidth": "انخفاض النطاق الترددي"
|
||||
}
|
||||
|
|
|
@ -473,5 +473,6 @@
|
|||
"Maximum Price": "Preu màxim",
|
||||
"Create a new wanted item": "Creeu un element desitjat",
|
||||
"Wanted Items Search": "Cerca d'articles desitjats",
|
||||
"Website": "Lloc web"
|
||||
"Website": "Lloc web",
|
||||
"Low Bandwidth": "Ample de banda baixa"
|
||||
}
|
||||
|
|
|
@ -473,5 +473,6 @@
|
|||
"Maximum Price": "Uchafswm Pris",
|
||||
"Create a new wanted item": "Creu eitem newydd ei heisiau",
|
||||
"Wanted Items Search": "Chwilio Eitemau Eisiau",
|
||||
"Website": "Gwefan"
|
||||
"Website": "Gwefan",
|
||||
"Low Bandwidth": "Lled band isel"
|
||||
}
|
||||
|
|
|
@ -473,5 +473,6 @@
|
|||
"Maximum Price": "Höchstpreis",
|
||||
"Create a new wanted item": "Erstelle einen neuen gesuchten Artikel",
|
||||
"Wanted Items Search": "Gesuchte Artikel suchen",
|
||||
"Website": "Webseite"
|
||||
"Website": "Webseite",
|
||||
"Low Bandwidth": "Niedrige Bandbreite"
|
||||
}
|
||||
|
|
|
@ -473,5 +473,6 @@
|
|||
"Maximum Price": "Maximum Price",
|
||||
"Create a new wanted item": "Create a new wanted item",
|
||||
"Wanted Items Search": "Wanted Items Search",
|
||||
"Website": "Website"
|
||||
"Website": "Website",
|
||||
"Low Bandwidth": "Low Bandwidth"
|
||||
}
|
||||
|
|
|
@ -473,5 +473,6 @@
|
|||
"Maximum Price": "Precio Máximo",
|
||||
"Create a new wanted item": "Crea un nuevo artículo buscado",
|
||||
"Wanted Items Search": "Búsqueda de artículos deseados",
|
||||
"Website": "Sitio web"
|
||||
"Website": "Sitio web",
|
||||
"Low Bandwidth": "Ancho de banda bajo"
|
||||
}
|
||||
|
|
|
@ -473,5 +473,6 @@
|
|||
"Maximum Price": "Prix maximum",
|
||||
"Create a new wanted item": "Créer un nouvel article recherché",
|
||||
"Wanted Items Search": "Recherche d'objets recherchés",
|
||||
"Website": "Site Internet"
|
||||
"Website": "Site Internet",
|
||||
"Low Bandwidth": "Bas débit"
|
||||
}
|
||||
|
|
|
@ -473,5 +473,6 @@
|
|||
"Maximum Price": "Uasphraghas",
|
||||
"Create a new wanted item": "Cruthaigh mír nua a theastaigh",
|
||||
"Wanted Items Search": "Cuardaigh Míreanna Teastaíonn",
|
||||
"Website": "Suíomh gréasáin"
|
||||
"Website": "Suíomh gréasáin",
|
||||
"Low Bandwidth": "Bandaleithead íseal"
|
||||
}
|
||||
|
|
|
@ -473,5 +473,6 @@
|
|||
"Maximum Price": "अधिकतम मूल्य",
|
||||
"Create a new wanted item": "एक नई वांछित वस्तु बनाएँ",
|
||||
"Wanted Items Search": "वांटेड आइटम सर्च",
|
||||
"Website": "वेबसाइट"
|
||||
"Website": "वेबसाइट",
|
||||
"Low Bandwidth": "कम बैंडविड्थ"
|
||||
}
|
||||
|
|
|
@ -473,5 +473,6 @@
|
|||
"Maximum Price": "Prezzo massimo",
|
||||
"Create a new wanted item": "Crea un nuovo oggetto ricercato",
|
||||
"Wanted Items Search": "Ricerca articoli ricercati",
|
||||
"Website": "Sito web"
|
||||
"Website": "Sito web",
|
||||
"Low Bandwidth": "Bassa larghezza di banda"
|
||||
}
|
||||
|
|
|
@ -473,5 +473,6 @@
|
|||
"Maximum Price": "最高価格",
|
||||
"Create a new wanted item": "新しい欲しいアイテムを作成する",
|
||||
"Wanted Items Search": "欲しいアイテム検索",
|
||||
"Website": "Webサイト"
|
||||
"Website": "Webサイト",
|
||||
"Low Bandwidth": "低帯域幅"
|
||||
}
|
||||
|
|
|
@ -473,5 +473,6 @@
|
|||
"Maximum Price": "Maximum Price",
|
||||
"Create a new wanted item": "Tiştek xwestî ya nû biafirînin",
|
||||
"Wanted Items Search": "Wanted Items Search",
|
||||
"Website": "Malper"
|
||||
"Website": "Malper",
|
||||
"Low Bandwidth": "Bandwidth kêm"
|
||||
}
|
||||
|
|
|
@ -469,5 +469,6 @@
|
|||
"Maximum Price": "Maximum Price",
|
||||
"Create a new wanted item": "Create a new wanted item",
|
||||
"Wanted Items Search": "Wanted Items Search",
|
||||
"Website": "Website"
|
||||
"Website": "Website",
|
||||
"Low Bandwidth": "Low Bandwidth"
|
||||
}
|
||||
|
|
|
@ -473,5 +473,6 @@
|
|||
"Maximum Price": "Preço Máximo",
|
||||
"Create a new wanted item": "Crie um novo item desejado",
|
||||
"Wanted Items Search": "Pesquisa de Itens Desejados",
|
||||
"Website": "Local na rede Internet"
|
||||
"Website": "Local na rede Internet",
|
||||
"Low Bandwidth": "Baixa largura de banda"
|
||||
}
|
||||
|
|
|
@ -473,5 +473,6 @@
|
|||
"Maximum Price": "Максимальная цена",
|
||||
"Create a new wanted item": "Создать новый требуемый предмет",
|
||||
"Wanted Items Search": "Поиск требуемых предметов",
|
||||
"Website": "Интернет сайт"
|
||||
"Website": "Интернет сайт",
|
||||
"Low Bandwidth": "Низкая пропускная способность"
|
||||
}
|
||||
|
|
|
@ -473,5 +473,6 @@
|
|||
"Maximum Price": "Bei ya juu",
|
||||
"Create a new wanted item": "Unda kipengee kipya kinachotafutwa",
|
||||
"Wanted Items Search": "Utafutaji wa Vitu vinavyotafutwa",
|
||||
"Website": "Tovuti"
|
||||
"Website": "Tovuti",
|
||||
"Low Bandwidth": "Bandwidth ya chini"
|
||||
}
|
||||
|
|
|
@ -473,5 +473,6 @@
|
|||
"Maximum Price": "最高价格",
|
||||
"Create a new wanted item": "创建一个新的通缉物品",
|
||||
"Wanted Items Search": "通缉物品搜索",
|
||||
"Website": "网站"
|
||||
"Website": "网站",
|
||||
"Low Bandwidth": "低带宽"
|
||||
}
|
||||
|
|
|
@ -1111,6 +1111,12 @@ def _htmlEditProfileGraphicDesign(baseDir: str, translate: {}) -> str:
|
|||
|
||||
graphicsStr = beginEditSection(translate['Graphic Design'])
|
||||
|
||||
lowBandwidth = getConfigParam(baseDir, 'lowBandwidth')
|
||||
if not lowBandwidth:
|
||||
lowBandwidth = False
|
||||
graphicsStr += \
|
||||
editCheckBox(translate['Low Bandwidth'], 'lowBandwidth',
|
||||
bool(lowBandwidth))
|
||||
graphicsStr += _htmlThemesDropdown(baseDir, translate)
|
||||
graphicsStr += \
|
||||
' <label class="labels">' + \
|
||||
|
|
Loading…
Reference in New Issue