1
0
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:
lins05
2013-03-09 14:15:53 +08:00
parent 2bb4532fb9
commit d4525e2845
7 changed files with 188 additions and 59 deletions

View File

@@ -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,
}