1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 15:38:15 +00:00

Add OFFICIAL_MODE to switch between cloud version and download version.

This commit is contained in:
xiez
2012-08-01 17:42:28 +08:00
parent dea8dc7ea8
commit 331e57cd1e
8 changed files with 16 additions and 34 deletions

View File

@@ -6,7 +6,8 @@ and returns a dictionary to add to the context.
These are referenced from the setting TEMPLATE_CONTEXT_PROCESSORS and used by
RequestContext.
"""
import settings
from settings import SEAFILE_VERSION
from settings import SEAHUB_TITLE
def base(request):
"""
@@ -14,8 +15,9 @@ def base(request):
"""
return {
'seafile_version': settings.SEAFILE_VERSION,
'seahub_title': settings.SEAHUB_TITLE,
'seafile_version': SEAFILE_VERSION,
'seahub_title': SEAHUB_TITLE,
'official_mode': request.official_mode,
# 'account_type': settings.ACCOUNT_TYPE,
}