Added timerboard feature

This commit is contained in:
Raynaldo Rivera
2014-11-16 01:10:41 -07:00
parent 1ca376f71b
commit d1244a97e3
18 changed files with 5160 additions and 31 deletions

1
util/__init__.py Normal file → Executable file
View 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
View 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()}