mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 16:31:13 +00:00
add search results highlight
This commit is contained in:
@@ -13,6 +13,11 @@ try:
|
||||
except ImportError:
|
||||
BUSINESS_MODE = False
|
||||
|
||||
try:
|
||||
from settings import ENABLE_FILE_SEARCH
|
||||
except ImportError:
|
||||
ENABLE_FILE_SEARCH = False
|
||||
|
||||
def base(request):
|
||||
"""
|
||||
Add seahub base configure to the context.
|
||||
@@ -37,5 +42,6 @@ def base(request):
|
||||
'site_name': SITE_NAME,
|
||||
'enable_signup': ENABLE_SIGNUP,
|
||||
'max_file_name': MAX_FILE_NAME,
|
||||
'enable_file_search': ENABLE_FILE_SEARCH,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user