Implement getting alerts in overview

This commit is contained in:
2022-08-03 09:24:13 +01:00
parent f52d01d6f7
commit 04d4cee222
6 changed files with 174 additions and 2 deletions

View File

@@ -16,6 +16,15 @@ class ThresholdIRCStats(SuperUserRequiredMixin, View):
return render(request, self.stats_template, context)
class ThresholdIRCOverviewAlerts(SuperUserRequiredMixin, View):
stats_template = "manage/threshold/irc/overview/alerts.html"
def get(self, request):
alerts = threshold.get_irc_alerts(request.user)
context = {"alerts": alerts}
return render(request, self.stats_template, context)
class ThresholdIRCNetworks(SuperUserRequiredMixin, View):
template_name = "manage/threshold/irc/overview/networks.html"