Commit f2c6d3ac authored by Jonah Kanner's avatar Jonah Kanner 🤓 Committed by GraceDB

first light for public page

parent 20bb87a9
......@@ -33,4 +33,8 @@ legacy_urlpatterns = [
urlpatterns = legacy_urlpatterns + [
url(r'^(?P<superevent_id>{regex})/'.format(regex=Superevent.ID_REGEX),
include(suburlpatterns)),
# table of all public events
url(r'^public/$', views.SupereventPublic.as_view(), name="pubic-alerts"),
]
......@@ -2,6 +2,7 @@ import logging
import os
from django.views.generic.detail import DetailView
from django.views.generic import ListView
from guardian.shortcuts import get_objects_for_user
......@@ -115,3 +116,9 @@ class SupereventFileList(SupereventDetailView):
# NOTE: file "detail" or downloads (and associated permissions) are
# handled through the API. Links on the file list page point to the
# API file download page.
class SupereventPublic(ListView):
model = Superevent
template_name = 'superevents/public.html'
#filter_permissions = ['superevents.view_superevent']
#log_view_permission = 'superevents.view_log'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment