1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

Add seafile version, change 4GB to 2GB, and modify userinfo page

This commit is contained in:
xiez
2012-05-03 10:52:43 +08:00
parent eaaee89f55
commit 566e66b8d6
10 changed files with 100 additions and 95 deletions

View File

@@ -0,0 +1,16 @@
"""
A set of request processors that return dictionaries to be merged into a
template context. Each function takes the request object as its only parameter
and returns a dictionary to add to the context.
These are referenced from the setting TEMPLATE_CONTEXT_PROCESSORS and used by
RequestContext.
"""
import settings
def version(request):
"""
Adds seafile version to the context
"""
return {'seafile_version': settings.SEAFILE_VERSION}