blob: 9cfcaa620377a6bdf1385b7735961c11cddc1a3b [file] [log] [blame]
Scott Bakera226eb42014-06-09 11:55:26 -07001from django.conf import settings
Scott Baker5face3a2014-08-05 10:15:26 -07002from core.models import Site
3
Scott Bakera226eb42014-06-09 11:55:26 -07004
Scott Bakera226eb42014-06-09 11:55:26 -07005def planetstack(request):
Scott Baker5face3a2014-08-05 10:15:26 -07006 allSites = []
7 for site in Site.objects.all():
8 allowNewUsers = True # replace with logic for blessing sites for registration, if necessary
9 allSites.append( {"name": site.name,
10 "id": site.id,
11 "allowNewUsers": allowNewUsers} )
12
13 return {"DISABLE_MINIDASHBOARD": settings.DISABLE_MINIDASHBOARD,
14 "sites": allSites}