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:
@@ -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,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user