mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-06 23:26:19 +01:00
Added timerboard feature
This commit is contained in:
1
util/__init__.py
Normal file → Executable file
1
util/__init__.py
Normal file → Executable file
@@ -13,6 +13,7 @@ def bootstrap_permissions():
|
||||
Permission.objects.get_or_create(codename="human_resources", content_type=ct, name="human_resources")
|
||||
Permission.objects.get_or_create(codename="blue_member", content_type=ct, name="blue_member")
|
||||
Permission.objects.get_or_create(codename="corp_stats", content_type=ct, name="corp_stats")
|
||||
Permission.objects.get_or_create(codename="timer_management", content_type=ct, name="timer_management")
|
||||
Group.objects.get_or_create(name=settings.DEFAULT_ALLIANCE_GROUP)
|
||||
Group.objects.get_or_create(name=settings.DEFAULT_BLUE_GROUP)
|
||||
|
||||
|
||||
4
util/context_processors.py
Normal file → Executable file
4
util/context_processors.py
Normal file → Executable file
@@ -1,4 +1,5 @@
|
||||
from django.conf import settings
|
||||
from django.utils import timezone
|
||||
|
||||
|
||||
def alliance_id(request):
|
||||
@@ -21,4 +22,5 @@ def domain_url(request):
|
||||
'ENABLE_ALLIANCE_MUMBLE': settings.ENABLE_ALLIANCE_MUMBLE,
|
||||
'ENABLE_BLUE_JABBER': settings.ENABLE_BLUE_JABBER,
|
||||
'ENABLE_BLUE_FORUM': settings.ENABLE_BLUE_FORUM,
|
||||
'ENABLE_BLUE_MUMBLE': settings.ENABLE_BLUE_MUMBLE}
|
||||
'ENABLE_BLUE_MUMBLE': settings.ENABLE_BLUE_MUMBLE,
|
||||
'CURRENT_UTC_TIME': timezone.now()}
|
||||
Reference in New Issue
Block a user