mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-01 17:32:21 +00:00
13 lines
339 B
Python
13 lines
339 B
Python
from seahub.utils import get_cur_ctx
|
|
|
|
def org(request):
|
|
"""
|
|
Add org info and base template that html page will extends to context.
|
|
"""
|
|
ctx_dict = get_cur_ctx(request)
|
|
base_template = ctx_dict['base_template']
|
|
org_dict = ctx_dict['org_dict']
|
|
return {'base_template': base_template,
|
|
'org': org_dict}
|
|
|