Only show backup button in navbar if backups are enabled

This commit is contained in:
Joakim Hellsén 2026-03-07 02:20:35 +01:00
commit 567273678e
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
3 changed files with 60 additions and 10 deletions

View file

@ -131,6 +131,7 @@ templates.env.filters["encode_url"] = lambda url: urllib.parse.quote(url) if url
templates.env.filters["entry_is_whitelisted"] = entry_is_whitelisted
templates.env.filters["entry_is_blacklisted"] = entry_is_blacklisted
templates.env.filters["discord_markdown"] = markdownify
templates.env.globals["get_backup_path"] = get_backup_path
@app.post("/add_webhook")