fix add_comment by change source.js and add a new template called new_comment.html
This commit is contained in:
wrmswindmill 2018-08-08 15:35:38 +08:00
parent abd3ad5b2d
commit 8fcd5758cd
5 changed files with 543 additions and 21 deletions

View File

@ -460,7 +460,8 @@ class AddCommentView(View):
comment.content = content
comment.user = request.user
comment.save()
return HttpResponse(json.dumps({"status":"success","msg":"评论成功","comment_id":comment.pk, "username":comment.user.nick_name}), content_type='application/json')
html_str = render_to_string('projects/filesub/new-comment.html', {'comment': comment})
return HttpResponse(json.dumps({"status":"success","msg":"评论成功","html_str":html_str}), content_type='application/json')
else:
return HttpResponse('{"status":"fail","msg":"评论失败"}', content_type='application/json')

523
nohup.out
View File

@ -26685,3 +26685,526 @@ django.template.exceptions.TemplateSyntaxError: Could not parse the remainder: '
[07/Aug/2018 18:19:55] "POST /operations/show_annotation/ HTTP/1.1" 200 3177
[07/Aug/2018 18:19:58] "POST /operations/show_annotation/ HTTP/1.1" 200 2147
[07/Aug/2018 18:20:00] "POST /operations/show_annotation/ HTTP/1.1" 200 2161
[08/Aug/2018 11:35:02] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[08/Aug/2018 11:35:02] "GET /static/js/source.js HTTP/1.1" 304 0
[08/Aug/2018 11:35:02] "GET /static/css/code_show.css HTTP/1.1" 304 0
[08/Aug/2018 11:35:03] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[08/Aug/2018 11:35:04] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 11:35:04] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 11:35:04] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 11:35:06] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766303
[08/Aug/2018 11:35:13] "POST /operations/show_annotation/ HTTP/1.1" 200 4445
[08/Aug/2018 11:35:15] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 11:35:15] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 11:35:16] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 11:35:17] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 11:35:19] "POST /operations/add_vote/ HTTP/1.1" 200 57
[08/Aug/2018 11:35:20] "POST /operations/add_vote/ HTTP/1.1" 200 76
[08/Aug/2018 11:35:21] "POST /operations/add_vote/ HTTP/1.1" 200 57
[08/Aug/2018 11:35:22] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 11:35:25] "POST /operations/show_annotation/ HTTP/1.1" 200 4471
[08/Aug/2018 11:37:57] "POST /operations/show_annotation/ HTTP/1.1" 200 4471
[08/Aug/2018 11:38:01] "POST /operations/add_vote/ HTTP/1.1" 200 76
[08/Aug/2018 11:38:01] "POST /operations/add_vote/ HTTP/1.1" 200 76
[08/Aug/2018 11:38:01] "POST /operations/add_vote/ HTTP/1.1" 200 76
[08/Aug/2018 11:38:02] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 11:38:02] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 11:38:03] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 11:38:04] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 11:38:06] "POST /operations/show_annotation/ HTTP/1.1" 200 4458
[08/Aug/2018 11:38:14] "POST /operations/modify_anno/ HTTP/1.1" 200 41
[08/Aug/2018 11:38:16] "POST /operations/show_annotation/ HTTP/1.1" 200 4450
[08/Aug/2018 11:42:33] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[08/Aug/2018 11:42:33] "GET /static/js/source.js HTTP/1.1" 304 0
[08/Aug/2018 11:42:33] "GET /static/css/code_show.css HTTP/1.1" 304 0
[08/Aug/2018 11:42:34] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 11:42:34] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 11:42:34] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 11:42:36] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
Not Found: /http:/112.35.66.7:10083/index.php
[08/Aug/2018 12:17:57] "GET http://112.35.66.7:10083/index.php HTTP/1.1" 404 1712
[08/Aug/2018 14:55:52] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[08/Aug/2018 14:55:52] "GET /static/js/source.js HTTP/1.1" 304 0
[08/Aug/2018 14:55:53] "GET /static/css/code_show.css HTTP/1.1" 200 23819
[08/Aug/2018 14:55:53] "GET /static/css/jstreeStyle.css HTTP/1.1" 304 0
[08/Aug/2018 14:55:53] "GET /static/css/monokai-sublime.css HTTP/1.1" 304 0
[08/Aug/2018 14:55:53] "GET /static/js/jstree.js HTTP/1.1" 304 0
[08/Aug/2018 14:55:53] "GET /static/css/32px.png HTTP/1.1" 304 0
[08/Aug/2018 14:55:53] "GET /static/css/throbber.gif HTTP/1.1" 304 0
[08/Aug/2018 14:55:53] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 14:55:54] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 14:55:54] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 14:55:54] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[08/Aug/2018 14:56:01] "POST /operations/show_annotation/ HTTP/1.1" 200 4481
[08/Aug/2018 14:56:03] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 14:56:04] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 14:56:05] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 14:56:05] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 14:56:06] "POST /operations/add_vote/ HTTP/1.1" 200 57
[08/Aug/2018 14:56:08] "POST /operations/show_annotation/ HTTP/1.1" 200 2296
[08/Aug/2018 14:56:10] "POST /operations/add_vote/ HTTP/1.1" 200 76
[08/Aug/2018 14:56:11] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 14:56:12] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 14:56:15] "POST /operations/show_annotation/ HTTP/1.1" 200 387
[08/Aug/2018 14:56:18] "POST /operations/show_annotation/ HTTP/1.1" 200 2271
[08/Aug/2018 14:56:20] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 14:56:20] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 14:56:21] "POST /operations/add_vote/ HTTP/1.1" 200 57
[08/Aug/2018 14:56:25] "POST /operations/show_annotation/ HTTP/1.1" 200 2271
[08/Aug/2018 14:56:29] "GET /static/css/code_show.css HTTP/1.1" 304 0
[08/Aug/2018 14:56:29] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[08/Aug/2018 14:56:59] "GET / HTTP/1.1" 200 22420
[08/Aug/2018 14:57:00] "GET /static/css/base.css HTTP/1.1" 200 18934
[08/Aug/2018 14:57:00] "GET /static/css/jstreeStyle.css HTTP/1.1" 200 30545
[08/Aug/2018 14:57:00] "GET /static/css/common.css HTTP/1.1" 200 8146
[08/Aug/2018 14:57:00] "GET /static/vendor/font-awesome/css/font-awesome.css HTTP/1.1" 200 37414
[08/Aug/2018 14:57:00] "GET /static/vendor/qtip/jquery.qtip.css HTTP/1.1" 200 12616
[08/Aug/2018 14:57:00] "GET /static/vendor/bootstrap/css/bootstrap.css HTTP/1.1" 200 146070
[08/Aug/2018 14:57:00] "GET /static/css/prettify.css HTTP/1.1" 200 1726
[08/Aug/2018 14:57:00] "GET /static/js/run_prettify.js HTTP/1.1" 200 16604
[08/Aug/2018 14:57:00] "GET /static/js/base.js HTTP/1.1" 200 21228
[08/Aug/2018 14:57:00] "GET /static/vendor/bootstrap/js/bootstrap.min.js HTTP/1.1" 200 37045
[08/Aug/2018 14:57:00] "GET /static/vendor/site/css/style.css HTTP/1.1" 200 160228
[08/Aug/2018 14:57:00] "GET /static/js/jstree.js HTTP/1.1" 200 161842
[08/Aug/2018 14:57:01] "GET /media/avatar/users/default.png HTTP/1.1" 200 36378
[08/Aug/2018 14:57:01] "GET /static/vendor/qtip/jquery.qtip.js HTTP/1.1" 200 98738
[08/Aug/2018 14:57:03] "GET /static/image/CodePedia.ico HTTP/1.1" 200 370070
Not Found: /favicon.ico
[08/Aug/2018 14:57:03] "GET /favicon.ico HTTP/1.1" 404 3103
[08/Aug/2018 14:57:04] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 38993
[08/Aug/2018 14:57:05] "GET /static/css/monokai-sublime.css HTTP/1.1" 200 1038
[08/Aug/2018 14:57:05] "GET /static/css/font-awesome.css HTTP/1.1" 200 37414
[08/Aug/2018 14:57:05] "GET /static/css/code_show.css HTTP/1.1" 200 23819
[08/Aug/2018 14:57:05] "GET /static/js/prettify.js HTTP/1.1" 200 18331
[08/Aug/2018 14:57:05] "GET /static/js/source.js HTTP/1.1" 200 42630
[08/Aug/2018 14:57:05] "GET /static/image/codepedia.png HTTP/1.1" 200 3350
[08/Aug/2018 14:57:05] "GET /static/vendor/bootstrap/css/bootstrap1.css HTTP/1.1" 200 151053
[08/Aug/2018 14:57:06] "GET /static/js/jquery-1.8.3-ui-1.9.2-ujs-2.0.3.js HTTP/1.1" 200 337802
[08/Aug/2018 14:57:07] "GET /static/css/throbber.gif HTTP/1.1" 200 1720
[08/Aug/2018 14:57:07] "GET /static/css/32px.png HTTP/1.1" 200 2988
[08/Aug/2018 14:57:07] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 14:57:07] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 14:57:07] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 14:57:09] "POST /operations/get_codereading_content/ HTTP/1.1" 200 761615
[08/Aug/2018 14:57:10] "POST /operations/show_annotation/ HTTP/1.1" 200 2271
[08/Aug/2018 14:57:11] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 14:57:12] "GET /static/image/annotation.png HTTP/1.1" 200 1148
[08/Aug/2018 14:57:12] "GET /static/image/question.png HTTP/1.1" 200 1112
[08/Aug/2018 14:57:12] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 14:57:13] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 14:57:13] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 14:57:15] "POST /operations/add_vote/ HTTP/1.1" 200 57
[08/Aug/2018 14:57:16] "POST /operations/add_vote/ HTTP/1.1" 200 76
[08/Aug/2018 14:57:19] "GET /users/login/ HTTP/1.1" 200 4273
[08/Aug/2018 14:57:19] "GET /static/js/users-common.js HTTP/1.1" 200 966
[08/Aug/2018 14:57:19] "GET /static/css/register.css HTTP/1.1" 200 1762
[08/Aug/2018 14:57:19] "GET /static/image/login/bg_login.jpg HTTP/1.1" 200 29922
[08/Aug/2018 14:57:20] "POST /operations/show_annotation/ HTTP/1.1" 200 2271
[08/Aug/2018 14:57:20] "POST /users/login/ HTTP/1.1" 302 0
[08/Aug/2018 14:57:20] "GET / HTTP/1.1" 200 24222
[08/Aug/2018 14:57:21] "POST /operations/show_annotation/ HTTP/1.1" 200 2271
[08/Aug/2018 14:57:22] "POST /operations/show_annotation/ HTTP/1.1" 200 2271
[08/Aug/2018 14:57:22] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42004
[08/Aug/2018 14:57:22] "GET /static/css/code_show.css HTTP/1.1" 304 0
[08/Aug/2018 14:57:22] "GET /static/image/users/default.png HTTP/1.1" 200 36378
[08/Aug/2018 14:57:23] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 14:57:23] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 14:57:23] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 14:57:24] "POST /operations/show_annotation/ HTTP/1.1" 200 2271
[08/Aug/2018 14:57:25] "POST /operations/get_codereading_content/ HTTP/1.1" 200 763631
[08/Aug/2018 14:57:26] "POST /operations/show_annotation/ HTTP/1.1" 200 2278
[08/Aug/2018 14:57:31] "POST /operations/show_annotation/ HTTP/1.1" 200 4495
[08/Aug/2018 14:57:34] "POST /operations/show_annotation/ HTTP/1.1" 200 2282
[08/Aug/2018 14:57:35] "POST /operations/show_annotation/ HTTP/1.1" 200 2282
[08/Aug/2018 14:57:35] "POST /operations/show_annotation/ HTTP/1.1" 200 10234
[08/Aug/2018 14:57:36] "POST /operations/show_annotation/ HTTP/1.1" 200 4825
[08/Aug/2018 14:57:36] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 14:57:37] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 14:57:38] "POST /operations/add_vote/ HTTP/1.1" 200 57
[08/Aug/2018 14:57:38] "POST /operations/add_vote/ HTTP/1.1" 200 76
[08/Aug/2018 14:57:39] "POST /operations/show_annotation/ HTTP/1.1" 200 2314
[08/Aug/2018 14:57:42] "POST /operations/show_annotation/ HTTP/1.1" 200 387
[08/Aug/2018 14:57:44] "POST /operations/show_annotation/ HTTP/1.1" 200 2314
[08/Aug/2018 14:57:46] "POST /operations/show_annotation/ HTTP/1.1" 200 4825
[08/Aug/2018 14:57:46] "GET /static/css/code_show.css HTTP/1.1" 304 0
[08/Aug/2018 14:57:47] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[08/Aug/2018 14:57:48] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 14:57:49] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 14:57:50] "POST /operations/add_vote/ HTTP/1.1" 200 57
[08/Aug/2018 14:57:51] "POST /operations/add_vote/ HTTP/1.1" 200 76
[08/Aug/2018 14:58:02] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[08/Aug/2018 14:58:02] "GET /static/vendor/qtip/jquery.qtip.css HTTP/1.1" 200 12616
[08/Aug/2018 14:58:02] "GET /static/css/prettify.css HTTP/1.1" 200 1726
[08/Aug/2018 14:58:02] "GET /static/css/code_show.css HTTP/1.1" 200 23819
[08/Aug/2018 14:58:02] "GET /static/css/font-awesome.css HTTP/1.1" 200 37414
[08/Aug/2018 14:58:02] "GET /static/css/jstreeStyle.css HTTP/1.1" 200 30545
[08/Aug/2018 14:58:02] "GET /static/css/monokai-sublime.css HTTP/1.1" 200 1038
[08/Aug/2018 14:58:02] "GET /static/js/prettify.js HTTP/1.1" 200 18331
[08/Aug/2018 14:58:02] "GET /static/js/jquery-1.8.3-ui-1.9.2-ujs-2.0.3.js HTTP/1.1" 200 337802
[08/Aug/2018 14:58:03] "GET /static/vendor/bootstrap/css/bootstrap1.css HTTP/1.1" 200 151053
[08/Aug/2018 14:58:03] "GET /static/js/source.js HTTP/1.1" 200 42630
[08/Aug/2018 14:58:03] "GET /static/image/codepedia.png HTTP/1.1" 200 3350
[08/Aug/2018 14:58:03] "GET /static/image/users/default.png HTTP/1.1" 200 36378
[08/Aug/2018 14:58:04] "GET /static/js/jstree.js HTTP/1.1" 200 161842
[08/Aug/2018 14:58:05] "GET /static/css/throbber.gif HTTP/1.1" 200 1720
[08/Aug/2018 14:58:05] "GET /static/css/32px.png HTTP/1.1" 200 2988
[08/Aug/2018 14:58:05] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[08/Aug/2018 14:58:05] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 14:58:06] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 14:58:06] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 14:58:07] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[08/Aug/2018 14:58:10] "GET /static/image/annotation.png HTTP/1.1" 200 1148
[08/Aug/2018 14:58:10] "GET /static/image/question.png HTTP/1.1" 200 1112
[08/Aug/2018 14:58:18] "POST /operations/show_annotation/ HTTP/1.1" 200 4495
[08/Aug/2018 14:58:20] "POST /operations/add_vote/ HTTP/1.1" 200 76
[08/Aug/2018 14:58:21] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 14:58:23] "POST /operations/show_annotation/ HTTP/1.1" 200 4494
[08/Aug/2018 14:58:25] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 14:58:27] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 14:58:27] "POST /operations/add_vote/ HTTP/1.1" 200 57
[08/Aug/2018 14:58:30] "POST /operations/show_annotation/ HTTP/1.1" 200 4507
[08/Aug/2018 14:58:32] "POST /operations/show_annotation/ HTTP/1.1" 200 4507
[08/Aug/2018 14:58:38] "POST /operations/add_comment/ HTTP/1.1" 200 97
[08/Aug/2018 14:58:52] "POST /operations/show_annotation/ HTTP/1.1" 200 4587
[08/Aug/2018 14:59:02] "POST /operations/show_annotation/ HTTP/1.1" 200 4587
[08/Aug/2018 14:59:10] "POST /operations/add_comment/ HTTP/1.1" 200 97
[08/Aug/2018 15:00:46] "POST /operations/show_annotation/ HTTP/1.1" 200 4667
[08/Aug/2018 15:00:49] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[08/Aug/2018 15:00:49] "GET /static/css/code_show.css HTTP/1.1" 304 0
[08/Aug/2018 15:00:50] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[08/Aug/2018 15:00:50] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 15:00:50] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 15:00:51] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 15:00:52] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[08/Aug/2018 15:00:58] "POST /operations/show_annotation/ HTTP/1.1" 200 4667
[08/Aug/2018 15:01:54] "POST /operations/show_annotation/ HTTP/1.1" 200 4667
[08/Aug/2018 15:01:56] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 15:01:57] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 15:01:57] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 15:01:58] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 15:02:00] "POST /operations/add_vote/ HTTP/1.1" 200 57
[08/Aug/2018 15:02:01] "POST /operations/add_vote/ HTTP/1.1" 200 76
[08/Aug/2018 15:02:06] "POST /operations/add_comment/ HTTP/1.1" 200 97
[08/Aug/2018 15:02:13] "POST /operations/show_annotation/ HTTP/1.1" 200 4747
[08/Aug/2018 15:02:17] "POST /operations/add_comment/ HTTP/1.1" 200 97
Performing system checks...
System check identified no issues (0 silenced).
August 08, 2018 - 11:34:58
Django version 2.0.6, using settings 'Codepedia2.settings'
Starting development server at http://0.0.0.0:9000/
Quit the server with CONTROL-C.
/src/net/micode/notes/ui/NoteEditActivity.java
1111
1
-1
1
-1
-1
1
-1
1
1
1
1
1
-1
1
-1
/src/net/micode/notes/ui/NoteEditActivity.java
1111
/src/net/micode/notes/ui/NoteEditActivity.java
1111
1
-1
1
-1
-1
1
1
-1
1
-1
-1
/src/net/micode/notes/ui/NoteEditActivity.java
1111
1
-1
1
-1
-1
1
/src/net/micode/notes/ui/NoteEditActivity.java
1111
1
-1
-1
1
1
-1
-1
1
/src/net/micode/notes/ui/NoteEditActivity.java
1111
1
1
-1
-1
-1
/src/net/micode/notes/ui/NoteEditActivity.java
1111
1
-1
1
-1
-1
1
[08/Aug/2018 15:06:59] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 38993
[08/Aug/2018 15:06:59] "GET /static/vendor/qtip/jquery.qtip.css HTTP/1.1" 200 12616
[08/Aug/2018 15:06:59] "GET /static/css/font-awesome.css HTTP/1.1" 200 37414
[08/Aug/2018 15:06:59] "GET /static/css/prettify.css HTTP/1.1" 200 1726
[08/Aug/2018 15:06:59] "GET /static/css/code_show.css HTTP/1.1" 200 23819
[08/Aug/2018 15:06:59] "GET /static/css/jstreeStyle.css HTTP/1.1" 200 30545
[08/Aug/2018 15:06:59] "GET /static/css/monokai-sublime.css HTTP/1.1" 200 1038
[08/Aug/2018 15:06:59] "GET /static/js/prettify.js HTTP/1.1" 200 18331
[08/Aug/2018 15:06:59] "GET /static/js/source.js HTTP/1.1" 200 42280
[08/Aug/2018 15:06:59] "GET /static/image/codepedia.png HTTP/1.1" 200 3350
[08/Aug/2018 15:06:59] "GET /static/vendor/bootstrap/css/bootstrap1.css HTTP/1.1" 200 151053
[08/Aug/2018 15:07:01] "GET /static/js/jstree.js HTTP/1.1" 200 161842
[08/Aug/2018 15:07:01] "GET /static/js/jquery-1.8.3-ui-1.9.2-ujs-2.0.3.js HTTP/1.1" 200 337802
[08/Aug/2018 15:07:02] "GET /static/css/32px.png HTTP/1.1" 200 2988
[08/Aug/2018 15:07:02] "GET /static/css/throbber.gif HTTP/1.1" 200 1720
[08/Aug/2018 15:07:02] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[08/Aug/2018 15:07:02] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 15:07:02] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 15:07:02] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 15:07:04] "POST /operations/get_codereading_content/ HTTP/1.1" 200 761615
[08/Aug/2018 15:07:06] "GET /static/image/annotation.png HTTP/1.1" 200 1148
[08/Aug/2018 15:07:06] "GET /static/image/question.png HTTP/1.1" 200 1112
[08/Aug/2018 15:07:16] "GET /users/login/ HTTP/1.1" 200 4273
[08/Aug/2018 15:07:17] "GET /static/css/register.css HTTP/1.1" 200 1762
[08/Aug/2018 15:07:17] "GET /static/css/base.css HTTP/1.1" 200 18934
[08/Aug/2018 15:07:17] "GET /static/css/common.css HTTP/1.1" 200 8146
[08/Aug/2018 15:07:17] "GET /static/vendor/font-awesome/css/font-awesome.css HTTP/1.1" 200 37414
[08/Aug/2018 15:07:17] "GET /static/js/run_prettify.js HTTP/1.1" 200 16604
[08/Aug/2018 15:07:17] "GET /static/vendor/bootstrap/css/bootstrap.css HTTP/1.1" 200 146070
[08/Aug/2018 15:07:17] "GET /static/js/base.js HTTP/1.1" 200 21228
[08/Aug/2018 15:07:17] "GET /static/vendor/bootstrap/js/bootstrap.min.js HTTP/1.1" 200 37045
[08/Aug/2018 15:07:17] "GET /static/js/users-common.js HTTP/1.1" 200 966
[08/Aug/2018 15:07:17] "GET /static/vendor/qtip/jquery.qtip.js HTTP/1.1" 200 98738
[08/Aug/2018 15:07:18] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[08/Aug/2018 15:07:18] "GET /static/image/login/bg_login.jpg HTTP/1.1" 200 29922
[08/Aug/2018 15:07:19] "GET /static/image/CodePedia.ico HTTP/1.1" 200 370070
[08/Aug/2018 15:07:20] "POST /users/login/ HTTP/1.1" 302 0
[08/Aug/2018 15:07:20] "GET / HTTP/1.1" 200 24222
[08/Aug/2018 15:07:20] "GET /media/avatar/users/default.png HTTP/1.1" 200 36378
[08/Aug/2018 15:07:20] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[08/Aug/2018 15:07:20] "GET /static/vendor/site/css/style.css HTTP/1.1" 200 160228
[08/Aug/2018 15:07:22] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42004
[08/Aug/2018 15:07:22] "GET /static/js/source.js HTTP/1.1" 304 0
[08/Aug/2018 15:07:22] "GET /static/image/users/default.png HTTP/1.1" 200 36378
[08/Aug/2018 15:07:23] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[08/Aug/2018 15:07:23] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 15:07:23] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 15:07:23] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 15:07:25] "POST /operations/get_codereading_content/ HTTP/1.1" 200 763631
[08/Aug/2018 15:07:29] "POST /operations/show_annotation/ HTTP/1.1" 200 2472
[08/Aug/2018 15:07:33] "POST /operations/add_comment/ HTTP/1.1" 200 108
[08/Aug/2018 15:07:40] "POST /operations/show_annotation/ HTTP/1.1" 200 2461
[08/Aug/2018 15:07:43] "POST /operations/show_annotation/ HTTP/1.1" 200 399
[08/Aug/2018 15:07:43] "POST /operations/show_annotation/ HTTP/1.1" 200 3514
[08/Aug/2018 15:07:44] "POST /operations/show_annotation/ HTTP/1.1" 200 3620
[08/Aug/2018 15:07:45] "POST /operations/show_annotation/ HTTP/1.1" 200 3514
[08/Aug/2018 15:07:49] "POST /operations/add_vote/ HTTP/1.1" 200 57
[08/Aug/2018 15:07:50] "POST /operations/add_vote/ HTTP/1.1" 200 76
[08/Aug/2018 15:07:51] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 15:07:51] "POST /operations/add_vote/ HTTP/1.1" 200 77
Performing system checks...
System check identified no issues (0 silenced).
August 08, 2018 - 15:06:03
Django version 2.0.6, using settings 'Codepedia2.settings'
Starting development server at http://0.0.0.0:9000/
Quit the server with CONTROL-C.
/src/net/micode/notes/ui/NoteEditActivity.java
1111
/src/net/micode/notes/ui/NoteEditActivity.java
1111
-1
1
1
-1
Performing system checks...
System check identified no issues (0 silenced).
August 08, 2018 - 15:10:15
Django version 2.0.6, using settings 'Codepedia2.settings'
Starting development server at http://0.0.0.0:9000/
Quit the server with CONTROL-C.
Performing system checks...
System check identified no issues (0 silenced).
August 08, 2018 - 15:10:26
Django version 2.0.6, using settings 'Codepedia2.settings'
Starting development server at http://0.0.0.0:9000/
Quit the server with CONTROL-C.
Performing system checks...
System check identified no issues (0 silenced).
August 08, 2018 - 15:10:31
Django version 2.0.6, using settings 'Codepedia2.settings'
Starting development server at http://0.0.0.0:9000/
Quit the server with CONTROL-C.
Performing system checks...
System check identified no issues (0 silenced).
August 08, 2018 - 15:10:55
Django version 2.0.6, using settings 'Codepedia2.settings'
Starting development server at http://0.0.0.0:9000/
Quit the server with CONTROL-C.
Performing system checks...
System check identified no issues (0 silenced).
August 08, 2018 - 15:11:09
Django version 2.0.6, using settings 'Codepedia2.settings'
Starting development server at http://0.0.0.0:9000/
Quit the server with CONTROL-C.
Performing system checks...
System check identified no issues (0 silenced).
August 08, 2018 - 15:11:18
Django version 2.0.6, using settings 'Codepedia2.settings'
Starting development server at http://0.0.0.0:9000/
Quit the server with CONTROL-C.
Performing system checks...
System check identified no issues (0 silenced).
August 08, 2018 - 15:13:48
Django version 2.0.6, using settings 'Codepedia2.settings'
Starting development server at http://0.0.0.0:9000/
Quit the server with CONTROL-C.
Performing system checks...
System check identified no issues (0 silenced).
August 08, 2018 - 15:13:59
Django version 2.0.6, using settings 'Codepedia2.settings'
Starting development server at http://0.0.0.0:9000/
Quit the server with CONTROL-C.
[08/Aug/2018 15:18:42] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[08/Aug/2018 15:18:42] "GET /static/css/code_show.css HTTP/1.1" 304 0
[08/Aug/2018 15:18:43] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[08/Aug/2018 15:18:43] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 15:18:43] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 15:18:43] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 15:18:45] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[08/Aug/2018 15:18:51] "POST /operations/show_annotation/ HTTP/1.1" 200 2310
[08/Aug/2018 15:18:53] "POST /operations/show_annotation/ HTTP/1.1" 200 4823
[08/Aug/2018 15:18:59] "POST /operations/add_comment/ HTTP/1.1" 200 658
[08/Aug/2018 15:19:08] "POST /operations/show_annotation/ HTTP/1.1" 200 4903
[08/Aug/2018 15:19:10] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[08/Aug/2018 15:19:11] "GET /static/vendor/qtip/jquery.qtip.css HTTP/1.1" 200 12616
[08/Aug/2018 15:19:11] "GET /static/css/prettify.css HTTP/1.1" 200 1726
[08/Aug/2018 15:19:11] "GET /static/css/font-awesome.css HTTP/1.1" 200 37414
[08/Aug/2018 15:19:11] "GET /static/css/code_show.css HTTP/1.1" 200 23819
[08/Aug/2018 15:19:11] "GET /static/vendor/bootstrap/css/bootstrap1.css HTTP/1.1" 200 151053
[08/Aug/2018 15:19:11] "GET /static/css/jstreeStyle.css HTTP/1.1" 200 30545
[08/Aug/2018 15:19:11] "GET /static/css/monokai-sublime.css HTTP/1.1" 200 1038
[08/Aug/2018 15:19:11] "GET /static/js/prettify.js HTTP/1.1" 200 18331
[08/Aug/2018 15:19:11] "GET /static/js/jquery-1.8.3-ui-1.9.2-ujs-2.0.3.js HTTP/1.1" 200 337802
[08/Aug/2018 15:19:12] "GET /static/js/source.js HTTP/1.1" 200 41485
[08/Aug/2018 15:19:12] "GET /static/image/codepedia.png HTTP/1.1" 200 3350
[08/Aug/2018 15:19:12] "GET /static/image/users/default.png HTTP/1.1" 200 36378
[08/Aug/2018 15:19:13] "GET /static/js/jstree.js HTTP/1.1" 200 161842
[08/Aug/2018 15:19:13] "GET /static/css/throbber.gif HTTP/1.1" 200 1720
[08/Aug/2018 15:19:13] "GET /static/css/32px.png HTTP/1.1" 200 2988
[08/Aug/2018 15:19:14] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[08/Aug/2018 15:19:14] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 15:19:14] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 15:19:14] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 15:19:16] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[08/Aug/2018 15:19:18] "GET /static/image/question.png HTTP/1.1" 200 1112
[08/Aug/2018 15:19:18] "GET /static/image/annotation.png HTTP/1.1" 200 1148
[08/Aug/2018 15:19:22] "POST /operations/show_annotation/ HTTP/1.1" 200 4903
[08/Aug/2018 15:19:27] "POST /operations/add_comment/ HTTP/1.1" 200 656
[08/Aug/2018 15:19:56] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[08/Aug/2018 15:19:57] "GET /static/js/source.js HTTP/1.1" 200 41488
[08/Aug/2018 15:19:57] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[08/Aug/2018 15:19:58] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 15:19:58] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 15:19:58] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 15:20:00] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[08/Aug/2018 15:20:05] "POST /operations/show_annotation/ HTTP/1.1" 200 4983
[08/Aug/2018 15:20:10] "POST /operations/add_comment/ HTTP/1.1" 200 654
[08/Aug/2018 15:20:26] "POST /operations/add_comment/ HTTP/1.1" 200 654
[08/Aug/2018 15:20:30] "POST /operations/add_comment/ HTTP/1.1" 200 654
[08/Aug/2018 15:20:37] "POST /operations/add_comment/ HTTP/1.1" 200 654
[08/Aug/2018 15:20:48] "POST /operations/show_annotation/ HTTP/1.1" 200 5303
[08/Aug/2018 15:20:51] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[08/Aug/2018 15:20:51] "GET /static/js/source.js HTTP/1.1" 200 41492
[08/Aug/2018 15:20:52] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[08/Aug/2018 15:20:52] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 15:20:53] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 15:20:53] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 15:20:54] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[08/Aug/2018 15:21:00] "POST /operations/show_annotation/ HTTP/1.1" 200 5303
[08/Aug/2018 15:21:04] "POST /operations/add_comment/ HTTP/1.1" 200 654
[08/Aug/2018 15:21:30] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[08/Aug/2018 15:21:30] "GET /static/js/source.js HTTP/1.1" 200 41517
[08/Aug/2018 15:21:31] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[08/Aug/2018 15:21:31] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 15:21:32] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 15:21:32] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 15:21:33] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[08/Aug/2018 15:21:39] "POST /operations/show_annotation/ HTTP/1.1" 200 5383
[08/Aug/2018 15:21:44] "POST /operations/add_comment/ HTTP/1.1" 200 654
[08/Aug/2018 15:24:45] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 38993
[08/Aug/2018 15:24:45] "GET /static/vendor/qtip/jquery.qtip.css HTTP/1.1" 200 12616
[08/Aug/2018 15:24:45] "GET /static/css/code_show.css HTTP/1.1" 200 23819
[08/Aug/2018 15:24:45] "GET /static/css/prettify.css HTTP/1.1" 200 1726
[08/Aug/2018 15:24:45] "GET /static/css/font-awesome.css HTTP/1.1" 200 37414
[08/Aug/2018 15:24:45] "GET /static/css/jstreeStyle.css HTTP/1.1" 200 30545
[08/Aug/2018 15:24:45] "GET /static/vendor/bootstrap/css/bootstrap1.css HTTP/1.1" 200 151053
[08/Aug/2018 15:24:45] "GET /static/js/prettify.js HTTP/1.1" 200 18331
[08/Aug/2018 15:24:46] "GET /static/css/monokai-sublime.css HTTP/1.1" 200 1038
[08/Aug/2018 15:24:46] "GET /static/js/source.js HTTP/1.1" 200 41517
[08/Aug/2018 15:24:47] "GET /static/js/jquery-1.8.3-ui-1.9.2-ujs-2.0.3.js HTTP/1.1" 200 337802
[08/Aug/2018 15:24:47] "GET /static/js/jstree.js HTTP/1.1" 200 161842
[08/Aug/2018 15:29:16] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[08/Aug/2018 15:29:16] "GET /static/js/source.js HTTP/1.1" 200 41518
[08/Aug/2018 15:29:16] "GET /static/css/code_show.css HTTP/1.1" 304 0
[08/Aug/2018 15:29:17] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[08/Aug/2018 15:29:17] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 15:29:17] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 15:29:17] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 15:29:19] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[08/Aug/2018 15:29:26] "POST /operations/show_annotation/ HTTP/1.1" 200 5463
[08/Aug/2018 15:29:31] "POST /operations/add_comment/ HTTP/1.1" 200 654
[08/Aug/2018 15:29:33] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 15:29:33] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 15:29:34] "POST /operations/add_vote/ HTTP/1.1" 200 57
[08/Aug/2018 15:29:35] "POST /operations/add_vote/ HTTP/1.1" 200 76
[08/Aug/2018 15:29:39] "POST /operations/show_annotation/ HTTP/1.1" 200 5543
[08/Aug/2018 15:30:58] "POST /operations/show_annotation/ HTTP/1.1" 200 16875
[08/Aug/2018 15:31:03] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 15:31:04] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 15:31:05] "POST /operations/add_vote/ HTTP/1.1" 200 57
[08/Aug/2018 15:31:05] "POST /operations/add_vote/ HTTP/1.1" 200 76
[08/Aug/2018 15:31:06] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 15:31:07] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 15:31:08] "POST /operations/add_vote/ HTTP/1.1" 200 57
[08/Aug/2018 15:31:08] "POST /operations/add_vote/ HTTP/1.1" 200 76
[08/Aug/2018 15:31:12] "POST /operations/show_annotation/ HTTP/1.1" 200 3180
[08/Aug/2018 15:31:13] "POST /operations/show_annotation/ HTTP/1.1" 200 3180
[08/Aug/2018 15:31:20] "POST /operations/add_comment/ HTTP/1.1" 200 658
[08/Aug/2018 15:31:26] "POST /operations/show_annotation/ HTTP/1.1" 200 4088
[08/Aug/2018 15:31:47] "POST /operations/show_annotation/ HTTP/1.1" 200 3177
[08/Aug/2018 15:33:53] "POST /operations/show_annotation/ HTTP/1.1" 200 3177
[08/Aug/2018 15:33:55] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 15:33:56] "POST /operations/add_vote/ HTTP/1.1" 200 57
[08/Aug/2018 15:33:57] "POST /operations/add_vote/ HTTP/1.1" 200 76
[08/Aug/2018 15:33:57] "POST /operations/add_vote/ HTTP/1.1" 200 57
[08/Aug/2018 15:34:00] "POST /operations/show_annotation/ HTTP/1.1" 200 3178
[08/Aug/2018 15:34:02] "POST /operations/add_vote/ HTTP/1.1" 200 76
[08/Aug/2018 15:34:04] "POST /operations/show_annotation/ HTTP/1.1" 200 3165
[08/Aug/2018 15:34:06] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 15:34:14] "POST /operations/show_annotation/ HTTP/1.1" 200 3177

View File

@ -215,9 +215,8 @@ function add_comment_action(item, id, type) {
},
success: function (data) {
if (data.status === 'success') {
var username = data.username;
var comment_id = data.comment_id
show_new_comment(item, content, username,comment_id);
html_str = data.html_str
show_new_comment(item, html_str);
} else {
alert(data.msg);
}
@ -228,19 +227,8 @@ function add_comment_action(item, id, type) {
}
//添加评论
function show_new_comment(item, content, username,comment_id) {
// html += "<div class=\"comment-item\">";
// html += "<p>" + username+"</p>";
// html += "<span class=\"color-grey-des\">" + content+"</span></div>"
// // html += "<p class=\"comment-con\">" + content + "</p>";
// // html += "<p class=\"comment-name\">----<a href=\"javascript:void(0)\">" + username + "</a></p></div>";
var html= '<div class="fl thumbsThis newtopthumbs">'+'<p><i class="fa fa-play color-grey-c deg270" aria-hidden="true" onclick="thumbsComment(this,{{anno.pk}},1)"></i> </p>'+
'<p class="thumbsThisnth2"><span id="comment_"'+comment_id+'></span></p>'+
'<p><i class="fa fa-play color-grey-c deg90" aria-hidden="true" onclick="thumbsComment(this,{{anno.pk}},-1)"></i> </p>'+'</div>'+'<div class="comment-item">'+'<span class="color-grey-des mr10 colorblack inlineBlock fl ellipsis" title="{{ comment.content }}">'+content+'</span>'
+'<span class="color-grey-des inlineBlock fr">'+username+'</span>'+
'<div class="clear"></div>'+ '</div>';
$(".parthalf_comment").after(html);
function show_new_comment(item, html_str) {
$(item).parents(".parthalf_comment").after(html_str);
$(item).parents(".comment-btn").find(".comment-write").addClass("none");
$(item).parents(".comment-btn").find("#addcom").removeClass("none");

View File

@ -35,10 +35,10 @@
</div>
<div class="parthalf_comment">
<div class="parthalf_comment">
<div class="comment-btn clearfix">
<span class="color-grey-des inlineBlock marbox">{{self_anno.user.nick_name}}</span>
<a href="javascript:void(0)" class="btn btn-blue fr" onclick="addcomments(this)" id="addcom">添加评论</a>
<a href="javascript:void(0)" class="btn btn-blue fr" onclick="addcomments(this)" >添加评论</a>
<div class="comment-write clearfix none">
<textarea class="writetext" id="writetext_{{ self_anno.pk }}" placehoder="请输入评论内容"></textarea>
<a href="javascript:void(0)" class="btn fr" onclick="cancelcom(this)">取消</a>
@ -49,7 +49,7 @@
{% for comment in anno_comments %}
{% if comment.annotation.pk == anno.pk %}
{% if comment.annotation.pk == self_anno.pk %}
<div class="fl thumbsThis newtopthumbs">
{% if comment.id in comment_vote_map and comment_vote_map|keyValue:comment.id == 1 %}
<p><i class="fa fa-play thumbs_active deg270" aria-hidden="true" onclick="thumbsComment(this,{{comment.pk}},1)"></i> </p>
@ -107,7 +107,7 @@
<div class="parthalf_comment">
<div class="comment-btn clearfix">
<span class="color-grey-des inlineBlock marbox">{{anno.user.nick_name}}</span>
<a href="javascript:void(0)" class="btn btn-blue fr" onclick="addcomments(this)" id="addcom">添加评论</a>
<a href="javascript:void(0)" class="btn btn-blue fr" onclick="addcomments(this)" >添加评论</a>
<div class="comment-write clearfix none">
<textarea class="writetext" id="writetext_{{ anno.pk }}" placehoder="请输入评论内容"></textarea>
<a href="javascript:void(0)" class="btn fr" onclick="cancelcom(this)">取消</a>

View File

@ -0,0 +1,10 @@
<div class="fl thumbsThis newtopthumbs">
<p><i class="fa fa-play deg270" aria-hidden="true" onclick="thumbsComment(this,{{comment.pk}},1)"></i> </p>
<p class="thumbsThisnth2"><span id="comment_{{comment.pk}}">{{ comment.voteup | add:comment.votedown}}</span></p>
<p><i class="fa fa-play deg90" aria-hidden="true" onclick="thumbsComment(this,{{comment.pk}},-1)"></i> </p>
</div>
<div class="comment-item">
<span class="color-grey-des mr10 colorblack inlineBlock fl ellipsis" title="{{ comment.content }}">{{ comment.content }}</span>
<span class="color-grey-des inlineBlock fr">{{ comment.user.nick_name }}</span>
<div class="clear"></div>
</div>