diff --git a/.browserslistrc b/.browserslistrc old mode 100755 new mode 100644 diff --git a/.flake8 b/.flake8 old mode 100755 new mode 100644 diff --git a/.github/workflows/init.yml b/.github/workflows/init.yml old mode 100755 new mode 100644 diff --git a/.gitignore b/.gitignore old mode 100755 new mode 100644 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml old mode 100755 new mode 100644 diff --git a/502.html b/502.html old mode 100755 new mode 100644 diff --git a/LICENSE b/LICENSE old mode 100755 new mode 100644 diff --git a/README.md b/README.md old mode 100755 new mode 100644 diff --git a/chat_box/__init__.py b/chat_box/__init__.py old mode 100755 new mode 100644 diff --git a/chat_box/apps.py b/chat_box/apps.py old mode 100755 new mode 100644 diff --git a/chat_box/migrations/0001_initial.py b/chat_box/migrations/0001_initial.py old mode 100755 new mode 100644 diff --git a/chat_box/migrations/0002_message_hidden.py b/chat_box/migrations/0002_message_hidden.py old mode 100755 new mode 100644 diff --git a/chat_box/migrations/0003_auto_20200505_2306.py b/chat_box/migrations/0003_auto_20200505_2306.py old mode 100755 new mode 100644 diff --git a/chat_box/migrations/0004_auto_20200505_2336.py b/chat_box/migrations/0004_auto_20200505_2336.py old mode 100755 new mode 100644 diff --git a/chat_box/migrations/0005_auto_20211011_0714.py b/chat_box/migrations/0005_auto_20211011_0714.py old mode 100755 new mode 100644 diff --git a/chat_box/migrations/0006_userroom.py b/chat_box/migrations/0006_userroom.py old mode 100755 new mode 100644 diff --git a/chat_box/migrations/0007_auto_20211112_1255.py b/chat_box/migrations/0007_auto_20211112_1255.py old mode 100755 new mode 100644 diff --git a/chat_box/migrations/0008_ignore.py b/chat_box/migrations/0008_ignore.py old mode 100755 new mode 100644 diff --git a/chat_box/migrations/0009_auto_20220618_1452.py b/chat_box/migrations/0009_auto_20220618_1452.py old mode 100755 new mode 100644 diff --git a/chat_box/migrations/0010_auto_20221028_0300.py b/chat_box/migrations/0010_auto_20221028_0300.py old mode 100755 new mode 100644 diff --git a/chat_box/migrations/0011_alter_message_hidden.py b/chat_box/migrations/0011_alter_message_hidden.py old mode 100755 new mode 100644 diff --git a/chat_box/migrations/0012_auto_20230308_1417.py b/chat_box/migrations/0012_auto_20230308_1417.py old mode 100755 new mode 100644 diff --git a/chat_box/migrations/__init__.py b/chat_box/migrations/__init__.py old mode 100755 new mode 100644 diff --git a/chat_box/models.py b/chat_box/models.py old mode 100755 new mode 100644 diff --git a/chat_box/utils.py b/chat_box/utils.py old mode 100755 new mode 100644 diff --git a/chat_box/views.py b/chat_box/views.py old mode 100755 new mode 100644 diff --git a/django_2_2_pymysql_patch.py b/django_2_2_pymysql_patch.py old mode 100755 new mode 100644 diff --git a/django_ace/__init__.py b/django_ace/__init__.py old mode 100755 new mode 100644 diff --git a/django_ace/static/django_ace/img/contract.png b/django_ace/static/django_ace/img/contract.png old mode 100755 new mode 100644 diff --git a/django_ace/static/django_ace/img/expand.png b/django_ace/static/django_ace/img/expand.png old mode 100755 new mode 100644 diff --git a/django_ace/static/django_ace/widget.css b/django_ace/static/django_ace/widget.css old mode 100755 new mode 100644 diff --git a/django_ace/static/django_ace/widget.js b/django_ace/static/django_ace/widget.js old mode 100755 new mode 100644 diff --git a/django_ace/widgets.py b/django_ace/widgets.py old mode 100755 new mode 100644 diff --git a/dmoj/__init__.py b/dmoj/__init__.py old mode 100755 new mode 100644 diff --git a/dmoj/celery.py b/dmoj/celery.py old mode 100755 new mode 100644 diff --git a/dmoj/settings.py b/dmoj/settings.py old mode 100755 new mode 100644 index 80c883a..47abcb8 --- a/dmoj/settings.py +++ b/dmoj/settings.py @@ -219,7 +219,6 @@ else: } INSTALLED_APPS += ( - "debug_toolbar", "django.contrib.admin", "judge", "django.contrib.auth", @@ -249,7 +248,6 @@ INSTALLED_APPS += ( ) MIDDLEWARE = ( - "debug_toolbar.middleware.DebugToolbarMiddleware", "judge.middleware.SlowRequestMiddleware", "judge.middleware.ShortCircuitMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", @@ -423,12 +421,7 @@ STATICFILES_DIRS = [ STATIC_URL = "/static/" # Define a cache -CACHES = { - "default": { - "BACKEND": "django.core.cache.backends.memcached.PyMemcacheCache", - "LOCATION": "127.0.0.1:11211", - } -} +CACHES = {} # Authentication AUTHENTICATION_BACKENDS = ( @@ -488,9 +481,3 @@ except IOError: pass DEFAULT_AUTO_FIELD = "django.db.models.AutoField" - -INTERNAL_IPS = [ - # ... - "127.0.0.1", - # ... -] diff --git a/dmoj/throttle_mail.py b/dmoj/throttle_mail.py old mode 100755 new mode 100644 diff --git a/dmoj/urls.py b/dmoj/urls.py old mode 100755 new mode 100644 index 0de5356..4900d7c --- a/dmoj/urls.py +++ b/dmoj/urls.py @@ -1,6 +1,5 @@ import chat_box.views as chat -from django.urls import include, path from django.conf import settings from django.conf.urls import include, url from django.contrib import admin @@ -207,7 +206,6 @@ def paged_list_view(view, name, **kwargs): urlpatterns = [ - path('__debug__/', include('debug_toolbar.urls')), url("", include("pagedown.urls")), url( r"^$", @@ -470,8 +468,6 @@ urlpatterns = [ url(r"^comments/upvote/$", comment.upvote_comment, name="comment_upvote"), url(r"^comments/downvote/$", comment.downvote_comment, name="comment_downvote"), url(r"^comments/hide/$", comment.comment_hide, name="comment_hide"), - url(r"^comments/get_replies/$", comment.get_replies, name="comment_get_replies"), - url(r"^comments/show_more/$", comment.get_show_more, name="comment_show_more"), url( r"^comments/(?P\d+)/", include( diff --git a/dmoj/wsgi.py b/dmoj/wsgi.py old mode 100755 new mode 100644 diff --git a/dmoj/wsgi_async.py b/dmoj/wsgi_async.py old mode 100755 new mode 100644 diff --git a/dmoj_bridge_async.py b/dmoj_bridge_async.py old mode 100755 new mode 100644 diff --git a/dmoj_celery.py b/dmoj_celery.py old mode 100755 new mode 100644 diff --git a/dmoj_install_pymysql.py b/dmoj_install_pymysql.py old mode 100755 new mode 100644 diff --git a/judge/__init__.py b/judge/__init__.py old mode 100755 new mode 100644 diff --git a/judge/admin/__init__.py b/judge/admin/__init__.py old mode 100755 new mode 100644 diff --git a/judge/admin/comments.py b/judge/admin/comments.py old mode 100755 new mode 100644 diff --git a/judge/admin/contest.py b/judge/admin/contest.py old mode 100755 new mode 100644 diff --git a/judge/admin/interface.py b/judge/admin/interface.py old mode 100755 new mode 100644 diff --git a/judge/admin/organization.py b/judge/admin/organization.py old mode 100755 new mode 100644 diff --git a/judge/admin/problem.py b/judge/admin/problem.py old mode 100755 new mode 100644 diff --git a/judge/admin/profile.py b/judge/admin/profile.py old mode 100755 new mode 100644 diff --git a/judge/admin/runtime.py b/judge/admin/runtime.py old mode 100755 new mode 100644 diff --git a/judge/admin/submission.py b/judge/admin/submission.py old mode 100755 new mode 100644 diff --git a/judge/admin/taxon.py b/judge/admin/taxon.py old mode 100755 new mode 100644 diff --git a/judge/admin/ticket.py b/judge/admin/ticket.py old mode 100755 new mode 100644 diff --git a/judge/admin/volunteer.py b/judge/admin/volunteer.py old mode 100755 new mode 100644 diff --git a/judge/apps.py b/judge/apps.py old mode 100755 new mode 100644 diff --git a/judge/bridge/__init__.py b/judge/bridge/__init__.py old mode 100755 new mode 100644 diff --git a/judge/bridge/base_handler.py b/judge/bridge/base_handler.py old mode 100755 new mode 100644 diff --git a/judge/bridge/daemon.py b/judge/bridge/daemon.py old mode 100755 new mode 100644 diff --git a/judge/bridge/django_handler.py b/judge/bridge/django_handler.py old mode 100755 new mode 100644 diff --git a/judge/bridge/echo_test_client.py b/judge/bridge/echo_test_client.py old mode 100755 new mode 100644 diff --git a/judge/bridge/echo_test_server.py b/judge/bridge/echo_test_server.py old mode 100755 new mode 100644 diff --git a/judge/bridge/judge_handler.py b/judge/bridge/judge_handler.py old mode 100755 new mode 100644 diff --git a/judge/bridge/judge_list.py b/judge/bridge/judge_list.py old mode 100755 new mode 100644 diff --git a/judge/bridge/server.py b/judge/bridge/server.py old mode 100755 new mode 100644 diff --git a/judge/caching.py b/judge/caching.py old mode 100755 new mode 100644 diff --git a/judge/comments.py b/judge/comments.py old mode 100755 new mode 100644 index 2a2f515..08d1cb7 --- a/judge/comments.py +++ b/judge/comments.py @@ -11,7 +11,6 @@ from django.http import ( HttpResponseForbidden, HttpResponseNotFound, HttpResponseRedirect, - Http404, ) from django.urls import reverse_lazy from django.utils.decorators import method_decorator @@ -152,92 +151,40 @@ class CommentedDetailView(TemplateResponseMixin, SingleObjectMixin, View): return self.render_to_response(context) def get(self, request, *args, **kwargs): - pre_query = None - if "comment-id" in request.GET: - comment_id = int(request.GET["comment-id"]) - try: - comment_obj = Comment.objects.get(pk=comment_id) - except Comment.DoesNotExist: - raise Http404 - pre_query = comment_obj - while comment_obj is not None: - pre_query = comment_obj - comment_obj = comment_obj.parent self.object = self.get_object() return self.render_to_response( self.get_context_data( object=self.object, - pre_query=pre_query, comment_form=CommentForm(request, initial={"parent": None}), ) ) - def get_context_data(self, pre_query=None, **kwargs): + def get_context_data(self, **kwargs): context = super(CommentedDetailView, self).get_context_data(**kwargs) queryset = self.object.comments - queryset = queryset.filter(parent=None, hidden=False) - queryset_all = None - comment_count = len(queryset) - context["comment_remove"] = -1 - if (pre_query != None): - comment_remove = pre_query.id - queryset_all = pre_query.get_descendants(include_self=True) - queryset_all = ( - queryset_all.select_related("author__user") - .filter(hidden=False) - .defer("author__about") - .annotate(revisions=Count("versions", distinct=True)) - ) - context["comment_remove"] = comment_remove - else: - queryset = ( - queryset.select_related("author__user") - .defer("author__about") - .filter(hidden=False) - .annotate( - count_replies=Count("replies", distinct=True), - revisions=Count("versions", distinct=True), - )[:10] - ) - + context["has_comments"] = queryset.exists() + context["comment_lock"] = self.is_comment_locked() + queryset = ( + queryset.select_related("author__user") + .filter(hidden=False) + .defer("author__about") + .annotate(revisions=Count("versions")) + ) + if self.request.user.is_authenticated: profile = self.request.profile - if (pre_query != None): - queryset_all = queryset_all.annotate( - my_vote=FilteredRelation( - "votes", condition=Q(votes__voter_id=profile.id) - ), - ).annotate(vote_score=Coalesce(F("my_vote__score"), Value(0))) - else: - queryset = queryset.annotate( - my_vote=FilteredRelation( - "votes", condition=Q(votes__voter_id=profile.id) - ), - ).annotate(vote_score=Coalesce(F("my_vote__score"), Value(0))) - + queryset = queryset.annotate( + my_vote=FilteredRelation( + "votes", condition=Q(votes__voter_id=profile.id) + ), + ).annotate(vote_score=Coalesce(F("my_vote__score"), Value(0))) context["is_new_user"] = ( not self.request.user.is_staff and not profile.submission_set.filter( points=F("problem__points") ).exists() ) - - context["has_comments"] = queryset.exists() - context["comment_lock"] = self.is_comment_locked() context["comment_list"] = queryset - context["comment_all_list"] = queryset_all - + context["comment_count"] = len(queryset) context["vote_hide_threshold"] = settings.DMOJ_COMMENT_VOTE_HIDE_THRESHOLD - if queryset.exists(): - context["comment_root_id"] = queryset[0].id - else: - context["comment_root_id"] = 0 - context["comment_parrent_none"] = 1 - if (pre_query != None): - context["offset"] = 1 - else: - context["offset"] = 10 - - context["limit"] = 10 - context["comment_count"] = comment_count return context diff --git a/judge/contest_format/__init__.py b/judge/contest_format/__init__.py old mode 100755 new mode 100644 diff --git a/judge/contest_format/atcoder.py b/judge/contest_format/atcoder.py old mode 100755 new mode 100644 diff --git a/judge/contest_format/base.py b/judge/contest_format/base.py old mode 100755 new mode 100644 diff --git a/judge/contest_format/default.py b/judge/contest_format/default.py old mode 100755 new mode 100644 diff --git a/judge/contest_format/ecoo.py b/judge/contest_format/ecoo.py old mode 100755 new mode 100644 diff --git a/judge/contest_format/icpc.py b/judge/contest_format/icpc.py old mode 100755 new mode 100644 diff --git a/judge/contest_format/ioi.py b/judge/contest_format/ioi.py old mode 100755 new mode 100644 diff --git a/judge/contest_format/new_ioi.py b/judge/contest_format/new_ioi.py old mode 100755 new mode 100644 diff --git a/judge/contest_format/registry.py b/judge/contest_format/registry.py old mode 100755 new mode 100644 diff --git a/judge/dblock.py b/judge/dblock.py old mode 100755 new mode 100644 diff --git a/judge/event_poster.py b/judge/event_poster.py old mode 100755 new mode 100644 diff --git a/judge/event_poster_amqp.py b/judge/event_poster_amqp.py old mode 100755 new mode 100644 diff --git a/judge/event_poster_ws.py b/judge/event_poster_ws.py old mode 100755 new mode 100644 diff --git a/judge/feed.py b/judge/feed.py old mode 100755 new mode 100644 diff --git a/judge/fixtures/demo.json b/judge/fixtures/demo.json old mode 100755 new mode 100644 diff --git a/judge/fixtures/language_small.json b/judge/fixtures/language_small.json old mode 100755 new mode 100644 diff --git a/judge/fixtures/navbar.json b/judge/fixtures/navbar.json old mode 100755 new mode 100644 diff --git a/judge/forms.py b/judge/forms.py old mode 100755 new mode 100644 diff --git a/judge/fulltext.py b/judge/fulltext.py old mode 100755 new mode 100644 diff --git a/judge/highlight_code.py b/judge/highlight_code.py old mode 100755 new mode 100644 diff --git a/judge/jinja2/__init__.py b/judge/jinja2/__init__.py old mode 100755 new mode 100644 diff --git a/judge/jinja2/camo.py b/judge/jinja2/camo.py old mode 100755 new mode 100644 diff --git a/judge/jinja2/chat.py b/judge/jinja2/chat.py old mode 100755 new mode 100644 diff --git a/judge/jinja2/datetime.py b/judge/jinja2/datetime.py old mode 100755 new mode 100644 diff --git a/judge/jinja2/filesize.py b/judge/jinja2/filesize.py old mode 100755 new mode 100644 diff --git a/judge/jinja2/gravatar.py b/judge/jinja2/gravatar.py old mode 100755 new mode 100644 diff --git a/judge/jinja2/language.py b/judge/jinja2/language.py old mode 100755 new mode 100644 diff --git a/judge/jinja2/markdown/__init__.py b/judge/jinja2/markdown/__init__.py old mode 100755 new mode 100644 diff --git a/judge/jinja2/rating.py b/judge/jinja2/rating.py old mode 100755 new mode 100644 diff --git a/judge/jinja2/reference.py b/judge/jinja2/reference.py old mode 100755 new mode 100644 diff --git a/judge/jinja2/registry.py b/judge/jinja2/registry.py old mode 100755 new mode 100644 diff --git a/judge/jinja2/render.py b/judge/jinja2/render.py old mode 100755 new mode 100644 diff --git a/judge/jinja2/social.py b/judge/jinja2/social.py old mode 100755 new mode 100644 diff --git a/judge/jinja2/spaceless.py b/judge/jinja2/spaceless.py old mode 100755 new mode 100644 diff --git a/judge/jinja2/submission.py b/judge/jinja2/submission.py old mode 100755 new mode 100644 diff --git a/judge/jinja2/timedelta.py b/judge/jinja2/timedelta.py old mode 100755 new mode 100644 diff --git a/judge/judgeapi.py b/judge/judgeapi.py old mode 100755 new mode 100644 diff --git a/judge/lxml_tree.py b/judge/lxml_tree.py old mode 100755 new mode 100644 diff --git a/judge/management/__init__.py b/judge/management/__init__.py old mode 100755 new mode 100644 diff --git a/judge/management/commands/__init__.py b/judge/management/commands/__init__.py old mode 100755 new mode 100644 diff --git a/judge/management/commands/addjudge.py b/judge/management/commands/addjudge.py old mode 100755 new mode 100644 diff --git a/judge/management/commands/adduser.py b/judge/management/commands/adduser.py old mode 100755 new mode 100644 diff --git a/judge/management/commands/camo.py b/judge/management/commands/camo.py old mode 100755 new mode 100644 diff --git a/judge/management/commands/copy_language.py b/judge/management/commands/copy_language.py old mode 100755 new mode 100644 diff --git a/judge/management/commands/create_problem.py b/judge/management/commands/create_problem.py old mode 100755 new mode 100644 diff --git a/judge/management/commands/generate_data.py b/judge/management/commands/generate_data.py old mode 100755 new mode 100644 diff --git a/judge/management/commands/makedmojmessages.py b/judge/management/commands/makedmojmessages.py old mode 100755 new mode 100644 diff --git a/judge/management/commands/render_pdf.py b/judge/management/commands/render_pdf.py old mode 100755 new mode 100644 diff --git a/judge/management/commands/runbridged.py b/judge/management/commands/runbridged.py old mode 100755 new mode 100644 diff --git a/judge/management/commands/runmoss.py b/judge/management/commands/runmoss.py old mode 100755 new mode 100644 diff --git a/judge/middleware.py b/judge/middleware.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0001_squashed_0084_contest_formats.py b/judge/migrations/0001_squashed_0084_contest_formats.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0085_submission_source.py b/judge/migrations/0085_submission_source.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0086_rating_ceiling.py b/judge/migrations/0086_rating_ceiling.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0087_problem_resource_limits.py b/judge/migrations/0087_problem_resource_limits.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0088_private_contests.py b/judge/migrations/0088_private_contests.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0089_submission_to_contest.py b/judge/migrations/0089_submission_to_contest.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0090_fix_contest_visibility.py b/judge/migrations/0090_fix_contest_visibility.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0091_compiler_message_ansi2html.py b/judge/migrations/0091_compiler_message_ansi2html.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0092_contest_clone.py b/judge/migrations/0092_contest_clone.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0093_contest_moss.py b/judge/migrations/0093_contest_moss.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0094_submissiontestcase_unique_together.py b/judge/migrations/0094_submissiontestcase_unique_together.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0095_organization_logo_override.py b/judge/migrations/0095_organization_logo_override.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0096_profile_language_set_default.py b/judge/migrations/0096_profile_language_set_default.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0097_participation_is_disqualified.py b/judge/migrations/0097_participation_is_disqualified.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0098_auto_20200123_2136.py b/judge/migrations/0098_auto_20200123_2136.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0099_custom_checker.py b/judge/migrations/0099_custom_checker.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0100_auto_20200127_0059.py b/judge/migrations/0100_auto_20200127_0059.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0101_custom_validator.py b/judge/migrations/0101_custom_validator.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0102_fix_custom_validator.py b/judge/migrations/0102_fix_custom_validator.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0103_fix_custom_validator.py b/judge/migrations/0103_fix_custom_validator.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0104_auto_20200410_1313.py b/judge/migrations/0104_auto_20200410_1313.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0105_auto_20200523_0756.py b/judge/migrations/0105_auto_20200523_0756.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0106_friend.py b/judge/migrations/0106_friend.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0107_notification.py b/judge/migrations/0107_notification.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0108_submission_judged_date.py b/judge/migrations/0108_submission_judged_date.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0109_auto_20201017_1151.py b/judge/migrations/0109_auto_20201017_1151.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0110_notification_author.py b/judge/migrations/0110_notification_author.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0111_contest_decimal_points.py b/judge/migrations/0111_contest_decimal_points.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0112_contest_view_contest_scoreboard.py b/judge/migrations/0112_contest_view_contest_scoreboard.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0113_auto_20201228_0911.py b/judge/migrations/0113_auto_20201228_0911.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0114_auto_20201228_1041.py b/judge/migrations/0114_auto_20201228_1041.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0115_auto_20210525_0222.py b/judge/migrations/0115_auto_20210525_0222.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0116_auto_20211011_0645.py b/judge/migrations/0116_auto_20211011_0645.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0117_auto_20211209_0612.py b/judge/migrations/0117_auto_20211209_0612.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0118_rating.py b/judge/migrations/0118_rating.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0119_auto_20220306_0512.py b/judge/migrations/0119_auto_20220306_0512.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0120_auto_20220306_1124.py b/judge/migrations/0120_auto_20220306_1124.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0121_auto_20220415_0135.py b/judge/migrations/0121_auto_20220415_0135.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0122_auto_20220425_1202.py b/judge/migrations/0122_auto_20220425_1202.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0123_auto_20220502_2356.py b/judge/migrations/0123_auto_20220502_2356.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0124_auto_20220602_1116.py b/judge/migrations/0124_auto_20220602_1116.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0125_auto_20220602_1216.py b/judge/migrations/0125_auto_20220602_1216.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0126_languagetemplate.py b/judge/migrations/0126_languagetemplate.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0127_auto_20220616_1442.py b/judge/migrations/0127_auto_20220616_1442.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0128_auto_20220620_2210.py b/judge/migrations/0128_auto_20220620_2210.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0129_auto_20220622_1424.py b/judge/migrations/0129_auto_20220622_1424.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0130_auto_20220831_1048.py b/judge/migrations/0130_auto_20220831_1048.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0131_auto_20220905_0027.py b/judge/migrations/0131_auto_20220905_0027.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0132_auto_20220915_1349.py b/judge/migrations/0132_auto_20220915_1349.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0133_auto_20221013_0850.py b/judge/migrations/0133_auto_20221013_0850.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0134_auto_20221018_0124.py b/judge/migrations/0134_auto_20221018_0124.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0135_auto_20221028_0300.py b/judge/migrations/0135_auto_20221028_0300.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0136_alter_profile_timezone.py b/judge/migrations/0136_alter_profile_timezone.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0137_auto_20221116_2201.py b/judge/migrations/0137_auto_20221116_2201.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0138_bookmark_makebookmark.py b/judge/migrations/0138_bookmark_makebookmark.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0139_contest_freeze_after.py b/judge/migrations/0139_contest_freeze_after.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0140_alter_contest_format_name.py b/judge/migrations/0140_alter_contest_format_name.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0141_contestproblem_frozen_subtasks.py b/judge/migrations/0141_contestproblem_frozen_subtasks.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0142_contestparticipation_format_data_final.py b/judge/migrations/0142_contestparticipation_format_data_final.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0143_auto_20221229_0153.py b/judge/migrations/0143_auto_20221229_0153.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0144_auto_20230103_0523.py b/judge/migrations/0144_auto_20230103_0523.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0145_alter_organization_slug.py b/judge/migrations/0145_alter_organization_slug.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0146_alter_organization_slug.py b/judge/migrations/0146_alter_organization_slug.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0147_alter_profile_timezone.py b/judge/migrations/0147_alter_profile_timezone.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0148_course_courseassignment_courseresource_courserole.py b/judge/migrations/0148_course_courseassignment_courseresource_courserole.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0149_auto_20230202_0902.py b/judge/migrations/0149_auto_20230202_0902.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0150_alter_profile_timezone.py b/judge/migrations/0150_alter_profile_timezone.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0151_comment_content_type.py b/judge/migrations/0151_comment_content_type.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0152_migrate_comments.py b/judge/migrations/0152_migrate_comments.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0153_drop_comment_page.py b/judge/migrations/0153_drop_comment_page.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0154_add_submission_indexes.py b/judge/migrations/0154_add_submission_indexes.py old mode 100755 new mode 100644 diff --git a/judge/migrations/0155_output_only.py b/judge/migrations/0155_output_only.py old mode 100755 new mode 100644 diff --git a/judge/migrations/__init__.py b/judge/migrations/__init__.py old mode 100755 new mode 100644 diff --git a/judge/ml/collab_filter.py b/judge/ml/collab_filter.py old mode 100755 new mode 100644 diff --git a/judge/models/__init__.py b/judge/models/__init__.py old mode 100755 new mode 100644 diff --git a/judge/models/bookmark.py b/judge/models/bookmark.py old mode 100755 new mode 100644 diff --git a/judge/models/choices.py b/judge/models/choices.py old mode 100755 new mode 100644 diff --git a/judge/models/comment.py b/judge/models/comment.py old mode 100755 new mode 100644 index 335d567..fc9af4c --- a/judge/models/comment.py +++ b/judge/models/comment.py @@ -56,7 +56,6 @@ class Comment(MPTTModel): related_name="replies", on_delete=CASCADE, ) - versions = VersionRelation() class Meta: @@ -112,15 +111,6 @@ class Comment(MPTTModel): if len(output) >= n: return output return output - - @cached_property - def get_replies(self): - query = Comment.filter(parent=self) - return len(query) - - @cached_property - def get_revisions(self): - return self.versions.count() @cached_property def page_title(self): @@ -151,7 +141,7 @@ class Comment(MPTTModel): ) def get_absolute_url(self): - return "%s?comment-id=%d#comment-%d" % (self.link, self.id, self.id) + return "%s#comment-%d" % (self.link, self.id) class CommentVote(models.Model): diff --git a/judge/models/contest.py b/judge/models/contest.py old mode 100755 new mode 100644 diff --git a/judge/models/course.py b/judge/models/course.py old mode 100755 new mode 100644 diff --git a/judge/models/interface.py b/judge/models/interface.py old mode 100755 new mode 100644 diff --git a/judge/models/message.py b/judge/models/message.py old mode 100755 new mode 100644 diff --git a/judge/models/pagevote.py b/judge/models/pagevote.py old mode 100755 new mode 100644 diff --git a/judge/models/problem.py b/judge/models/problem.py old mode 100755 new mode 100644 diff --git a/judge/models/problem_data.py b/judge/models/problem_data.py old mode 100755 new mode 100644 diff --git a/judge/models/profile.py b/judge/models/profile.py old mode 100755 new mode 100644 diff --git a/judge/models/runtime.py b/judge/models/runtime.py old mode 100755 new mode 100644 diff --git a/judge/models/submission.py b/judge/models/submission.py old mode 100755 new mode 100644 diff --git a/judge/models/ticket.py b/judge/models/ticket.py old mode 100755 new mode 100644 diff --git a/judge/models/volunteer.py b/judge/models/volunteer.py old mode 100755 new mode 100644 diff --git a/judge/pdf_problems.py b/judge/pdf_problems.py old mode 100755 new mode 100644 diff --git a/judge/performance_points.py b/judge/performance_points.py old mode 100755 new mode 100644 diff --git a/judge/ratings.py b/judge/ratings.py old mode 100755 new mode 100644 diff --git a/judge/signals.py b/judge/signals.py old mode 100755 new mode 100644 diff --git a/judge/sitemap.py b/judge/sitemap.py old mode 100755 new mode 100644 diff --git a/judge/social_auth.py b/judge/social_auth.py old mode 100755 new mode 100644 diff --git a/judge/tasks/__init__.py b/judge/tasks/__init__.py old mode 100755 new mode 100644 diff --git a/judge/tasks/contest.py b/judge/tasks/contest.py old mode 100755 new mode 100644 diff --git a/judge/tasks/demo.py b/judge/tasks/demo.py old mode 100755 new mode 100644 diff --git a/judge/tasks/experiment.py b/judge/tasks/experiment.py old mode 100755 new mode 100644 diff --git a/judge/tasks/import_users.py b/judge/tasks/import_users.py old mode 100755 new mode 100644 diff --git a/judge/tasks/submission.py b/judge/tasks/submission.py old mode 100755 new mode 100644 diff --git a/judge/template_context.py b/judge/template_context.py old mode 100755 new mode 100644 diff --git a/judge/templatetags/__init__.py b/judge/templatetags/__init__.py old mode 100755 new mode 100644 diff --git a/judge/templatetags/code_highlight.py b/judge/templatetags/code_highlight.py old mode 100755 new mode 100644 diff --git a/judge/templatetags/counter.py b/judge/templatetags/counter.py old mode 100755 new mode 100644 diff --git a/judge/templatetags/dicts.py b/judge/templatetags/dicts.py old mode 100755 new mode 100644 diff --git a/judge/templatetags/list_processor.py b/judge/templatetags/list_processor.py old mode 100755 new mode 100644 diff --git a/judge/templatetags/strings.py b/judge/templatetags/strings.py old mode 100755 new mode 100644 diff --git a/judge/tests.py b/judge/tests.py old mode 100755 new mode 100644 diff --git a/judge/timezone.py b/judge/timezone.py old mode 100755 new mode 100644 diff --git a/judge/user_log.py b/judge/user_log.py old mode 100755 new mode 100644 diff --git a/judge/user_translations.py b/judge/user_translations.py old mode 100755 new mode 100644 diff --git a/judge/utils/__init__.py b/judge/utils/__init__.py old mode 100755 new mode 100644 diff --git a/judge/utils/cachedict.py b/judge/utils/cachedict.py old mode 100755 new mode 100644 diff --git a/judge/utils/camo.py b/judge/utils/camo.py old mode 100755 new mode 100644 diff --git a/judge/utils/caniuse.py b/judge/utils/caniuse.py old mode 100755 new mode 100644 diff --git a/judge/utils/celery.py b/judge/utils/celery.py old mode 100755 new mode 100644 diff --git a/judge/utils/diggpaginator.py b/judge/utils/diggpaginator.py old mode 100755 new mode 100644 diff --git a/judge/utils/file_cache.py b/judge/utils/file_cache.py old mode 100755 new mode 100644 diff --git a/judge/utils/fine_uploader.py b/judge/utils/fine_uploader.py old mode 100755 new mode 100644 diff --git a/judge/utils/infinite_paginator.py b/judge/utils/infinite_paginator.py old mode 100755 new mode 100644 diff --git a/judge/utils/mathoid.py b/judge/utils/mathoid.py old mode 100755 new mode 100644 diff --git a/judge/utils/opengraph.py b/judge/utils/opengraph.py old mode 100755 new mode 100644 diff --git a/judge/utils/problem_data.py b/judge/utils/problem_data.py old mode 100755 new mode 100644 diff --git a/judge/utils/problems.py b/judge/utils/problems.py old mode 100755 new mode 100644 diff --git a/judge/utils/pwned.py b/judge/utils/pwned.py old mode 100755 new mode 100644 diff --git a/judge/utils/ranker.py b/judge/utils/ranker.py old mode 100755 new mode 100644 diff --git a/judge/utils/raw_sql.py b/judge/utils/raw_sql.py old mode 100755 new mode 100644 diff --git a/judge/utils/recaptcha.py b/judge/utils/recaptcha.py old mode 100755 new mode 100644 diff --git a/judge/utils/stats.py b/judge/utils/stats.py old mode 100755 new mode 100644 diff --git a/judge/utils/strings.py b/judge/utils/strings.py old mode 100755 new mode 100644 diff --git a/judge/utils/texoid.py b/judge/utils/texoid.py old mode 100755 new mode 100644 diff --git a/judge/utils/tickets.py b/judge/utils/tickets.py old mode 100755 new mode 100644 diff --git a/judge/utils/timedelta.py b/judge/utils/timedelta.py old mode 100755 new mode 100644 diff --git a/judge/utils/unicode.py b/judge/utils/unicode.py old mode 100755 new mode 100644 diff --git a/judge/utils/views.py b/judge/utils/views.py old mode 100755 new mode 100644 diff --git a/judge/views/__init__.py b/judge/views/__init__.py old mode 100755 new mode 100644 diff --git a/judge/views/about.py b/judge/views/about.py old mode 100755 new mode 100644 diff --git a/judge/views/api/__init__.py b/judge/views/api/__init__.py old mode 100755 new mode 100644 diff --git a/judge/views/api/api_v1.py b/judge/views/api/api_v1.py old mode 100755 new mode 100644 diff --git a/judge/views/api/api_v2.py b/judge/views/api/api_v2.py old mode 100755 new mode 100644 diff --git a/judge/views/blog.py b/judge/views/blog.py old mode 100755 new mode 100644 diff --git a/judge/views/bookmark.py b/judge/views/bookmark.py old mode 100755 new mode 100644 diff --git a/judge/views/comment.py b/judge/views/comment.py old mode 100755 new mode 100644 index abacb52..19085fb --- a/judge/views/comment.py +++ b/judge/views/comment.py @@ -1,13 +1,8 @@ -from django.conf import settings - from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin -from django.contrib.auth.context_processors import PermWrapper from django.core.exceptions import PermissionDenied from django.db import IntegrityError, transaction -from django.db.models import Q, F, Count, FilteredRelation -from django.db.models.functions import Coalesce -from django.db.models.expressions import F, Value +from django.db.models import F from django.forms.models import ModelForm from django.http import ( Http404, @@ -20,12 +15,11 @@ from django.utils.translation import gettext as _ from django.views.decorators.http import require_POST from django.views.generic import DetailView, UpdateView from django.urls import reverse_lazy -from django.template import loader from reversion import revisions from reversion.models import Version from judge.dblock import LockModel -from judge.models import Comment, CommentVote, Notification, BlogPost +from judge.models import Comment, CommentVote, Notification from judge.utils.views import TitleMixin from judge.widgets import MathJaxPagedownWidget, HeavyPreviewPageDownWidget from judge.comments import add_mention_notifications, del_mention_notifications @@ -42,11 +36,6 @@ __all__ = [ @login_required - -# def get_more_reply(request, id): -# queryset = Comment.get_pk(id) - - def vote_comment(request, delta): if abs(delta) != 1: return HttpResponseBadRequest( @@ -110,77 +99,10 @@ def vote_comment(request, delta): def upvote_comment(request): return vote_comment(request, 1) + def downvote_comment(request): return vote_comment(request, -1) -def get_comments(request, limit=10): - try: - comment_id = int(request.GET["id"]) - parrent_none = int(request.GET["parrent_none"]) - except ValueError: - return HttpResponseBadRequest() - else: - if comment_id and not Comment.objects.filter(id=comment_id).exists(): - raise Http404() - offset = 0 - if "offset" in request.GET: - offset = int(request.GET["offset"]) - comment_remove = -1 - if "comment_remove" in request.GET: - comment_remove = int(request.GET["comment_remove"]) - comment_root_id = 0 - if (comment_id): - comment_obj = Comment.objects.get(pk=comment_id) - comment_root_id = comment_obj.id - else: - comment_obj = None - queryset = comment_obj.linked_object.comments - if parrent_none: - queryset = queryset.filter(parent=None, hidden=False) - if (comment_remove != -1): - queryset.get(pk=comment_remove).delete() - else: - queryset = queryset.filter(parent=comment_obj, hidden=False) - comment_count = len(queryset) - queryset = ( - queryset.select_related("author__user") - .defer("author__about") - .annotate( - count_replies=Count("replies", distinct=True), - revisions=Count("versions", distinct=True), - )[offset:offset+limit] - ) - if request.user.is_authenticated: - profile = request.profile - queryset = queryset.annotate( - my_vote=FilteredRelation( - "votes", condition=Q(votes__voter_id=profile.id) - ), - ).annotate(vote_score=Coalesce(F("my_vote__score"), Value(0))) - - comment_html = loader.render_to_string( - "comments/content-list.html", - { - "request": request, - "comment_root_id": comment_root_id, - "comment_list": queryset, - "vote_hide_threshold" : settings.DMOJ_COMMENT_VOTE_HIDE_THRESHOLD, - "perms": PermWrapper(request.user), - "offset": offset + min(len(queryset), limit), - "limit": limit, - "comment_count": comment_count, - "comment_parrent_none": parrent_none, - "comment_remove": comment_remove, - } - ) - - return HttpResponse(comment_html) - -def get_show_more(request): - return get_comments(request) - -def get_replies(request): - return get_comments(request) class CommentMixin(object): model = Comment diff --git a/judge/views/contests.py b/judge/views/contests.py old mode 100755 new mode 100644 diff --git a/judge/views/course.py b/judge/views/course.py old mode 100755 new mode 100644 diff --git a/judge/views/error.py b/judge/views/error.py old mode 100755 new mode 100644 diff --git a/judge/views/feed.py b/judge/views/feed.py old mode 100755 new mode 100644 diff --git a/judge/views/internal.py b/judge/views/internal.py old mode 100755 new mode 100644 diff --git a/judge/views/language.py b/judge/views/language.py old mode 100755 new mode 100644 diff --git a/judge/views/license.py b/judge/views/license.py old mode 100755 new mode 100644 diff --git a/judge/views/mailgun.py b/judge/views/mailgun.py old mode 100755 new mode 100644 diff --git a/judge/views/notification.py b/judge/views/notification.py old mode 100755 new mode 100644 diff --git a/judge/views/organization.py b/judge/views/organization.py old mode 100755 new mode 100644 diff --git a/judge/views/pagevote.py b/judge/views/pagevote.py old mode 100755 new mode 100644 diff --git a/judge/views/preview.py b/judge/views/preview.py old mode 100755 new mode 100644 diff --git a/judge/views/problem.py b/judge/views/problem.py old mode 100755 new mode 100644 diff --git a/judge/views/problem_data.py b/judge/views/problem_data.py old mode 100755 new mode 100644 diff --git a/judge/views/problem_manage.py b/judge/views/problem_manage.py old mode 100755 new mode 100644 diff --git a/judge/views/ranked_submission.py b/judge/views/ranked_submission.py old mode 100755 new mode 100644 diff --git a/judge/views/register.py b/judge/views/register.py old mode 100755 new mode 100644 diff --git a/judge/views/resolver.py b/judge/views/resolver.py old mode 100755 new mode 100644 diff --git a/judge/views/select2.py b/judge/views/select2.py old mode 100755 new mode 100644 diff --git a/judge/views/stats.py b/judge/views/stats.py old mode 100755 new mode 100644 diff --git a/judge/views/status.py b/judge/views/status.py old mode 100755 new mode 100644 diff --git a/judge/views/submission.py b/judge/views/submission.py old mode 100755 new mode 100644 diff --git a/judge/views/tasks.py b/judge/views/tasks.py old mode 100755 new mode 100644 diff --git a/judge/views/ticket.py b/judge/views/ticket.py old mode 100755 new mode 100644 diff --git a/judge/views/totp.py b/judge/views/totp.py old mode 100755 new mode 100644 diff --git a/judge/views/user.py b/judge/views/user.py old mode 100755 new mode 100644 diff --git a/judge/views/volunteer.py b/judge/views/volunteer.py old mode 100755 new mode 100644 diff --git a/judge/views/widgets.py b/judge/views/widgets.py old mode 100755 new mode 100644 diff --git a/judge/widgets/__init__.py b/judge/widgets/__init__.py old mode 100755 new mode 100644 diff --git a/judge/widgets/checkbox.py b/judge/widgets/checkbox.py old mode 100755 new mode 100644 diff --git a/judge/widgets/datetime.py b/judge/widgets/datetime.py old mode 100755 new mode 100644 diff --git a/judge/widgets/mixins.py b/judge/widgets/mixins.py old mode 100755 new mode 100644 diff --git a/judge/widgets/pagedown.py b/judge/widgets/pagedown.py old mode 100755 new mode 100644 diff --git a/judge/widgets/select2.py b/judge/widgets/select2.py old mode 100755 new mode 100644 diff --git a/locale/ar/LC_MESSAGES/django.po b/locale/ar/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/ar/LC_MESSAGES/djangojs.po b/locale/ar/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/de/LC_MESSAGES/djangojs.po b/locale/de/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/en/LC_MESSAGES/djangojs.po b/locale/en/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/es/LC_MESSAGES/django.po b/locale/es/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/es/LC_MESSAGES/djangojs.po b/locale/es/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/fr/LC_MESSAGES/djangojs.po b/locale/fr/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/hr/LC_MESSAGES/django.po b/locale/hr/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/hr/LC_MESSAGES/djangojs.po b/locale/hr/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/hu/LC_MESSAGES/django.po b/locale/hu/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/hu/LC_MESSAGES/djangojs.po b/locale/hu/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/it/LC_MESSAGES/django.po b/locale/it/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/it/LC_MESSAGES/djangojs.po b/locale/it/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/ja/LC_MESSAGES/django.po b/locale/ja/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/ja/LC_MESSAGES/djangojs.po b/locale/ja/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/ko/LC_MESSAGES/django.po b/locale/ko/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/ko/LC_MESSAGES/djangojs.po b/locale/ko/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/lt/LC_MESSAGES/django.po b/locale/lt/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/lt/LC_MESSAGES/djangojs.po b/locale/lt/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/nl/LC_MESSAGES/django.po b/locale/nl/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/nl/LC_MESSAGES/djangojs.po b/locale/nl/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/pl/LC_MESSAGES/django.po b/locale/pl/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/pl/LC_MESSAGES/djangojs.po b/locale/pl/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/pt/LC_MESSAGES/django.po b/locale/pt/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/pt/LC_MESSAGES/djangojs.po b/locale/pt/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/ro/LC_MESSAGES/django.po b/locale/ro/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/ro/LC_MESSAGES/djangojs.po b/locale/ro/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/ru/LC_MESSAGES/django.po b/locale/ru/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/ru/LC_MESSAGES/djangojs.po b/locale/ru/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/ru/LC_MESSAGES/dmoj-user.po b/locale/ru/LC_MESSAGES/dmoj-user.po old mode 100755 new mode 100644 diff --git a/locale/sr/LC_MESSAGES/django.po b/locale/sr/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/sr/LC_MESSAGES/djangojs.po b/locale/sr/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/sr/LC_MESSAGES/dmoj-user.po b/locale/sr/LC_MESSAGES/dmoj-user.po old mode 100755 new mode 100644 diff --git a/locale/sr_Latn/LC_MESSAGES/django.po b/locale/sr_Latn/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/sr_Latn/LC_MESSAGES/djangojs.po b/locale/sr_Latn/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/tr/LC_MESSAGES/django.po b/locale/tr/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/tr/LC_MESSAGES/djangojs.po b/locale/tr/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/vi/LC_MESSAGES/django.po b/locale/vi/LC_MESSAGES/django.po old mode 100755 new mode 100644 index 268b457..4a182fc --- a/locale/vi/LC_MESSAGES/django.po +++ b/locale/vi/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: lqdoj2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-05-16 16:17+0700\n" +"POT-Creation-Date: 2023-04-26 15:39+0700\n" "PO-Revision-Date: 2021-07-20 03:44\n" "Last-Translator: Icyene\n" "Language-Team: Vietnamese\n" @@ -25,7 +25,7 @@ msgstr "" msgid "user" msgstr "người dùng" -#: chat_box/models.py:32 judge/models/comment.py:44 judge/models/comment.py:189 +#: chat_box/models.py:32 judge/models/comment.py:44 judge/models/comment.py:179 msgid "posted time" msgstr "thời gian đăng" @@ -41,19 +41,19 @@ msgstr "xem lần cuối" msgid "LQDOJ Chat" msgstr "" -#: dmoj/settings.py:365 +#: dmoj/settings.py:363 msgid "Vietnamese" msgstr "Tiếng Việt" -#: dmoj/settings.py:366 +#: dmoj/settings.py:364 msgid "English" msgstr "" -#: dmoj/urls.py:136 +#: dmoj/urls.py:135 msgid "Login" msgstr "Đăng nhập" -#: dmoj/urls.py:214 templates/base.html:209 +#: dmoj/urls.py:212 templates/base.html:209 #: templates/organization/org-left-sidebar.html:2 msgid "Home" msgstr "Trang chủ" @@ -140,7 +140,7 @@ msgstr[0] "%d kỳ thi đã được đánh dấu ẩn." msgid "Mark contests as hidden" msgstr "Ẩn các kỳ thi" -#: judge/admin/contest.py:377 judge/admin/submission.py:248 +#: judge/admin/contest.py:377 judge/admin/submission.py:243 #, python-format msgid "%d submission was successfully scheduled for rejudging." msgid_plural "%d submissions were successfully scheduled for rejudging." @@ -221,7 +221,7 @@ msgstr "Điểm" msgid "Limits" msgstr "Giới hạn" -#: judge/admin/problem.py:217 judge/admin/submission.py:358 +#: judge/admin/problem.py:217 judge/admin/submission.py:353 #: templates/base.html:245 templates/stats/tab.html:4 #: templates/submission/list.html:347 msgid "Language" @@ -255,12 +255,12 @@ msgstr[0] "%d bài tập đã được đánh dấu riêng tư." msgid "Mark problems as private" msgstr "Đánh dấu các bài tập là riêng tư" -#: judge/admin/problem.py:432 judge/admin/submission.py:321 +#: judge/admin/problem.py:432 judge/admin/submission.py:316 #: templates/problem/list.html:18 templates/problem/list.html:37 msgid "Problem code" msgstr "Mã bài" -#: judge/admin/problem.py:444 judge/admin/submission.py:327 +#: judge/admin/problem.py:444 judge/admin/submission.py:322 msgid "Problem name" msgstr "Tên bài" @@ -284,7 +284,7 @@ msgstr "" msgid "timezone" msgstr "múi giờ" -#: judge/admin/profile.py:125 judge/admin/submission.py:334 +#: judge/admin/profile.py:125 judge/admin/submission.py:329 #: templates/notification/list.html:12 #: templates/organization/requests/log.html:9 #: templates/organization/requests/pending.html:19 @@ -338,7 +338,7 @@ msgid "Capabilities" msgstr "Khả năng" #: judge/admin/submission.py:31 judge/admin/submission.py:53 -#: judge/admin/submission.py:345 +#: judge/admin/submission.py:340 msgid "None" msgstr "None" @@ -360,29 +360,29 @@ msgctxt "contest problem" msgid "%(problem)s in %(contest)s" msgstr "%(problem)s trong %(contest)s" -#: judge/admin/submission.py:220 judge/admin/submission.py:261 +#: judge/admin/submission.py:215 judge/admin/submission.py:256 msgid "You do not have the permission to rejudge submissions." msgstr "Bạn không có quyền chấm lại bài." -#: judge/admin/submission.py:232 +#: judge/admin/submission.py:227 msgid "You do not have the permission to rejudge THAT many submissions." msgstr "Bạn không có quyền chấm lại nhiều bài nộp như vậy." -#: judge/admin/submission.py:255 +#: judge/admin/submission.py:250 msgid "Rejudge the selected submissions" msgstr "Chấm lại các bài nộp đã chọn" -#: judge/admin/submission.py:309 judge/views/problem_manage.py:226 +#: judge/admin/submission.py:304 judge/views/problem_manage.py:226 #, python-format msgid "%d submission were successfully rescored." msgid_plural "%d submissions were successfully rescored." msgstr[0] "%d bài nộp đã được tính điểm lại." -#: judge/admin/submission.py:316 +#: judge/admin/submission.py:311 msgid "Rescore the selected submissions" msgstr "Tính điểm lại cái bài nộp" -#: judge/admin/submission.py:339 templates/notification/list.html:15 +#: judge/admin/submission.py:334 templates/notification/list.html:15 #: templates/organization/requests/log.html:10 #: templates/organization/requests/pending.html:20 #: templates/problem/list.html:154 @@ -391,17 +391,17 @@ msgstr "Tính điểm lại cái bài nộp" msgid "Time" msgstr "Thời gian" -#: judge/admin/submission.py:347 +#: judge/admin/submission.py:342 #, python-format msgid "%d KB" msgstr "%d KB" -#: judge/admin/submission.py:349 +#: judge/admin/submission.py:344 #, python-format msgid "%.2f MB" msgstr "" -#: judge/admin/submission.py:352 templates/submission/status-testcases.html:151 +#: judge/admin/submission.py:347 templates/submission/status-testcases.html:151 msgid "Memory" msgstr "Bộ nhớ" @@ -426,20 +426,20 @@ msgstr "Dạng" msgid "Online Judge" msgstr "" -#: judge/comments.py:61 +#: judge/comments.py:60 msgid "Comment body" msgstr "Nội dung bình luận" -#: judge/comments.py:67 judge/views/ticket.py:78 +#: judge/comments.py:66 judge/views/ticket.py:78 msgid "Your part is silent, little toad." msgstr "Bạn không được phép bình luận." -#: judge/comments.py:76 templates/comments/list.html:17 +#: judge/comments.py:75 templates/comments/list.html:17 msgid "" "You need to have solved at least one problem before your voice can be heard." msgstr "Bạn phải giải ít nhất một bài trước khi được phép bình luận." -#: judge/comments.py:125 +#: judge/comments.py:124 msgid "Posted comment" msgstr "Bình luận đã đăng" @@ -467,7 +467,7 @@ msgstr "" msgid "New IOI" msgstr "IOI mới" -#: judge/forms.py:107 judge/views/organization.py:520 +#: judge/forms.py:107 judge/views/organization.py:514 #: judge/views/register.py:62 #, python-brace-format msgid "You may not be part of more than {count} public groups." @@ -533,7 +533,7 @@ msgid "N j, Y, g:i a" msgstr "g:i a j b, Y" #: judge/jinja2/datetime.py:26 templates/chat/message.html:13 -#: templates/comments/content-list.html:35 templates/comments/list.html:77 +#: templates/comments/list.html:76 #, python-brace-format msgid "{time}" msgstr "{time}" @@ -543,19 +543,19 @@ msgstr "{time}" msgid "on {time}" msgstr "vào {time}" -#: judge/middleware.py:135 +#: judge/middleware.py:131 msgid "No permission" msgstr "Không có quyền truy cập" -#: judge/middleware.py:136 +#: judge/middleware.py:132 msgid "You need to join this group first" msgstr "Bạn phải là thành viên của nhóm." -#: judge/middleware.py:146 judge/middleware.py:147 +#: judge/middleware.py:142 judge/middleware.py:143 msgid "No such group" msgstr "Nhóm không tồn tại" -#: judge/models/bookmark.py:14 judge/models/comment.py:171 +#: judge/models/bookmark.py:14 judge/models/comment.py:161 #: judge/models/pagevote.py:13 msgid "associated page" msgstr "trang tương ứng" @@ -621,49 +621,56 @@ msgstr "ẩn bình luận" msgid "parent" msgstr "" -#: judge/models/comment.py:63 judge/models/comment.py:191 +#: judge/models/comment.py:62 judge/models/comment.py:181 msgid "comment" msgstr "bình luận" -#: judge/models/comment.py:64 +#: judge/models/comment.py:63 msgid "comments" msgstr "" -#: judge/models/comment.py:132 +#: judge/models/comment.py:122 #, fuzzy #| msgid "Editorial for {0}" msgid "Editorial for " msgstr "Hướng dẫn cho {0}" -#: judge/models/comment.py:164 +#: judge/models/comment.py:154 msgid "comment vote" msgstr "" -#: judge/models/comment.py:165 +#: judge/models/comment.py:155 msgid "comment votes" msgstr "" -#: judge/models/comment.py:176 +#: judge/models/comment.py:166 msgid "Override comment lock" msgstr "" -#: judge/models/comment.py:185 +#: judge/models/comment.py:175 +#: src/dmoj-wpadmin/test_project/apps/books/admin.py:24 +#: src/dmoj-wpadmin/test_project/apps/books/models.py:30 +#: src/dmoj-wpadmin/test_project/apps/cds/models.py:30 +#: src/dmoj-wpadmin/test_project/apps/dvds/models.py:30 msgid "owner" msgstr "" -#: judge/models/comment.py:193 judge/models/message.py:28 +#: judge/models/comment.py:183 judge/models/message.py:28 msgid "read" msgstr "" -#: judge/models/comment.py:194 +#: judge/models/comment.py:184 +#: src/dmoj-wpadmin/test_project/apps/books/models.py:28 +#: src/dmoj-wpadmin/test_project/apps/cds/models.py:28 +#: src/dmoj-wpadmin/test_project/apps/dvds/models.py:28 msgid "category" msgstr "" -#: judge/models/comment.py:197 +#: judge/models/comment.py:187 msgid "html link to comments, used for non-comments" msgstr "" -#: judge/models/comment.py:203 +#: judge/models/comment.py:193 msgid "who trigger, used for non-comment" msgstr "" @@ -732,6 +739,13 @@ msgstr "" #: judge/models/contest.py:118 judge/models/course.py:158 #: judge/models/runtime.py:211 +#: src/dmoj-wpadmin/test_project/apps/books/admin.py:20 +#: src/dmoj-wpadmin/test_project/apps/books/models.py:13 +#: src/dmoj-wpadmin/test_project/apps/books/models.py:27 +#: src/dmoj-wpadmin/test_project/apps/cds/models.py:13 +#: src/dmoj-wpadmin/test_project/apps/cds/models.py:27 +#: src/dmoj-wpadmin/test_project/apps/dvds/models.py:13 +#: src/dmoj-wpadmin/test_project/apps/dvds/models.py:27 msgid "description" msgstr "mô tả" @@ -2646,24 +2660,24 @@ msgstr "Báo cáo" msgid "Comment feed" msgstr "Bình luận" -#: judge/views/comment.py:53 judge/views/pagevote.py:31 +#: judge/views/comment.py:42 judge/views/pagevote.py:31 msgid "Messing around, are we?" msgstr "Messing around, are we?" -#: judge/views/comment.py:69 judge/views/pagevote.py:47 +#: judge/views/comment.py:58 judge/views/pagevote.py:47 msgid "You must solve at least one problem before you can vote." msgstr "Bạn phải giải ít nhất 1 bài trước khi được vote." -#: judge/views/comment.py:100 +#: judge/views/comment.py:89 msgid "You already voted." msgstr "Bạn đã vote." -#: judge/views/comment.py:243 judge/views/organization.py:817 -#: judge/views/organization.py:963 judge/views/organization.py:1128 +#: judge/views/comment.py:165 judge/views/organization.py:811 +#: judge/views/organization.py:957 judge/views/organization.py:1122 msgid "Edited from site" msgstr "Chỉnh sửa từ web" -#: judge/views/comment.py:264 +#: judge/views/comment.py:186 msgid "Editing comment" msgstr "Chỉnh sửa bình luận" @@ -2865,13 +2879,13 @@ msgstr "Không thể chỉnh sửa tổ chức" msgid "You are not allowed to edit this organization." msgstr "Bạn không được phép chỉnh sửa tổ chức này." -#: judge/views/organization.py:193 judge/views/organization.py:340 +#: judge/views/organization.py:193 judge/views/organization.py:337 #, fuzzy #| msgid "Can't edit organization" msgid "Can't access organization" msgstr "Không thể chỉnh sửa tổ chức" -#: judge/views/organization.py:194 judge/views/organization.py:341 +#: judge/views/organization.py:194 judge/views/organization.py:338 msgid "You are not allowed to access this organization." msgstr "Bạn không được phép chỉnh sửa tổ chức này." @@ -2882,57 +2896,57 @@ msgstr "Bạn không được phép chỉnh sửa tổ chức này." msgid "Groups" msgstr "Nhóm" -#: judge/views/organization.py:347 +#: judge/views/organization.py:344 #, python-format msgid "%s Members" msgstr "%s Thành viên" -#: judge/views/organization.py:476 +#: judge/views/organization.py:470 #, python-brace-format msgid "All submissions in {0}" msgstr "Bài nộp trong {0}" -#: judge/views/organization.py:506 judge/views/organization.py:512 -#: judge/views/organization.py:519 +#: judge/views/organization.py:500 judge/views/organization.py:506 +#: judge/views/organization.py:513 msgid "Joining group" msgstr "Tham gia nhóm" -#: judge/views/organization.py:507 +#: judge/views/organization.py:501 msgid "You are already in the group." msgstr "Bạn đã ở trong nhóm." -#: judge/views/organization.py:512 +#: judge/views/organization.py:506 msgid "This group is not open." msgstr "Nhóm này là nhóm kín." -#: judge/views/organization.py:535 +#: judge/views/organization.py:529 msgid "Leaving group" msgstr "Rời nhóm" -#: judge/views/organization.py:536 +#: judge/views/organization.py:530 #, python-format msgid "You are not in \"%s\"." msgstr "Bạn không ở trong \"%s\"." -#: judge/views/organization.py:561 +#: judge/views/organization.py:555 #, python-format msgid "Request to join %s" msgstr "Đăng ký tham gia %s" -#: judge/views/organization.py:591 +#: judge/views/organization.py:585 msgid "Join request detail" msgstr "Chi tiết đơn đăng ký" -#: judge/views/organization.py:633 +#: judge/views/organization.py:627 msgid "Manage join requests" msgstr "Quản lý đơn đăng ký" -#: judge/views/organization.py:637 +#: judge/views/organization.py:631 #, python-format msgid "Managing join requests for %s" msgstr "Quản lý đơn đăng ký cho %s" -#: judge/views/organization.py:677 +#: judge/views/organization.py:671 #, python-format msgid "" "Your organization can only receive %d more members. You cannot approve %d " @@ -2941,96 +2955,96 @@ msgstr "" "Tổ chức chỉ có thể chứa %d thành viên. Bạn không thể chấp thuận nhiều hơn %d " "người." -#: judge/views/organization.py:695 +#: judge/views/organization.py:689 #, python-format msgid "Approved %d user." msgid_plural "Approved %d users." msgstr[0] "Đã chấp thuận %d người." -#: judge/views/organization.py:698 +#: judge/views/organization.py:692 #, python-format msgid "Rejected %d user." msgid_plural "Rejected %d users." msgstr[0] "Đã từ chối %d người." -#: judge/views/organization.py:738 +#: judge/views/organization.py:732 #, python-format msgid "Add member for %s" msgstr "Thêm thành viên cho %s" -#: judge/views/organization.py:750 +#: judge/views/organization.py:744 #, fuzzy #| msgid "Edited from site" msgid "Added members from site" msgstr "Chỉnh sửa từ web" -#: judge/views/organization.py:770 judge/views/organization.py:778 +#: judge/views/organization.py:764 judge/views/organization.py:772 msgid "Can't kick user" msgstr "Không thể đuổi" -#: judge/views/organization.py:771 +#: judge/views/organization.py:765 msgid "The user you are trying to kick does not exist!" msgstr "" -#: judge/views/organization.py:779 +#: judge/views/organization.py:773 #, python-format msgid "The user you are trying to kick is not in organization: %s." msgstr "" -#: judge/views/organization.py:800 judge/views/organization.py:952 +#: judge/views/organization.py:794 judge/views/organization.py:946 #, fuzzy, python-format #| msgid "Editing %s" msgid "Edit %s" msgstr "Đang chỉnh sửa %s" -#: judge/views/organization.py:828 templates/organization/list.html:45 +#: judge/views/organization.py:822 templates/organization/list.html:45 msgid "Create group" msgstr "Tạo nhóm" -#: judge/views/organization.py:843 +#: judge/views/organization.py:837 msgid "Exceeded limit" msgstr "" -#: judge/views/organization.py:844 +#: judge/views/organization.py:838 #, python-format msgid "You created too many groups. You can only create at most %d groups" msgstr "" -#: judge/views/organization.py:849 judge/views/organization.py:874 -#: judge/views/organization.py:1018 +#: judge/views/organization.py:843 judge/views/organization.py:868 +#: judge/views/organization.py:1012 msgid "Added from site" msgstr "Thêm từ web" -#: judge/views/organization.py:865 +#: judge/views/organization.py:859 #: templates/organization/org-right-sidebar.html:55 msgid "Add contest" msgstr "Thêm kỳ thi" -#: judge/views/organization.py:908 judge/views/organization.py:1070 +#: judge/views/organization.py:902 judge/views/organization.py:1064 msgid "Permission denied" msgstr "Truy cập bị từ chối" -#: judge/views/organization.py:909 +#: judge/views/organization.py:903 #, fuzzy #| msgid "You are not allowed to edit this organization." msgid "You are not allowed to edit this contest" msgstr "Bạn không được phép chỉnh sửa tổ chức này." -#: judge/views/organization.py:1007 +#: judge/views/organization.py:1001 #, python-format msgid "Add blog for %s" msgstr "Thêm bài đăng cho %s" -#: judge/views/organization.py:1071 +#: judge/views/organization.py:1065 msgid "Not allowed to edit this blog" msgstr "Bạn không được phép chỉnh sửa bài đăng này." -#: judge/views/organization.py:1103 +#: judge/views/organization.py:1097 #, python-format msgid "Edit blog %s" msgstr "Chỉnh sửa %s" -#: judge/views/organization.py:1154 +#: judge/views/organization.py:1148 #, python-format msgid "Pending blogs in %s" msgstr "Bài đang đợi duyệt trong %s" @@ -3083,12 +3097,12 @@ msgstr "Quá nhiều lần nộp" msgid "You have exceeded the submission limit for this problem." msgstr "Bạn đã vượt quá số lần nộp cho bài này." -#: judge/views/problem.py:1176 judge/views/problem.py:1181 +#: judge/views/problem.py:1177 judge/views/problem.py:1182 #, python-format msgid "Submit to %(problem)s" msgstr "Nộp bài cho %(problem)s" -#: judge/views/problem.py:1207 +#: judge/views/problem.py:1208 msgid "Clone Problem" msgstr "Nhân bản bài tập" @@ -3288,8 +3302,8 @@ msgstr "Phải qua một kỳ thi" #: judge/views/submission.py:903 #, python-brace-format msgid "" -"{0}'s submissions for {2} in {4}" +"{0}'s submissions for {2} in {4}" msgstr "" "Các bài nộp của {0} cho {2} trong {4}" @@ -3417,6 +3431,147 @@ msgstr "Dữ liệu không hợp lệ: %s" msgid "Bad latitude or longitude" msgstr "Kinh độ / Vĩ độ không hợp lệ" +#: src/dmoj-wpadmin/test_project/apps/authors/models.py:9 +#, fuzzy +#| msgid "short name" +msgid "first name" +msgstr "tên ngắn" + +#: src/dmoj-wpadmin/test_project/apps/authors/models.py:10 +#, fuzzy +#| msgid "short name" +msgid "last name" +msgstr "tên ngắn" + +#: src/dmoj-wpadmin/test_project/apps/authors/models.py:11 +msgid "biography" +msgstr "tiểu sử" + +#: src/dmoj-wpadmin/test_project/apps/books/models.py:12 +#: src/dmoj-wpadmin/test_project/apps/cds/models.py:12 +#: src/dmoj-wpadmin/test_project/apps/dvds/models.py:12 +msgid "name" +msgstr "tên" + +#: src/dmoj-wpadmin/test_project/apps/books/models.py:19 +msgid "Category of Books" +msgstr "Thể loại sách" + +#: src/dmoj-wpadmin/test_project/apps/books/models.py:20 +msgid "Categories of Books" +msgstr "Thể loại sách" + +#: src/dmoj-wpadmin/test_project/apps/books/models.py:26 +#: src/dmoj-wpadmin/test_project/apps/cds/models.py:26 +#: src/dmoj-wpadmin/test_project/apps/dvds/models.py:26 +msgid "title" +msgstr "tiêu đề" + +#: src/dmoj-wpadmin/test_project/apps/books/models.py:29 +#: src/dmoj-wpadmin/test_project/apps/cds/models.py:29 +#: src/dmoj-wpadmin/test_project/apps/dvds/models.py:29 +msgid "author" +msgstr "tác giả" + +#: src/dmoj-wpadmin/test_project/apps/books/models.py:31 +msgid "publication date" +msgstr "ngày xuất bản" + +#: src/dmoj-wpadmin/test_project/apps/books/models.py:37 +msgid "Book" +msgstr "Sách" + +#: src/dmoj-wpadmin/test_project/apps/books/models.py:38 +#: src/dmoj-wpadmin/test_project/test_project/wp.py:136 +msgid "Books" +msgstr "Sách" + +#: src/dmoj-wpadmin/test_project/apps/cds/models.py:19 +msgid "Category of CDs" +msgstr "Thể loại CDs" + +#: src/dmoj-wpadmin/test_project/apps/cds/models.py:20 +msgid "Categories of CDs" +msgstr "Thể loại CDs" + +#: src/dmoj-wpadmin/test_project/apps/cds/models.py:36 +msgid "CD" +msgstr "" + +#: src/dmoj-wpadmin/test_project/apps/cds/models.py:37 +#: src/dmoj-wpadmin/test_project/test_project/wp.py:141 +msgid "CDs" +msgstr "" + +#: src/dmoj-wpadmin/test_project/apps/dvds/models.py:19 +msgid "Category of DVDs" +msgstr "Thể loại DVDs" + +#: src/dmoj-wpadmin/test_project/apps/dvds/models.py:20 +msgid "Categories of DVDs" +msgstr "Thể loại DVDs" + +#: src/dmoj-wpadmin/test_project/apps/dvds/models.py:36 +msgid "DVD" +msgstr "" + +#: src/dmoj-wpadmin/test_project/apps/dvds/models.py:37 +#: src/dmoj-wpadmin/test_project/test_project/wp.py:146 +msgid "DVDs" +msgstr "" + +#: src/dmoj-wpadmin/test_project/templates/admin/base_site.html:7 +msgid "Django administration" +msgstr "Quản trị viên Django" + +#: src/dmoj-wpadmin/test_project/test_project/forms.py:12 +#, python-format +msgid "" +"Please enter the correct %(username)s and password for an admin account. " +"Note that both fields may be case-sensitive." +msgstr "" +"Hãy nhập %(username)s và mật khẩu hợp lệ cho tài khoản quản trị. Chú ý cả " +"hai trường có phân biệt chữ Hoa-thường." + +#: src/dmoj-wpadmin/test_project/test_project/forms.py:32 +#, python-format +msgid "" +"Please enter the correct %(username)s and password for an user account. Note " +"that both fields may be case-sensitive." +msgstr "" +"Hãy nhập %(username)s và mật khẩu hợp lệ cho tài khoản thành viên. Chú ý cả " +"hai trường có phân biệt chữ Hoa-thường." + +#: src/dmoj-wpadmin/test_project/test_project/wp.py:27 +#: templates/stats/tab.html:5 +msgid "Site" +msgstr "Trang" + +#: src/dmoj-wpadmin/test_project/test_project/wp.py:38 +#: src/dmoj-wpadmin/test_project/test_project/wp.py:41 +#: src/dmoj-wpadmin/test_project/test_project/wp.py:130 +#: src/dmoj-wpadmin/test_project/test_project/wp.py:133 +msgid "Dashboard" +msgstr "Bảng điều khiển" + +#: src/dmoj-wpadmin/test_project/test_project/wp.py:48 +msgid "Applications" +msgstr "Ứng dụng" + +#: src/dmoj-wpadmin/test_project/test_project/wp.py:53 +#, fuzzy +#| msgid "administrators" +msgid "Administration" +msgstr "người quản lý" + +#: src/dmoj-wpadmin/test_project/test_project/wp.py:64 +msgid "Color theme" +msgstr "Chủ đề màu sắc" + +#: src/dmoj-wpadmin/test_project/test_project/wp.py:66 +msgid "Change color theme" +msgstr "Đổi chủ đề màu sắc" + #: templates/actionbar/list.html:15 msgid "Like" msgstr "Thích" @@ -3502,8 +3657,7 @@ msgid "Profile" msgstr "Trang cá nhân" #: templates/base.html:276 templates/chat/chat.html:21 -#: templates/comments/content-list.html:80 templates/comments/list.html:126 -#: templates/contest/contest-list-tabs.html:4 +#: templates/comments/list.html:125 templates/contest/contest-list-tabs.html:4 #: templates/contest/ranking-table.html:47 templates/internal/problem.html:57 #: templates/organization/org-left-sidebar.html:12 #: templates/problem/left-sidebar.html:6 @@ -3559,9 +3713,8 @@ msgstr "" msgid " posted on %(time)s" msgstr "đã đăng vào %(time)s" -#: templates/blog/blog.html:31 templates/comments/content-list.html:61 -#: templates/comments/content-list.html:75 templates/comments/list.html:105 -#: templates/comments/list.html:120 templates/contest/contest-tabs.html:35 +#: templates/blog/blog.html:31 templates/comments/list.html:104 +#: templates/comments/list.html:119 templates/contest/contest-tabs.html:35 #: templates/contest/list.html:124 templates/contest/tag-title.html:9 #: templates/flatpages/admin_link.html:3 templates/license.html:10 #: templates/problem/editorial.html:15 templates/problem/feed/problems.html:50 @@ -3699,68 +3852,6 @@ msgstr "Tắt thông báo" msgid "users are online" msgstr "người đang trực tuyến" -#: templates/comments/content-list.html:13 -#: templates/comments/content-list.html:14 -#: templates/comments/content-list.html:22 -#: templates/comments/content-list.html:23 templates/comments/list.html:55 -#: templates/comments/list.html:64 -msgid "Please login to vote" -msgstr "Đăng nhập để vote" - -#: templates/comments/content-list.html:43 templates/comments/list.html:86 -#, python-format -msgid "edit %(edits)s" -msgstr "chỉnh sửa %(edits)s" - -#: templates/comments/content-list.html:45 templates/comments/list.html:88 -#: templates/comments/media-js.html:96 -msgid "edited" -msgstr "đã chỉnh sửa" - -#: templates/comments/content-list.html:54 templates/comments/list.html:97 -#: templates/notification/list.html:14 -msgid "Link" -msgstr "Link" - -#: templates/comments/content-list.html:65 -#: templates/comments/content-list.html:71 templates/comments/list.html:110 -#: templates/comments/list.html:117 -msgid "Reply" -msgstr "Phản hồi" - -#: templates/comments/content-list.html:78 templates/comments/list.html:123 -msgid "Hide" -msgstr "Ẩn" - -#: templates/comments/content-list.html:92 -#, fuzzy, python-format -#| msgid "" -#| "This comment is hidden due to too much negative feedback. Click here to view it." -msgid "" -"This comment is hidden due to too much negative feedback. Click here to view it." -msgstr "" -"Bình luận bị ẩn vì nhiều phản hồi tiêu cực. Nhấp vào đây để mở." - -#: templates/comments/content-list.html:107 -msgid "replies" -msgstr "phản hồi" - -#: templates/comments/content-list.html:114 -msgid "reply" -msgstr "phản hồi" - -#: templates/comments/content-list.html:130 templates/comments/list.html:160 -msgid "comment more" -msgstr "bình luận nữa" - -#: templates/comments/content-list.html:137 templates/comments/list.html:168 -msgid "comments more" -msgstr "bình luận nữa" - #: templates/comments/list.html:6 msgid "Write comment" msgstr "Thêm bình luận" @@ -3777,20 +3868,45 @@ msgstr "Nội dung không hợp lệ." msgid "Post!" msgstr "Đăng!" -#: templates/comments/list.html:138 +#: templates/comments/list.html:54 templates/comments/list.html:63 +msgid "Please login to vote" +msgstr "Đăng nhập để vote" + +#: templates/comments/list.html:85 +#, python-format +msgid "edit %(edits)s" +msgstr "chỉnh sửa %(edits)s" + +#: templates/comments/list.html:87 templates/comments/media-js.html:96 +msgid "edited" +msgstr "đã chỉnh sửa" + +#: templates/comments/list.html:96 templates/notification/list.html:14 +msgid "Link" +msgstr "Link" + +#: templates/comments/list.html:109 templates/comments/list.html:116 +msgid "Reply" +msgstr "Trả lời" + +#: templates/comments/list.html:122 +msgid "Hide" +msgstr "Ẩn" + +#: templates/comments/list.html:137 #, python-format msgid "" -"This comment is hidden due to too much negative feedback. Click here to view it." +"This comment is hidden due to too much negative feedback. Click here to view it." msgstr "" "Bình luận bị ẩn vì nhiều phản hồi tiêu cực. Nhấp vào đây để mở." -#: templates/comments/list.html:177 +#: templates/comments/list.html:154 msgid "There are no comments at the moment." msgstr "Không có bình luận nào." -#: templates/comments/list.html:182 +#: templates/comments/list.html:159 msgid "Comments are disabled on this page." msgstr "Bình luận bị tắt trong trang này." @@ -3918,8 +4034,8 @@ msgstr "G:i T, j F, Y" #: templates/contest/contest-datetime.html:39 #, python-format msgid "" -"%(time_limit)s window between %(start_time)s and " -"%(end_time)s" +"%(time_limit)s window between %(start_time)s and " +"%(end_time)s" msgstr "" "Kéo dài %(time_limit)s từ %(start_time)s đến %(end_time)s" @@ -5141,10 +5257,6 @@ msgstr "Thống kê" msgid "AC Submissions by Language" msgstr "Thống kê AC theo ngôn ngữ" -#: templates/stats/tab.html:5 -msgid "Site" -msgstr "Trang" - #: templates/status/judge-status-table.html:4 msgid "Online" msgstr "Trực tuyến" @@ -5752,91 +5864,6 @@ msgstr "Thông tin" msgid "Check all" msgstr "Chọn tất cả" -#, fuzzy -#~| msgid "short name" -#~ msgid "first name" -#~ msgstr "tên ngắn" - -#, fuzzy -#~| msgid "short name" -#~ msgid "last name" -#~ msgstr "tên ngắn" - -#~ msgid "biography" -#~ msgstr "tiểu sử" - -#~ msgid "name" -#~ msgstr "tên" - -#~ msgid "Category of Books" -#~ msgstr "Thể loại sách" - -#~ msgid "Categories of Books" -#~ msgstr "Thể loại sách" - -#~ msgid "title" -#~ msgstr "tiêu đề" - -#~ msgid "author" -#~ msgstr "tác giả" - -#~ msgid "publication date" -#~ msgstr "ngày xuất bản" - -#~ msgid "Book" -#~ msgstr "Sách" - -#~ msgid "Books" -#~ msgstr "Sách" - -#~ msgid "Category of CDs" -#~ msgstr "Thể loại CDs" - -#~ msgid "Categories of CDs" -#~ msgstr "Thể loại CDs" - -#~ msgid "Category of DVDs" -#~ msgstr "Thể loại DVDs" - -#~ msgid "Categories of DVDs" -#~ msgstr "Thể loại DVDs" - -#~ msgid "Django administration" -#~ msgstr "Quản trị viên Django" - -#, python-format -#~ msgid "" -#~ "Please enter the correct %(username)s and password for an admin account. " -#~ "Note that both fields may be case-sensitive." -#~ msgstr "" -#~ "Hãy nhập %(username)s và mật khẩu hợp lệ cho tài khoản quản trị. Chú ý cả " -#~ "hai trường có phân biệt chữ Hoa-thường." - -#, python-format -#~ msgid "" -#~ "Please enter the correct %(username)s and password for an user account. " -#~ "Note that both fields may be case-sensitive." -#~ msgstr "" -#~ "Hãy nhập %(username)s và mật khẩu hợp lệ cho tài khoản thành viên. Chú ý " -#~ "cả hai trường có phân biệt chữ Hoa-thường." - -#~ msgid "Dashboard" -#~ msgstr "Bảng điều khiển" - -#~ msgid "Applications" -#~ msgstr "Ứng dụng" - -#, fuzzy -#~| msgid "administrators" -#~ msgid "Administration" -#~ msgstr "người quản lý" - -#~ msgid "Color theme" -#~ msgstr "Chủ đề màu sắc" - -#~ msgid "Change color theme" -#~ msgstr "Đổi chủ đề màu sắc" - #~ msgid "commented on {time}" #~ msgstr "bình luận vào {time}" diff --git a/locale/vi/LC_MESSAGES/djangojs.po b/locale/vi/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/vi/LC_MESSAGES/dmoj-user.po b/locale/vi/LC_MESSAGES/dmoj-user.po old mode 100755 new mode 100644 index c65744d..ffd36e9 --- a/locale/vi/LC_MESSAGES/dmoj-user.po +++ b/locale/vi/LC_MESSAGES/dmoj-user.po @@ -33,6 +33,9 @@ msgstr "Đề xuất bài tập" msgid "TanKhoa" msgstr "Tân Khoa" +msgid "Name" +msgstr "Đăng ký tên" + msgid "Report" msgstr "Báo cáo" @@ -342,9 +345,6 @@ msgstr "" msgid "ltt" msgstr "" -msgid "Luyện tập" -msgstr "" - msgid "manacher" msgstr "" @@ -593,6 +593,3 @@ msgstr "" msgid "z-function" msgstr "" - -#~ msgid "Name" -#~ msgstr "Đăng ký tên" diff --git a/locale/zh_Hans/LC_MESSAGES/django.po b/locale/zh_Hans/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/zh_Hans/LC_MESSAGES/djangojs.po b/locale/zh_Hans/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/locale/zh_Hant/LC_MESSAGES/django.po b/locale/zh_Hant/LC_MESSAGES/django.po old mode 100755 new mode 100644 diff --git a/locale/zh_Hant/LC_MESSAGES/djangojs.po b/locale/zh_Hant/LC_MESSAGES/djangojs.po old mode 100755 new mode 100644 diff --git a/logo.png b/logo.png old mode 100755 new mode 100644 diff --git a/manifest.json b/manifest.json old mode 100755 new mode 100644 diff --git a/requirements.txt b/requirements.txt old mode 100755 new mode 100644 diff --git a/resources/admin/css/pagedown.css b/resources/admin/css/pagedown.css old mode 100755 new mode 100644 diff --git a/resources/admin/css/select2bootstrap.css b/resources/admin/css/select2bootstrap.css old mode 100755 new mode 100644 diff --git a/resources/awards/bronze-medal.png b/resources/awards/bronze-medal.png old mode 100755 new mode 100644 diff --git a/resources/awards/gold-medal.png b/resources/awards/gold-medal.png old mode 100755 new mode 100644 diff --git a/resources/awards/medals.png b/resources/awards/medals.png old mode 100755 new mode 100644 diff --git a/resources/awards/silver-medal.png b/resources/awards/silver-medal.png old mode 100755 new mode 100644 diff --git a/resources/base.scss b/resources/base.scss old mode 100755 new mode 100644 diff --git a/resources/blank.gif b/resources/blank.gif old mode 100755 new mode 100644 diff --git a/resources/blog.scss b/resources/blog.scss old mode 100755 new mode 100644 diff --git a/resources/chatbox.scss b/resources/chatbox.scss old mode 100755 new mode 100644 diff --git a/resources/comments.scss b/resources/comments.scss old mode 100755 new mode 100644 index da828b4..9abca9e --- a/resources/comments.scss +++ b/resources/comments.scss @@ -126,28 +126,6 @@ a { margin: -50px 23px 10px -40px; padding-top: 50px; } - - .show_more_reply { - font-weight: bold; - display: flex; - margin: 16px 40px; - align-items: center; - - svg { - margin-right: 4px; - } - } - - .show_more_comment { - font-weight: bold; - display: flex; - margin: 16px -40px; - align-items: center; - - svg { - margin-right: 4px; - } - } } .no-comments-message { diff --git a/resources/common.js b/resources/common.js old mode 100755 new mode 100644 diff --git a/resources/content-description.scss b/resources/content-description.scss old mode 100755 new mode 100644 diff --git a/resources/contest.json b/resources/contest.json old mode 100755 new mode 100644 diff --git a/resources/contest.scss b/resources/contest.scss old mode 100755 new mode 100644 diff --git a/resources/darkmode-svg.css b/resources/darkmode-svg.css old mode 100755 new mode 100644 diff --git a/resources/darkmode.css b/resources/darkmode.css old mode 100755 new mode 100644 diff --git a/resources/django_select2.js b/resources/django_select2.js old mode 100755 new mode 100644 diff --git a/resources/dmmd-preview.css b/resources/dmmd-preview.css old mode 100755 new mode 100644 diff --git a/resources/dmmd-preview.js b/resources/dmmd-preview.js old mode 100755 new mode 100644 diff --git a/resources/dmmd-preview.scss b/resources/dmmd-preview.scss old mode 100755 new mode 100644 diff --git a/resources/event.js b/resources/event.js old mode 100755 new mode 100644 diff --git a/resources/favicon.ico b/resources/favicon.ico old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/LICENSE b/resources/fine-uploader/LICENSE old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/continue.gif b/resources/fine-uploader/continue.gif old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/dnd.js b/resources/fine-uploader/dnd.js old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/dnd.js.map b/resources/fine-uploader/dnd.js.map old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/dnd.min.js b/resources/fine-uploader/dnd.min.js old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/dnd.min.js.map b/resources/fine-uploader/dnd.min.js.map old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/edit.gif b/resources/fine-uploader/edit.gif old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/fine-uploader-gallery.css b/resources/fine-uploader/fine-uploader-gallery.css old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/fine-uploader-gallery.min.css b/resources/fine-uploader/fine-uploader-gallery.min.css old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/fine-uploader-gallery.min.css.map b/resources/fine-uploader/fine-uploader-gallery.min.css.map old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/fine-uploader-new.css b/resources/fine-uploader/fine-uploader-new.css old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/fine-uploader-new.min.css b/resources/fine-uploader/fine-uploader-new.min.css old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/fine-uploader-new.min.css.map b/resources/fine-uploader/fine-uploader-new.min.css.map old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/fine-uploader.core.js b/resources/fine-uploader/fine-uploader.core.js old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/fine-uploader.core.js.map b/resources/fine-uploader/fine-uploader.core.js.map old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/fine-uploader.core.min.js b/resources/fine-uploader/fine-uploader.core.min.js old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/fine-uploader.core.min.js.map b/resources/fine-uploader/fine-uploader.core.min.js.map old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/fine-uploader.css b/resources/fine-uploader/fine-uploader.css old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/fine-uploader.js b/resources/fine-uploader/fine-uploader.js old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/fine-uploader.js.map b/resources/fine-uploader/fine-uploader.js.map old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/fine-uploader.min.css b/resources/fine-uploader/fine-uploader.min.css old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/fine-uploader.min.css.map b/resources/fine-uploader/fine-uploader.min.css.map old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/fine-uploader.min.js b/resources/fine-uploader/fine-uploader.min.js old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/fine-uploader.min.js.map b/resources/fine-uploader/fine-uploader.min.js.map old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/jquery.fine-uploader.js b/resources/fine-uploader/jquery.fine-uploader.js old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/jquery.fine-uploader.js.map b/resources/fine-uploader/jquery.fine-uploader.js.map old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/jquery.fine-uploader.min.js b/resources/fine-uploader/jquery.fine-uploader.min.js old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/jquery.fine-uploader.min.js.map b/resources/fine-uploader/jquery.fine-uploader.min.js.map old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/loading.gif b/resources/fine-uploader/loading.gif old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/pause.gif b/resources/fine-uploader/pause.gif old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/processing.gif b/resources/fine-uploader/processing.gif old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/retry.gif b/resources/fine-uploader/retry.gif old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/templates/default.html b/resources/fine-uploader/templates/default.html old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/templates/gallery.html b/resources/fine-uploader/templates/gallery.html old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/templates/simple-thumbnails.html b/resources/fine-uploader/templates/simple-thumbnails.html old mode 100755 new mode 100644 diff --git a/resources/fine-uploader/trash.gif b/resources/fine-uploader/trash.gif old mode 100755 new mode 100644 diff --git a/resources/icofont.min.css b/resources/icofont.min.css old mode 100755 new mode 100644 diff --git a/resources/icofont/demo.html b/resources/icofont/demo.html old mode 100755 new mode 100644 diff --git a/resources/icofont/fonts/icofont.eot b/resources/icofont/fonts/icofont.eot old mode 100755 new mode 100644 diff --git a/resources/icofont/fonts/icofont.svg b/resources/icofont/fonts/icofont.svg old mode 100755 new mode 100644 diff --git a/resources/icofont/fonts/icofont.ttf b/resources/icofont/fonts/icofont.ttf old mode 100755 new mode 100644 diff --git a/resources/icofont/fonts/icofont.woff b/resources/icofont/fonts/icofont.woff old mode 100755 new mode 100644 diff --git a/resources/icofont/fonts/icofont.woff2 b/resources/icofont/fonts/icofont.woff2 old mode 100755 new mode 100644 diff --git a/resources/icofont/icofont.css b/resources/icofont/icofont.css old mode 100755 new mode 100644 diff --git a/resources/icofont/icofont.min.css b/resources/icofont/icofont.min.css old mode 100755 new mode 100644 diff --git a/resources/icons/android-chrome-192x192.png b/resources/icons/android-chrome-192x192.png old mode 100755 new mode 100644 diff --git a/resources/icons/apple-touch-icon.png b/resources/icons/apple-touch-icon.png old mode 100755 new mode 100644 diff --git a/resources/icons/browserconfig.xml b/resources/icons/browserconfig.xml old mode 100755 new mode 100644 diff --git a/resources/icons/favicon-16x16.png b/resources/icons/favicon-16x16.png old mode 100755 new mode 100644 diff --git a/resources/icons/favicon-32x32.png b/resources/icons/favicon-32x32.png old mode 100755 new mode 100644 diff --git a/resources/icons/favicon.ico b/resources/icons/favicon.ico old mode 100755 new mode 100644 diff --git a/resources/icons/icon.png b/resources/icons/icon.png old mode 100755 new mode 100644 diff --git a/resources/icons/logo_original.png b/resources/icons/logo_original.png old mode 100755 new mode 100644 diff --git a/resources/icons/manifest.json b/resources/icons/manifest.json old mode 100755 new mode 100644 diff --git a/resources/icons/old/android-chrome-144x144.png b/resources/icons/old/android-chrome-144x144.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/android-chrome-192x192.png b/resources/icons/old/android-chrome-192x192.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/android-chrome-36x36.png b/resources/icons/old/android-chrome-36x36.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/android-chrome-48x48.png b/resources/icons/old/android-chrome-48x48.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/android-chrome-72x72.png b/resources/icons/old/android-chrome-72x72.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/android-chrome-96x96.png b/resources/icons/old/android-chrome-96x96.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-114x114-precomposed.png b/resources/icons/old/apple-touch-icon-114x114-precomposed.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-114x114.png b/resources/icons/old/apple-touch-icon-114x114.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-120x120-precomposed.png b/resources/icons/old/apple-touch-icon-120x120-precomposed.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-120x120.png b/resources/icons/old/apple-touch-icon-120x120.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-144x144-precomposed.png b/resources/icons/old/apple-touch-icon-144x144-precomposed.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-144x144.png b/resources/icons/old/apple-touch-icon-144x144.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-152x152-precomposed.png b/resources/icons/old/apple-touch-icon-152x152-precomposed.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-152x152.png b/resources/icons/old/apple-touch-icon-152x152.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-180x180-precomposed.png b/resources/icons/old/apple-touch-icon-180x180-precomposed.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-180x180.png b/resources/icons/old/apple-touch-icon-180x180.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-57x57-precomposed.png b/resources/icons/old/apple-touch-icon-57x57-precomposed.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-57x57.png b/resources/icons/old/apple-touch-icon-57x57.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-60x60-precomposed.png b/resources/icons/old/apple-touch-icon-60x60-precomposed.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-60x60.png b/resources/icons/old/apple-touch-icon-60x60.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-72x72-precomposed.png b/resources/icons/old/apple-touch-icon-72x72-precomposed.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-72x72.png b/resources/icons/old/apple-touch-icon-72x72.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-76x76-precomposed.png b/resources/icons/old/apple-touch-icon-76x76-precomposed.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-76x76.png b/resources/icons/old/apple-touch-icon-76x76.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon-precomposed.png b/resources/icons/old/apple-touch-icon-precomposed.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/apple-touch-icon.png b/resources/icons/old/apple-touch-icon.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/browserconfig.xml b/resources/icons/old/browserconfig.xml old mode 100755 new mode 100644 diff --git a/resources/icons/old/favicon-16x16.png b/resources/icons/old/favicon-16x16.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/favicon-32x32.png b/resources/icons/old/favicon-32x32.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/favicon.ico b/resources/icons/old/favicon.ico old mode 100755 new mode 100644 diff --git a/resources/icons/old/logo_old.png b/resources/icons/old/logo_old.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/mstile-144x144.png b/resources/icons/old/mstile-144x144.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/mstile-150x150.png b/resources/icons/old/mstile-150x150.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/mstile-310x150.png b/resources/icons/old/mstile-310x150.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/mstile-310x310.png b/resources/icons/old/mstile-310x310.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/mstile-70x70.png b/resources/icons/old/mstile-70x70.png old mode 100755 new mode 100644 diff --git a/resources/icons/old/safari-pinned-tab.svg b/resources/icons/old/safari-pinned-tab.svg old mode 100755 new mode 100644 diff --git a/resources/icons/reload.png b/resources/icons/reload.png old mode 100755 new mode 100644 diff --git a/resources/icons/site.webmanifest b/resources/icons/site.webmanifest old mode 100755 new mode 100644 diff --git a/resources/jquery-ui.min.js b/resources/jquery-ui.min.js old mode 100755 new mode 100644 diff --git a/resources/jszip/jszip.min.js b/resources/jszip/jszip.min.js old mode 100755 new mode 100644 diff --git a/resources/libs/README.md b/resources/libs/README.md old mode 100755 new mode 100644 diff --git a/resources/libs/chart.js/Chart.js b/resources/libs/chart.js/Chart.js old mode 100755 new mode 100644 diff --git a/resources/libs/clipboard/clipboard.js b/resources/libs/clipboard/clipboard.js old mode 100755 new mode 100644 diff --git a/resources/libs/clipboard/tooltip.css b/resources/libs/clipboard/tooltip.css old mode 100755 new mode 100644 diff --git a/resources/libs/clipboard/tooltip.js b/resources/libs/clipboard/tooltip.js old mode 100755 new mode 100644 diff --git a/resources/libs/featherlight/featherlight.min.css b/resources/libs/featherlight/featherlight.min.css old mode 100755 new mode 100644 diff --git a/resources/libs/featherlight/featherlight.min.js b/resources/libs/featherlight/featherlight.min.js old mode 100755 new mode 100644 diff --git a/resources/libs/fontawesome/font-awesome.css b/resources/libs/fontawesome/font-awesome.css old mode 100755 new mode 100644 diff --git a/resources/libs/fontawesome/fontawesome-webfont.eot b/resources/libs/fontawesome/fontawesome-webfont.eot old mode 100755 new mode 100644 diff --git a/resources/libs/fontawesome/fontawesome-webfont.svg b/resources/libs/fontawesome/fontawesome-webfont.svg old mode 100755 new mode 100644 diff --git a/resources/libs/fontawesome/fontawesome-webfont.ttf b/resources/libs/fontawesome/fontawesome-webfont.ttf old mode 100755 new mode 100644 diff --git a/resources/libs/fontawesome/fontawesome-webfont.woff b/resources/libs/fontawesome/fontawesome-webfont.woff old mode 100755 new mode 100644 diff --git a/resources/libs/fontawesome/fontawesome-webfont.woff2 b/resources/libs/fontawesome/fontawesome-webfont.woff2 old mode 100755 new mode 100644 diff --git a/resources/libs/jquery-3.4.1.min.js b/resources/libs/jquery-3.4.1.min.js old mode 100755 new mode 100644 diff --git a/resources/libs/jquery-cookie.js b/resources/libs/jquery-cookie.js old mode 100755 new mode 100644 diff --git a/resources/libs/jquery-sortable.js b/resources/libs/jquery-sortable.js old mode 100755 new mode 100644 diff --git a/resources/libs/jquery-taphold.js b/resources/libs/jquery-taphold.js old mode 100755 new mode 100644 diff --git a/resources/libs/jquery.unveil.js b/resources/libs/jquery.unveil.js old mode 100755 new mode 100644 diff --git a/resources/libs/latinmodernmath/latinmodern-math.eot b/resources/libs/latinmodernmath/latinmodern-math.eot old mode 100755 new mode 100644 diff --git a/resources/libs/latinmodernmath/latinmodern-math.ttf b/resources/libs/latinmodernmath/latinmodern-math.ttf old mode 100755 new mode 100644 diff --git a/resources/libs/latinmodernmath/latinmodern-math.woff b/resources/libs/latinmodernmath/latinmodern-math.woff old mode 100755 new mode 100644 diff --git a/resources/libs/latinmodernmath/latinmodern-math.woff2 b/resources/libs/latinmodernmath/latinmodern-math.woff2 old mode 100755 new mode 100644 diff --git a/resources/libs/moment.js b/resources/libs/moment.js old mode 100755 new mode 100644 diff --git a/resources/libs/nouislider.min.css b/resources/libs/nouislider.min.css old mode 100755 new mode 100644 diff --git a/resources/libs/nouislider.min.js b/resources/libs/nouislider.min.js old mode 100755 new mode 100644 diff --git a/resources/libs/raven.min.js b/resources/libs/raven.min.js old mode 100755 new mode 100644 diff --git a/resources/libs/select2/select2.css b/resources/libs/select2/select2.css old mode 100755 new mode 100644 diff --git a/resources/libs/select2/select2.js b/resources/libs/select2/select2.js old mode 100755 new mode 100644 diff --git a/resources/libs/tablesorter.js b/resources/libs/tablesorter.js old mode 100755 new mode 100644 diff --git a/resources/libs/timezone-map/timezone-map.css b/resources/libs/timezone-map/timezone-map.css old mode 100755 new mode 100644 diff --git a/resources/libs/timezone-map/timezone-picker.js b/resources/libs/timezone-map/timezone-picker.js old mode 100755 new mode 100644 diff --git a/resources/libs/timezone-map/timezone-picker.json b/resources/libs/timezone-map/timezone-picker.json old mode 100755 new mode 100644 diff --git a/resources/loading.gif b/resources/loading.gif old mode 100755 new mode 100644 diff --git a/resources/markdown.css b/resources/markdown.css old mode 100755 new mode 100644 diff --git a/resources/math.scss b/resources/math.scss old mode 100755 new mode 100644 diff --git a/resources/mathjax3_config.js b/resources/mathjax3_config.js old mode 100755 new mode 100644 diff --git a/resources/misc.scss b/resources/misc.scss old mode 100755 new mode 100644 diff --git a/resources/organization.scss b/resources/organization.scss old mode 100755 new mode 100644 diff --git a/resources/pagedown/LICENSE.txt b/resources/pagedown/LICENSE.txt old mode 100755 new mode 100644 diff --git a/resources/pagedown/Markdown.Converter.js b/resources/pagedown/Markdown.Converter.js old mode 100755 new mode 100644 diff --git a/resources/pagedown/Markdown.Editor.js b/resources/pagedown/Markdown.Editor.js old mode 100755 new mode 100644 diff --git a/resources/pagedown/Markdown.Sanitizer.js b/resources/pagedown/Markdown.Sanitizer.js old mode 100755 new mode 100644 diff --git a/resources/pagedown/README.md b/resources/pagedown/README.md old mode 100755 new mode 100644 diff --git a/resources/pagedown/demo/browser/demo.css b/resources/pagedown/demo/browser/demo.css old mode 100755 new mode 100644 diff --git a/resources/pagedown/demo/browser/demo.html b/resources/pagedown/demo/browser/demo.html old mode 100755 new mode 100644 diff --git a/resources/pagedown/demo/node/demo.js b/resources/pagedown/demo/node/demo.js old mode 100755 new mode 100644 diff --git a/resources/pagedown/local/Markdown.local.fr.js b/resources/pagedown/local/Markdown.local.fr.js old mode 100755 new mode 100644 diff --git a/resources/pagedown/node-pagedown.js b/resources/pagedown/node-pagedown.js old mode 100755 new mode 100644 diff --git a/resources/pagedown/package.json b/resources/pagedown/package.json old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/admonition.svg b/resources/pagedown/resources/admonition.svg old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/blockquote.svg b/resources/pagedown/resources/blockquote.svg old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/bold.svg b/resources/pagedown/resources/bold.svg old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/code.svg b/resources/pagedown/resources/code.svg old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/heading.svg b/resources/pagedown/resources/heading.svg old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/hr.svg b/resources/pagedown/resources/hr.svg old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/image.svg b/resources/pagedown/resources/image.svg old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/italic.svg b/resources/pagedown/resources/italic.svg old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/latex-display.svg b/resources/pagedown/resources/latex-display.svg old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/latex.svg b/resources/pagedown/resources/latex.svg old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/link.svg b/resources/pagedown/resources/link.svg old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/olist.svg b/resources/pagedown/resources/olist.svg old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/redo.svg b/resources/pagedown/resources/redo.svg old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/spoiler.svg b/resources/pagedown/resources/spoiler.svg old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/ulist.svg b/resources/pagedown/resources/ulist.svg old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/undo.svg b/resources/pagedown/resources/undo.svg old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/user.svg b/resources/pagedown/resources/user.svg old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/wmd-buttons.pdn b/resources/pagedown/resources/wmd-buttons.pdn old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/wmd-buttons.png b/resources/pagedown/resources/wmd-buttons.png old mode 100755 new mode 100644 diff --git a/resources/pagedown/resources/wmd-buttons.psd b/resources/pagedown/resources/wmd-buttons.psd old mode 100755 new mode 100644 diff --git a/resources/pagedown/wmd-buttons.png b/resources/pagedown/wmd-buttons.png old mode 100755 new mode 100644 diff --git a/resources/pagedown_math.js b/resources/pagedown_math.js old mode 100755 new mode 100644 diff --git a/resources/pagedown_widget.css b/resources/pagedown_widget.css old mode 100755 new mode 100644 diff --git a/resources/pagedown_widget.scss b/resources/pagedown_widget.scss old mode 100755 new mode 100644 diff --git a/resources/problem.scss b/resources/problem.scss old mode 100755 new mode 100644 diff --git a/resources/problem_edit.css b/resources/problem_edit.css old mode 100755 new mode 100644 diff --git a/resources/pygment-github.css b/resources/pygment-github.css old mode 100755 new mode 100644 diff --git a/resources/ranks.scss b/resources/ranks.scss old mode 100755 new mode 100644 diff --git a/resources/resolver.css b/resources/resolver.css old mode 100755 new mode 100644 diff --git a/resources/resolver.js b/resources/resolver.js old mode 100755 new mode 100644 diff --git a/resources/site.webmanifest b/resources/site.webmanifest old mode 100755 new mode 100644 diff --git a/resources/status.scss b/resources/status.scss old mode 100755 new mode 100644 diff --git a/resources/style.scss b/resources/style.scss old mode 100755 new mode 100644 diff --git a/resources/submission.scss b/resources/submission.scss old mode 100755 new mode 100644 diff --git a/resources/table.scss b/resources/table.scss old mode 100755 new mode 100644 diff --git a/resources/task_status.css b/resources/task_status.css old mode 100755 new mode 100644 diff --git a/resources/ticket.scss b/resources/ticket.scss old mode 100755 new mode 100644 diff --git a/resources/unselectable.htc b/resources/unselectable.htc old mode 100755 new mode 100644 diff --git a/resources/users.scss b/resources/users.scss old mode 100755 new mode 100644 diff --git a/resources/vars.scss b/resources/vars.scss old mode 100755 new mode 100644 diff --git a/resources/widgets.scss b/resources/widgets.scss old mode 100755 new mode 100644 diff --git a/resources/wpadmin/css/wpadmin.site.css b/resources/wpadmin/css/wpadmin.site.css old mode 100755 new mode 100644 diff --git a/robots.txt b/robots.txt old mode 100755 new mode 100644 diff --git a/templates/about/about.html b/templates/about/about.html old mode 100755 new mode 100644 diff --git a/templates/about/custom-checker-sample.html b/templates/about/custom-checker-sample.html old mode 100755 new mode 100644 diff --git a/templates/actionbar/list.html b/templates/actionbar/list.html old mode 100755 new mode 100644 index bbed0bc..0bad8e1 --- a/templates/actionbar/list.html +++ b/templates/actionbar/list.html @@ -29,7 +29,7 @@ {% if comment_count %} - ({{ comment_count }}) + ({{comment_count}}) {% endif %} diff --git a/templates/actionbar/media-js.html b/templates/actionbar/media-js.html old mode 100755 new mode 100644 diff --git a/templates/admin/auth/user/change_form.html b/templates/admin/auth/user/change_form.html old mode 100755 new mode 100644 diff --git a/templates/admin/judge/contest/change_form.html b/templates/admin/judge/contest/change_form.html old mode 100755 new mode 100644 diff --git a/templates/admin/judge/contest/change_list.html b/templates/admin/judge/contest/change_list.html old mode 100755 new mode 100644 diff --git a/templates/admin/judge/judge/change_form.html b/templates/admin/judge/judge/change_form.html old mode 100755 new mode 100644 diff --git a/templates/admin/judge/problem/change_form.html b/templates/admin/judge/problem/change_form.html old mode 100755 new mode 100644 diff --git a/templates/admin/judge/profile/change_form.html b/templates/admin/judge/profile/change_form.html old mode 100755 new mode 100644 diff --git a/templates/admin/judge/submission/change_form.html b/templates/admin/judge/submission/change_form.html old mode 100755 new mode 100644 diff --git a/templates/base.html b/templates/base.html old mode 100755 new mode 100644 diff --git a/templates/blog/blog.html b/templates/blog/blog.html old mode 100755 new mode 100644 diff --git a/templates/blog/content.html b/templates/blog/content.html old mode 100755 new mode 100644 diff --git a/templates/blog/dashboard.html b/templates/blog/dashboard.html old mode 100755 new mode 100644 diff --git a/templates/blog/list.html b/templates/blog/list.html old mode 100755 new mode 100644 diff --git a/templates/blog/media-css.html b/templates/blog/media-css.html old mode 100755 new mode 100644 diff --git a/templates/blog/preview.html b/templates/blog/preview.html old mode 100755 new mode 100644 diff --git a/templates/chat/chat.html b/templates/chat/chat.html old mode 100755 new mode 100644 diff --git a/templates/chat/chat_css.html b/templates/chat/chat_css.html old mode 100755 new mode 100644 diff --git a/templates/chat/message.html b/templates/chat/message.html old mode 100755 new mode 100644 diff --git a/templates/chat/message_list.html b/templates/chat/message_list.html old mode 100755 new mode 100644 diff --git a/templates/chat/online_status.html b/templates/chat/online_status.html old mode 100755 new mode 100644 diff --git a/templates/chat/user_online_status.html b/templates/chat/user_online_status.html old mode 100755 new mode 100644 diff --git a/templates/comments/content-list.html b/templates/comments/content-list.html deleted file mode 100755 index 0c3408d..0000000 --- a/templates/comments/content-list.html +++ /dev/null @@ -1,139 +0,0 @@ -{% set logged_in = request.user.is_authenticated %} -{% set profile = request.profile if logged_in else None %} -{% for node in mptt_tree(comment_list) recursive %} -
  • -
    -
    -
    - {% if logged_in %} - - {% else %} - - {% endif %} -
    -
    {{ node.score }}
    - {% if logged_in %} - - {% else %} - - {% endif %} -
    -
    -
    -
    - {% with author=node.author, user=node.author.user %} - - - - {% endwith %} - {{ link_user(node.author) }},  - {{ relative_time(node.time, abs=_('{time}'), rel=_('{time}')) }} - - - {% if node.revisions > 1 %} - - - - {% if node.revisions > 2 %} - {% trans edits=node.revisions - 1 %}edit {{ edits }}{% endtrans %} - {% else %} - {{ _('edited') }} - {% endif %} - - - - {% else %} - - {% endif %} - - - - {% if logged_in and not comment_lock %} - {% set can_edit = node.author.id == profile.id and not profile.mute %} - {% if can_edit %} - - - - {% else %} - - - - {% endif %} - {% if perms.judge.change_comment %} - {% if can_edit %} - - {% else %} - - {% endif %} - - - {% endif %} - {% endif %} - -
    -
    - - {% if node.score <= vote_hide_threshold %}
    -

    - {% trans id=node.id %}This comment is hidden due to too much negative feedback. Click here to view it.{% endtrans %} -

    -
    - {% endif %} -
    -
    -
    - - {% if node.count_replies > 1 %} - - - - - - {{ node.count_replies }} {{ _('replies') }} - {% elif node.count_replies %} - - - - - - {{ node.count_replies }} {{ _('reply') }} - {% endif %} -
  • - -
    -{% endfor %} - - - -{% set comment_more = comment_count - offset %} -{% if comment_more == 1 %} - - - - - - {{ comment_count - offset }} {{ _('comment more') }} -{% elif comment_more > 1 %} - - - - - - {{ comment_count - offset }} {{ _('comments more') }} -{% endif %} - diff --git a/templates/comments/content.html b/templates/comments/content.html old mode 100755 new mode 100644 diff --git a/templates/comments/edit-ajax.html b/templates/comments/edit-ajax.html old mode 100755 new mode 100644 diff --git a/templates/comments/edit.html b/templates/comments/edit.html old mode 100755 new mode 100644 diff --git a/templates/comments/feed.html b/templates/comments/feed.html old mode 100755 new mode 100644 diff --git a/templates/comments/list.html b/templates/comments/list.html old mode 100755 new mode 100644 index 9977eb5..6adf903 --- a/templates/comments/list.html +++ b/templates/comments/list.html @@ -36,15 +36,14 @@ {% endif %} {% endif %} - {% if has_comments or comment_all_list %} -
      + {% if has_comments %} +
        {% set logged_in = request.user.is_authenticated %} {% set profile = request.profile if logged_in else None %} - {% if comment_all_list %} - {% for node in mptt_tree(comment_all_list) recursive %} + {% for node in mptt_tree(comment_list) recursive %}
      • + data-max-revision="{{ node.revisions - 1 }}" + data-revision-ajax="{{ url('comment_revision_ajax', node.id) }}" class="comment">
        @@ -150,28 +149,6 @@ {% endif %} {% endwith %} {% endfor %} - {% set comment_more = comment_count - offset %} - {% if comment_more == 1 %} - - - - - - {{ comment_count - offset }} {{ _('comment more') }} - - {% elif comment_more > 1 %} - - - - - - {{ comment_count - offset }} {{ _('comments more') }} - - {% endif %} - {% else %} - {% include "comments/content-list.html" %} - {% endif %} -
      {% elif not comment_lock %}

      {{ _('There are no comments at the moment.') }}

      diff --git a/templates/comments/math.html b/templates/comments/math.html old mode 100755 new mode 100644 diff --git a/templates/comments/media-css.html b/templates/comments/media-css.html old mode 100755 new mode 100644 diff --git a/templates/comments/media-js.html b/templates/comments/media-js.html old mode 100755 new mode 100644 index 131d040..b1131d5 --- a/templates/comments/media-js.html +++ b/templates/comments/media-js.html @@ -119,77 +119,6 @@ } }); } - const queryString = window.location.search; - const urlParams = new URLSearchParams(queryString); - const comment_remove = urlParams.get('comment-id'); - console.log(comment_remove); - - window.comment_get_replies = function (id, parrent_none) { - var $comment_show_btn = $("#comment-" + id + " .show_more_reply"); - $comment_show_btn.hide(); - var $comment = $("#comment-" + id + "-children"); - $comment.append("

      Loading...

      "); - ajax_get_reply('{{ url('comment_get_replies') }}', id, parrent_none); - } - - function ajax_get_reply(url, id, parrent_none) { - return $.ajax({ - url: url, - type: 'GET', - data: { - id: id, - parrent_none: parrent_none, - }, - success: function(data) { - var $comment_loading = $("#comment-" + id + "-children .loading"); - $comment_loading.hide(); - var $comment = $("#comment-" + id + "-children"); - $comment.append(data); - } - }) - } - - window.comment_show_more = function (id, parrent_none, offset, comment_remove) { - console.log(parrent_none) - if (parrent_none == 1) { - var $comment_show_btn = $("#comment-0" + " .show_more_comment"); - $comment_show_btn.hide(); - var $comment = $("#comment-0"); - $comment.append("

      Loading...

      "); - } else { - var $comment_show_btn = $("#comment-" + id + "-children" + " .show_more_comment"); - $comment_show_btn.hide(); - var $comment = $("#comment-" + id + "-children"); - $comment.append("

      Loading...

      "); - } - ajax_comment_show_more('{{ url('comment_show_more') }}', id, parrent_none, offset, comment_remove); - } - - function ajax_comment_show_more(url, id, parrent_none, offset, comment_remove) { - return $.ajax({ - url: url, - type: 'GET', - data: { - id: id, - parrent_none: parrent_none, - offset: offset, - comment_remove: comment_remove, - }, - success: function(data) { - if (parrent_none == 1) { - var $comment_loading = $("#comment-0" + " .loading"); - $comment_loading.hide(); - var $comment = $("#comment-0"); - $comment.append(data); - } else { - var $comment_loading = $("#comment-" + id + "-children .loading"); - $comment_loading.hide(); - var $comment = $("#comment-" + id + "-children"); - $comment.append(data); - } - } - }) - } var get_$votes = function (id) { var $comment = $('#comment-' + id); diff --git a/templates/comments/preview.html b/templates/comments/preview.html old mode 100755 new mode 100644 diff --git a/templates/comments/revision-ajax.html b/templates/comments/revision-ajax.html old mode 100755 new mode 100644 diff --git a/templates/comments/votes.html b/templates/comments/votes.html old mode 100755 new mode 100644 diff --git a/templates/common-content.html b/templates/common-content.html old mode 100755 new mode 100644 diff --git a/templates/contest/access_code.html b/templates/contest/access_code.html old mode 100755 new mode 100644 diff --git a/templates/contest/calendar.html b/templates/contest/calendar.html old mode 100755 new mode 100644 diff --git a/templates/contest/clarification.html b/templates/contest/clarification.html old mode 100755 new mode 100644 diff --git a/templates/contest/clone.html b/templates/contest/clone.html old mode 100755 new mode 100644 diff --git a/templates/contest/contest-datetime.html b/templates/contest/contest-datetime.html old mode 100755 new mode 100644 diff --git a/templates/contest/contest-list-tabs.html b/templates/contest/contest-list-tabs.html old mode 100755 new mode 100644 diff --git a/templates/contest/contest-tabs.html b/templates/contest/contest-tabs.html old mode 100755 new mode 100644 diff --git a/templates/contest/contest.html b/templates/contest/contest.html old mode 100755 new mode 100644 diff --git a/templates/contest/list.html b/templates/contest/list.html old mode 100755 new mode 100644 diff --git a/templates/contest/media-js.html b/templates/contest/media-js.html old mode 100755 new mode 100644 diff --git a/templates/contest/moss.html b/templates/contest/moss.html old mode 100755 new mode 100644 diff --git a/templates/contest/preview.html b/templates/contest/preview.html old mode 100755 new mode 100644 diff --git a/templates/contest/private.html b/templates/contest/private.html old mode 100755 new mode 100644 diff --git a/templates/contest/ranking-css.html b/templates/contest/ranking-css.html old mode 100755 new mode 100644 diff --git a/templates/contest/ranking-table.html b/templates/contest/ranking-table.html old mode 100755 new mode 100644 diff --git a/templates/contest/ranking.html b/templates/contest/ranking.html old mode 100755 new mode 100644 diff --git a/templates/contest/stats.html b/templates/contest/stats.html old mode 100755 new mode 100644 diff --git a/templates/contest/tag-ajax.html b/templates/contest/tag-ajax.html old mode 100755 new mode 100644 diff --git a/templates/contest/tag-title.html b/templates/contest/tag-title.html old mode 100755 new mode 100644 diff --git a/templates/contest/tag.html b/templates/contest/tag.html old mode 100755 new mode 100644 diff --git a/templates/contests-countdown.html b/templates/contests-countdown.html old mode 100755 new mode 100644 diff --git a/templates/course/base.html b/templates/course/base.html old mode 100755 new mode 100644 diff --git a/templates/course/list.html b/templates/course/list.html old mode 100755 new mode 100644 diff --git a/templates/error.html b/templates/error.html old mode 100755 new mode 100644 diff --git a/templates/extra_js.html b/templates/extra_js.html old mode 100755 new mode 100644 diff --git a/templates/feed/feed_js.html b/templates/feed/feed_js.html old mode 100755 new mode 100644 diff --git a/templates/feed/has_next.html b/templates/feed/has_next.html old mode 100755 new mode 100644 diff --git a/templates/fine_uploader/script.html b/templates/fine_uploader/script.html old mode 100755 new mode 100644 diff --git a/templates/flatpages/admin_link.html b/templates/flatpages/admin_link.html old mode 100755 new mode 100644 diff --git a/templates/flatpages/default.html b/templates/flatpages/default.html old mode 100755 new mode 100644 diff --git a/templates/flatpages/markdown.html b/templates/flatpages/markdown.html old mode 100755 new mode 100644 diff --git a/templates/flatpages/markdown_math.html b/templates/flatpages/markdown_math.html old mode 100755 new mode 100644 diff --git a/templates/generic-message.html b/templates/generic-message.html old mode 100755 new mode 100644 diff --git a/templates/home.html b/templates/home.html old mode 100755 new mode 100644 diff --git a/templates/internal/left-sidebar.html b/templates/internal/left-sidebar.html old mode 100755 new mode 100644 diff --git a/templates/internal/problem.html b/templates/internal/problem.html old mode 100755 new mode 100644 diff --git a/templates/internal/request_time.html b/templates/internal/request_time.html old mode 100755 new mode 100644 diff --git a/templates/internal/request_time_detail.html b/templates/internal/request_time_detail.html old mode 100755 new mode 100644 diff --git a/templates/license-preview.html b/templates/license-preview.html old mode 100755 new mode 100644 diff --git a/templates/license.html b/templates/license.html old mode 100755 new mode 100644 diff --git a/templates/list-pages.html b/templates/list-pages.html old mode 100755 new mode 100644 diff --git a/templates/loading-page.html b/templates/loading-page.html old mode 100755 new mode 100644 diff --git a/templates/mathjax-load.html b/templates/mathjax-load.html old mode 100755 new mode 100644 diff --git a/templates/messages.html b/templates/messages.html old mode 100755 new mode 100644 diff --git a/templates/notification/list.html b/templates/notification/list.html old mode 100755 new mode 100644 diff --git a/templates/organization/add-member.html b/templates/organization/add-member.html old mode 100755 new mode 100644 diff --git a/templates/organization/add.html b/templates/organization/add.html old mode 100755 new mode 100644 diff --git a/templates/organization/blog/add.html b/templates/organization/blog/add.html old mode 100755 new mode 100644 diff --git a/templates/organization/blog/edit.html b/templates/organization/blog/edit.html old mode 100755 new mode 100644 diff --git a/templates/organization/blog/pending.html b/templates/organization/blog/pending.html old mode 100755 new mode 100644 diff --git a/templates/organization/contest/add.html b/templates/organization/contest/add.html old mode 100755 new mode 100644 diff --git a/templates/organization/contest/edit.html b/templates/organization/contest/edit.html old mode 100755 new mode 100644 diff --git a/templates/organization/contests.html b/templates/organization/contests.html old mode 100755 new mode 100644 diff --git a/templates/organization/edit.html b/templates/organization/edit.html old mode 100755 new mode 100644 diff --git a/templates/organization/form.html b/templates/organization/form.html old mode 100755 new mode 100644 diff --git a/templates/organization/home-base.html b/templates/organization/home-base.html old mode 100755 new mode 100644 diff --git a/templates/organization/home-js.html b/templates/organization/home-js.html old mode 100755 new mode 100644 diff --git a/templates/organization/home.html b/templates/organization/home.html old mode 100755 new mode 100644 diff --git a/templates/organization/list.html b/templates/organization/list.html old mode 100755 new mode 100644 diff --git a/templates/organization/new.html b/templates/organization/new.html old mode 100755 new mode 100644 diff --git a/templates/organization/org-left-sidebar.html b/templates/organization/org-left-sidebar.html old mode 100755 new mode 100644 diff --git a/templates/organization/org-right-sidebar.html b/templates/organization/org-right-sidebar.html old mode 100755 new mode 100644 diff --git a/templates/organization/preview.html b/templates/organization/preview.html old mode 100755 new mode 100644 diff --git a/templates/organization/problems.html b/templates/organization/problems.html old mode 100755 new mode 100644 diff --git a/templates/organization/requests/detail.html b/templates/organization/requests/detail.html old mode 100755 new mode 100644 diff --git a/templates/organization/requests/log.html b/templates/organization/requests/log.html old mode 100755 new mode 100644 diff --git a/templates/organization/requests/pending.html b/templates/organization/requests/pending.html old mode 100755 new mode 100644 diff --git a/templates/organization/requests/request.html b/templates/organization/requests/request.html old mode 100755 new mode 100644 diff --git a/templates/organization/requests/tabs.html b/templates/organization/requests/tabs.html old mode 100755 new mode 100644 diff --git a/templates/organization/submissions.html b/templates/organization/submissions.html old mode 100755 new mode 100644 diff --git a/templates/organization/users-table.html b/templates/organization/users-table.html old mode 100755 new mode 100644 diff --git a/templates/organization/users.html b/templates/organization/users.html old mode 100755 new mode 100644 diff --git a/templates/pagedown.html b/templates/pagedown.html old mode 100755 new mode 100644 diff --git a/templates/pagedown/widgets/default.html b/templates/pagedown/widgets/default.html old mode 100755 new mode 100644 diff --git a/templates/problem/clone.html b/templates/problem/clone.html old mode 100755 new mode 100644 diff --git a/templates/problem/data.html b/templates/problem/data.html old mode 100755 new mode 100644 diff --git a/templates/problem/editorial.html b/templates/problem/editorial.html old mode 100755 new mode 100644 diff --git a/templates/problem/feed.html b/templates/problem/feed.html old mode 100755 new mode 100644 diff --git a/templates/problem/feed/problems.html b/templates/problem/feed/problems.html old mode 100755 new mode 100644 diff --git a/templates/problem/left-sidebar.html b/templates/problem/left-sidebar.html old mode 100755 new mode 100644 diff --git a/templates/problem/list-base.html b/templates/problem/list-base.html old mode 100755 new mode 100644 diff --git a/templates/problem/list.html b/templates/problem/list.html old mode 100755 new mode 100644 diff --git a/templates/problem/manage_submission.html b/templates/problem/manage_submission.html old mode 100755 new mode 100644 diff --git a/templates/problem/preview.html b/templates/problem/preview.html old mode 100755 new mode 100644 diff --git a/templates/problem/problem-list-tabs.html b/templates/problem/problem-list-tabs.html old mode 100755 new mode 100644 diff --git a/templates/problem/problem.html b/templates/problem/problem.html old mode 100755 new mode 100644 diff --git a/templates/problem/raw.html b/templates/problem/raw.html old mode 100755 new mode 100644 diff --git a/templates/problem/recent-attempt.html b/templates/problem/recent-attempt.html old mode 100755 new mode 100644 diff --git a/templates/problem/related_problems.html b/templates/problem/related_problems.html old mode 100755 new mode 100644 diff --git a/templates/problem/search-form.html b/templates/problem/search-form.html old mode 100755 new mode 100644 diff --git a/templates/problem/submission-diff.html b/templates/problem/submission-diff.html old mode 100755 new mode 100644 diff --git a/templates/problem/submit.html b/templates/problem/submit.html old mode 100755 new mode 100644 diff --git a/templates/problem/yaml.html b/templates/problem/yaml.html old mode 100755 new mode 100644 diff --git a/templates/recent-organization.html b/templates/recent-organization.html old mode 100755 new mode 100644 diff --git a/templates/registration/activate.html b/templates/registration/activate.html old mode 100755 new mode 100644 diff --git a/templates/registration/activation_complete.html b/templates/registration/activation_complete.html old mode 100755 new mode 100644 diff --git a/templates/registration/activation_email.html b/templates/registration/activation_email.html old mode 100755 new mode 100644 diff --git a/templates/registration/activation_email.txt b/templates/registration/activation_email.txt old mode 100755 new mode 100644 diff --git a/templates/registration/activation_email_subject.txt b/templates/registration/activation_email_subject.txt old mode 100755 new mode 100644 diff --git a/templates/registration/login.html b/templates/registration/login.html old mode 100755 new mode 100644 diff --git a/templates/registration/logout.html b/templates/registration/logout.html old mode 100755 new mode 100644 diff --git a/templates/registration/password_change_done.html b/templates/registration/password_change_done.html old mode 100755 new mode 100644 diff --git a/templates/registration/password_change_form.html b/templates/registration/password_change_form.html old mode 100755 new mode 100644 diff --git a/templates/registration/password_reset.html b/templates/registration/password_reset.html old mode 100755 new mode 100644 diff --git a/templates/registration/password_reset_complete.html b/templates/registration/password_reset_complete.html old mode 100755 new mode 100644 diff --git a/templates/registration/password_reset_confirm.html b/templates/registration/password_reset_confirm.html old mode 100755 new mode 100644 diff --git a/templates/registration/password_reset_done.html b/templates/registration/password_reset_done.html old mode 100755 new mode 100644 diff --git a/templates/registration/password_reset_email.html b/templates/registration/password_reset_email.html old mode 100755 new mode 100644 diff --git a/templates/registration/password_reset_email.txt b/templates/registration/password_reset_email.txt old mode 100755 new mode 100644 diff --git a/templates/registration/password_reset_subject.txt b/templates/registration/password_reset_subject.txt old mode 100755 new mode 100644 diff --git a/templates/registration/profile_creation.html b/templates/registration/profile_creation.html old mode 100755 new mode 100644 diff --git a/templates/registration/registration_closed.html b/templates/registration/registration_closed.html old mode 100755 new mode 100644 diff --git a/templates/registration/registration_complete.html b/templates/registration/registration_complete.html old mode 100755 new mode 100644 diff --git a/templates/registration/registration_form.html b/templates/registration/registration_form.html old mode 100755 new mode 100644 diff --git a/templates/registration/totp_auth.html b/templates/registration/totp_auth.html old mode 100755 new mode 100644 diff --git a/templates/registration/totp_disable.html b/templates/registration/totp_disable.html old mode 100755 new mode 100644 diff --git a/templates/registration/totp_enable.html b/templates/registration/totp_enable.html old mode 100755 new mode 100644 diff --git a/templates/registration/username_select.html b/templates/registration/username_select.html old mode 100755 new mode 100644 diff --git a/templates/resolver/media-js.html b/templates/resolver/media-js.html old mode 100755 new mode 100644 diff --git a/templates/resolver/resolver.html b/templates/resolver/resolver.html old mode 100755 new mode 100644 diff --git a/templates/runtime-version-fragment.html b/templates/runtime-version-fragment.html old mode 100755 new mode 100644 diff --git a/templates/site-logo-fragment.html b/templates/site-logo-fragment.html old mode 100755 new mode 100644 diff --git a/templates/solution-preview.html b/templates/solution-preview.html old mode 100755 new mode 100644 diff --git a/templates/stats/base.html b/templates/stats/base.html old mode 100755 new mode 100644 diff --git a/templates/stats/language.html b/templates/stats/language.html old mode 100755 new mode 100644 diff --git a/templates/stats/media-js.html b/templates/stats/media-js.html old mode 100755 new mode 100644 diff --git a/templates/stats/site.html b/templates/stats/site.html old mode 100755 new mode 100644 diff --git a/templates/stats/tab.html b/templates/stats/tab.html old mode 100755 new mode 100644 diff --git a/templates/status/judge-status-table.html b/templates/status/judge-status-table.html old mode 100755 new mode 100644 diff --git a/templates/status/judge-status.html b/templates/status/judge-status.html old mode 100755 new mode 100644 diff --git a/templates/status/language-list.html b/templates/status/language-list.html old mode 100755 new mode 100644 diff --git a/templates/status/media-css.html b/templates/status/media-css.html old mode 100755 new mode 100644 diff --git a/templates/status/media-js.html b/templates/status/media-js.html old mode 100755 new mode 100644 diff --git a/templates/status/status-tabs.html b/templates/status/status-tabs.html old mode 100755 new mode 100644 diff --git a/templates/status/versions.html b/templates/status/versions.html old mode 100755 new mode 100644 diff --git a/templates/submission/info-base.html b/templates/submission/info-base.html old mode 100755 new mode 100644 diff --git a/templates/submission/internal-error-message.html b/templates/submission/internal-error-message.html old mode 100755 new mode 100644 diff --git a/templates/submission/list.html b/templates/submission/list.html old mode 100755 new mode 100644 diff --git a/templates/submission/row.html b/templates/submission/row.html old mode 100755 new mode 100644 diff --git a/templates/submission/source.html b/templates/submission/source.html old mode 100755 new mode 100644 diff --git a/templates/submission/status-testcases.html b/templates/submission/status-testcases.html old mode 100755 new mode 100644 diff --git a/templates/submission/status.html b/templates/submission/status.html old mode 100755 new mode 100644 diff --git a/templates/submission/submission-list-tabs.html b/templates/submission/submission-list-tabs.html old mode 100755 new mode 100644 diff --git a/templates/submission/user-ajax.html b/templates/submission/user-ajax.html old mode 100755 new mode 100644 diff --git a/templates/tabs-base.html b/templates/tabs-base.html old mode 100755 new mode 100644 diff --git a/templates/task_status.html b/templates/task_status.html old mode 100755 new mode 100644 diff --git a/templates/three-column-content.html b/templates/three-column-content.html old mode 100755 new mode 100644 diff --git a/templates/ticket/edit-notes.html b/templates/ticket/edit-notes.html old mode 100755 new mode 100644 diff --git a/templates/ticket/feed.html b/templates/ticket/feed.html old mode 100755 new mode 100644 diff --git a/templates/ticket/list.html b/templates/ticket/list.html old mode 100755 new mode 100644 diff --git a/templates/ticket/message.html b/templates/ticket/message.html old mode 100755 new mode 100644 diff --git a/templates/ticket/new.html b/templates/ticket/new.html old mode 100755 new mode 100644 diff --git a/templates/ticket/new_problem.html b/templates/ticket/new_problem.html old mode 100755 new mode 100644 diff --git a/templates/ticket/preview.html b/templates/ticket/preview.html old mode 100755 new mode 100644 diff --git a/templates/ticket/row.html b/templates/ticket/row.html old mode 100755 new mode 100644 diff --git a/templates/ticket/ticket.html b/templates/ticket/ticket.html old mode 100755 new mode 100644 diff --git a/templates/time-remaining-fragment.html b/templates/time-remaining-fragment.html old mode 100755 new mode 100644 diff --git a/templates/timezone/media-css.html b/templates/timezone/media-css.html old mode 100755 new mode 100644 diff --git a/templates/timezone/media-js.html b/templates/timezone/media-js.html old mode 100755 new mode 100644 diff --git a/templates/top-users.html b/templates/top-users.html old mode 100755 new mode 100644 diff --git a/templates/two-column-content.html b/templates/two-column-content.html old mode 100755 new mode 100644 diff --git a/templates/user/base-users-js.html b/templates/user/base-users-js.html old mode 100755 new mode 100644 diff --git a/templates/user/base-users-table.html b/templates/user/base-users-table.html old mode 100755 new mode 100644 diff --git a/templates/user/base-users-two-col.html b/templates/user/base-users-two-col.html old mode 100755 new mode 100644 diff --git a/templates/user/edit-profile.html b/templates/user/edit-profile.html old mode 100755 new mode 100644 diff --git a/templates/user/import/index.html b/templates/user/import/index.html old mode 100755 new mode 100644 diff --git a/templates/user/import/table_csv.html b/templates/user/import/table_csv.html old mode 100755 new mode 100644 diff --git a/templates/user/link-list.html b/templates/user/link-list.html old mode 100755 new mode 100644 diff --git a/templates/user/link.html b/templates/user/link.html old mode 100755 new mode 100644 diff --git a/templates/user/list.html b/templates/user/list.html old mode 100755 new mode 100644 diff --git a/templates/user/pp-row.html b/templates/user/pp-row.html old mode 100755 new mode 100644 diff --git a/templates/user/pp-table-body.html b/templates/user/pp-table-body.html old mode 100755 new mode 100644 diff --git a/templates/user/preview.html b/templates/user/preview.html old mode 100755 new mode 100644 diff --git a/templates/user/rating.html b/templates/user/rating.html old mode 100755 new mode 100644 diff --git a/templates/user/user-about.html b/templates/user/user-about.html old mode 100755 new mode 100644 diff --git a/templates/user/user-base.html b/templates/user/user-base.html old mode 100755 new mode 100644 diff --git a/templates/user/user-bookmarks.html b/templates/user/user-bookmarks.html old mode 100755 new mode 100644 diff --git a/templates/user/user-left-sidebar.html b/templates/user/user-left-sidebar.html old mode 100755 new mode 100644 diff --git a/templates/user/user-list-tabs.html b/templates/user/user-list-tabs.html old mode 100755 new mode 100644 diff --git a/templates/user/user-problems.html b/templates/user/user-problems.html old mode 100755 new mode 100644 diff --git a/templates/user/user-tabs.html b/templates/user/user-tabs.html old mode 100755 new mode 100644 diff --git a/templates/user/users-table.html b/templates/user/users-table.html old mode 100755 new mode 100644 diff --git a/templates/widgets/datetimepicker.html b/templates/widgets/datetimepicker.html old mode 100755 new mode 100644 diff --git a/templates/widgets/fine_uploader.html b/templates/widgets/fine_uploader.html old mode 100755 new mode 100644 diff --git a/templates/widgets/relative-time.html b/templates/widgets/relative-time.html old mode 100755 new mode 100644 diff --git a/templates/widgets/select_all.html b/templates/widgets/select_all.html old mode 100755 new mode 100644 diff --git a/websocket/config.js b/websocket/config.js old mode 100755 new mode 100644 diff --git a/websocket/daemon.js b/websocket/daemon.js old mode 100755 new mode 100644 diff --git a/websocket/wscat.js b/websocket/wscat.js old mode 100755 new mode 100644