neptune/core/views/manage/threshold/threshold.py

20 lines
586 B
Python
Raw Normal View History

from django.shortcuts import render
from django.views import View
from core.views.manage.permissions import SuperUserRequiredMixin
class ThresholdIRCOverview(SuperUserRequiredMixin, View):
template_name = "manage/threshold/irc/overview/overview.html"
def get(self, request):
return render(request, self.template_name)
2022-07-26 21:15:30 +00:00
class ThresholdIRCNetwork(SuperUserRequiredMixin, View):
template_name = "manage/threshold/irc/network/network.html"
2022-07-26 21:15:30 +00:00
def get(self, request, net):
context = {"net": net}
return render(request, self.template_name, context)