Fix emailMarketing reverse error + dashboardStatsController ctrlreg

- CyberCP/urls.py: when emailMarketing app is missing/broken, register placeholder path with name='emailMarketing' so {% url 'emailMarketing' %} never raises Reverse not found.
- public/static/baseTemplate/custom-js/system-status.js: replace old copy with full system-status.js that registers dashboardStatsController and systemStatusInfo (fixes Angular [:ctrlreg] and raw {{$ cpuUsage $}} on overview).
This commit is contained in:
master3395
2026-02-17 00:21:25 +01:00
committed by KraoESPfan1n
parent 3ba4005a4e
commit 410c4ffbc0
2 changed files with 1836 additions and 13 deletions

View File

@@ -26,12 +26,15 @@ from firewall import views as firewall_views
# includes each installed plugin (under /plugins/<name>/) so settings and
# other plugin pages work for any installed plugin.
# Optional app: may be missing after clean clone or git clean -fd (not in all repo trees)
# Optional app: may be missing after clean clone or git clean -fd (not in all repo trees).
# When missing or broken, register a placeholder so {% url 'emailMarketing' %} in templates never raises Reverse not found.
_optional_email_marketing = []
try:
_optional_email_marketing.append(path('emailMarketing/', include('emailMarketing.urls')))
except ModuleNotFoundError:
pass
except (ModuleNotFoundError, ImportError, AttributeError):
_optional_email_marketing.append(
path('emailMarketing/', RedirectView.as_view(url='/base/', permanent=False), name='emailMarketing')
)
urlpatterns = [
# Serve static files first (before catch-all routes)

File diff suppressed because it is too large Load Diff