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:
2
views.py
2
views.py
@@ -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,
|
||||
|
Reference in New Issue
Block a user