1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 00:00:00 +00:00

[file_comment]show comments when enter file-view from link in grp msg

This commit is contained in:
llj
2012-09-20 10:45:09 +08:00
parent 9f943b1c4c
commit 83e430efdb
3 changed files with 6 additions and 1 deletions

View File

@@ -976,6 +976,7 @@ def repo_view_file(request, repo_id):
path = request.GET.get('p', '/')
u_filename = os.path.basename(path)
filename = urllib2.quote(u_filename.encode('utf-8'))
comment_open = request.GET.get('comment_open', '')
commit_id = request.GET.get('commit_id', '')
view_history = True if commit_id else False
@@ -1086,6 +1087,7 @@ def repo_view_file(request, repo_id):
"applet_root": get_ccnetapplet_root(),
'groups': groups,
'comments': comments,
'comment_open':comment_open,
'document_swf_exists': document_swf_exists,
'DOCUMENT_CONVERTOR_ROOT': DOCUMENT_CONVERTOR_ROOT,
'contributors': contributors,