Implement getting alerts in overview
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user