From da2a11adf9a9a92a309cd0dc1c945196d8935460 Mon Sep 17 00:00:00 2001 From: Phuoc Dinh Le <47278241+cuom1999@users.noreply.github.com> Date: Sat, 20 May 2023 08:54:17 +0900 Subject: [PATCH] Revert "Revert "Change comment style (#67)" (#68)" This reverts commit 0494a36681d21afb581049025780d673081946e2. --- .browserslistrc | 0 .flake8 | 0 .github/workflows/init.yml | 0 .gitignore | 0 .pre-commit-config.yaml | 0 502.html | 0 LICENSE | 0 README.md | 0 chat_box/__init__.py | 0 chat_box/apps.py | 0 chat_box/migrations/0001_initial.py | 0 chat_box/migrations/0002_message_hidden.py | 0 .../migrations/0003_auto_20200505_2306.py | 0 .../migrations/0004_auto_20200505_2336.py | 0 .../migrations/0005_auto_20211011_0714.py | 0 chat_box/migrations/0006_userroom.py | 0 .../migrations/0007_auto_20211112_1255.py | 0 chat_box/migrations/0008_ignore.py | 0 .../migrations/0009_auto_20220618_1452.py | 0 .../migrations/0010_auto_20221028_0300.py | 0 .../migrations/0011_alter_message_hidden.py | 0 .../migrations/0012_auto_20230308_1417.py | 0 chat_box/migrations/__init__.py | 0 chat_box/models.py | 0 chat_box/utils.py | 0 chat_box/views.py | 0 django_2_2_pymysql_patch.py | 0 django_ace/__init__.py | 0 django_ace/static/django_ace/img/contract.png | Bin django_ace/static/django_ace/img/expand.png | Bin django_ace/static/django_ace/widget.css | 0 django_ace/static/django_ace/widget.js | 0 django_ace/widgets.py | 0 dmoj/__init__.py | 0 dmoj/celery.py | 0 dmoj/settings.py | 15 +- dmoj/throttle_mail.py | 0 dmoj/urls.py | 4 + dmoj/wsgi.py | 0 dmoj/wsgi_async.py | 0 dmoj_bridge_async.py | 0 dmoj_celery.py | 0 dmoj_install_pymysql.py | 0 judge/__init__.py | 0 judge/admin/__init__.py | 0 judge/admin/comments.py | 0 judge/admin/contest.py | 0 judge/admin/interface.py | 0 judge/admin/organization.py | 0 judge/admin/problem.py | 0 judge/admin/profile.py | 0 judge/admin/runtime.py | 0 judge/admin/submission.py | 0 judge/admin/taxon.py | 0 judge/admin/ticket.py | 0 judge/admin/volunteer.py | 0 judge/apps.py | 0 judge/bridge/__init__.py | 0 judge/bridge/base_handler.py | 0 judge/bridge/daemon.py | 0 judge/bridge/django_handler.py | 0 judge/bridge/echo_test_client.py | 0 judge/bridge/echo_test_server.py | 0 judge/bridge/judge_handler.py | 0 judge/bridge/judge_list.py | 0 judge/bridge/server.py | 0 judge/caching.py | 0 judge/comments.py | 85 ++- judge/contest_format/__init__.py | 0 judge/contest_format/atcoder.py | 0 judge/contest_format/base.py | 0 judge/contest_format/default.py | 0 judge/contest_format/ecoo.py | 0 judge/contest_format/icpc.py | 0 judge/contest_format/ioi.py | 0 judge/contest_format/new_ioi.py | 0 judge/contest_format/registry.py | 0 judge/dblock.py | 0 judge/event_poster.py | 0 judge/event_poster_amqp.py | 0 judge/event_poster_ws.py | 0 judge/feed.py | 0 judge/fixtures/demo.json | 0 judge/fixtures/language_small.json | 0 judge/fixtures/navbar.json | 0 judge/forms.py | 0 judge/fulltext.py | 0 judge/highlight_code.py | 0 judge/jinja2/__init__.py | 0 judge/jinja2/camo.py | 0 judge/jinja2/chat.py | 0 judge/jinja2/datetime.py | 0 judge/jinja2/filesize.py | 0 judge/jinja2/gravatar.py | 0 judge/jinja2/language.py | 0 judge/jinja2/markdown/__init__.py | 0 judge/jinja2/rating.py | 0 judge/jinja2/reference.py | 0 judge/jinja2/registry.py | 0 judge/jinja2/render.py | 0 judge/jinja2/social.py | 0 judge/jinja2/spaceless.py | 0 judge/jinja2/submission.py | 0 judge/jinja2/timedelta.py | 0 judge/judgeapi.py | 0 judge/lxml_tree.py | 0 judge/management/__init__.py | 0 judge/management/commands/__init__.py | 0 judge/management/commands/addjudge.py | 0 judge/management/commands/adduser.py | 0 judge/management/commands/camo.py | 0 judge/management/commands/copy_language.py | 0 judge/management/commands/create_problem.py | 0 judge/management/commands/generate_data.py | 0 judge/management/commands/makedmojmessages.py | 0 judge/management/commands/render_pdf.py | 0 judge/management/commands/runbridged.py | 0 judge/management/commands/runmoss.py | 0 judge/middleware.py | 0 .../0001_squashed_0084_contest_formats.py | 0 judge/migrations/0085_submission_source.py | 0 judge/migrations/0086_rating_ceiling.py | 0 .../0087_problem_resource_limits.py | 0 judge/migrations/0088_private_contests.py | 0 .../migrations/0089_submission_to_contest.py | 0 .../migrations/0090_fix_contest_visibility.py | 0 .../0091_compiler_message_ansi2html.py | 0 judge/migrations/0092_contest_clone.py | 0 judge/migrations/0093_contest_moss.py | 0 ...0094_submissiontestcase_unique_together.py | 0 .../0095_organization_logo_override.py | 0 .../0096_profile_language_set_default.py | 0 .../0097_participation_is_disqualified.py | 0 judge/migrations/0098_auto_20200123_2136.py | 0 judge/migrations/0099_custom_checker.py | 0 judge/migrations/0100_auto_20200127_0059.py | 0 judge/migrations/0101_custom_validator.py | 0 judge/migrations/0102_fix_custom_validator.py | 0 judge/migrations/0103_fix_custom_validator.py | 0 judge/migrations/0104_auto_20200410_1313.py | 0 judge/migrations/0105_auto_20200523_0756.py | 0 judge/migrations/0106_friend.py | 0 judge/migrations/0107_notification.py | 0 .../migrations/0108_submission_judged_date.py | 0 judge/migrations/0109_auto_20201017_1151.py | 0 judge/migrations/0110_notification_author.py | 0 .../migrations/0111_contest_decimal_points.py | 0 .../0112_contest_view_contest_scoreboard.py | 0 judge/migrations/0113_auto_20201228_0911.py | 0 judge/migrations/0114_auto_20201228_1041.py | 0 judge/migrations/0115_auto_20210525_0222.py | 0 judge/migrations/0116_auto_20211011_0645.py | 0 judge/migrations/0117_auto_20211209_0612.py | 0 judge/migrations/0118_rating.py | 0 judge/migrations/0119_auto_20220306_0512.py | 0 judge/migrations/0120_auto_20220306_1124.py | 0 judge/migrations/0121_auto_20220415_0135.py | 0 judge/migrations/0122_auto_20220425_1202.py | 0 judge/migrations/0123_auto_20220502_2356.py | 0 judge/migrations/0124_auto_20220602_1116.py | 0 judge/migrations/0125_auto_20220602_1216.py | 0 judge/migrations/0126_languagetemplate.py | 0 judge/migrations/0127_auto_20220616_1442.py | 0 judge/migrations/0128_auto_20220620_2210.py | 0 judge/migrations/0129_auto_20220622_1424.py | 0 judge/migrations/0130_auto_20220831_1048.py | 0 judge/migrations/0131_auto_20220905_0027.py | 0 judge/migrations/0132_auto_20220915_1349.py | 0 judge/migrations/0133_auto_20221013_0850.py | 0 judge/migrations/0134_auto_20221018_0124.py | 0 judge/migrations/0135_auto_20221028_0300.py | 0 .../migrations/0136_alter_profile_timezone.py | 0 judge/migrations/0137_auto_20221116_2201.py | 0 .../migrations/0138_bookmark_makebookmark.py | 0 judge/migrations/0139_contest_freeze_after.py | 0 .../0140_alter_contest_format_name.py | 0 .../0141_contestproblem_frozen_subtasks.py | 0 ..._contestparticipation_format_data_final.py | 0 judge/migrations/0143_auto_20221229_0153.py | 0 judge/migrations/0144_auto_20230103_0523.py | 0 .../0145_alter_organization_slug.py | 0 .../0146_alter_organization_slug.py | 0 .../migrations/0147_alter_profile_timezone.py | 0 ...rseassignment_courseresource_courserole.py | 0 judge/migrations/0149_auto_20230202_0902.py | 0 .../migrations/0150_alter_profile_timezone.py | 0 judge/migrations/0151_comment_content_type.py | 0 judge/migrations/0152_migrate_comments.py | 0 judge/migrations/0153_drop_comment_page.py | 0 .../migrations/0154_add_submission_indexes.py | 0 judge/migrations/0155_output_only.py | 0 judge/migrations/__init__.py | 0 judge/ml/collab_filter.py | 0 judge/models/__init__.py | 0 judge/models/bookmark.py | 0 judge/models/choices.py | 0 judge/models/comment.py | 12 +- judge/models/contest.py | 0 judge/models/course.py | 0 judge/models/interface.py | 0 judge/models/message.py | 0 judge/models/pagevote.py | 0 judge/models/problem.py | 0 judge/models/problem_data.py | 0 judge/models/profile.py | 0 judge/models/runtime.py | 0 judge/models/submission.py | 0 judge/models/ticket.py | 0 judge/models/volunteer.py | 0 judge/pdf_problems.py | 0 judge/performance_points.py | 0 judge/ratings.py | 0 judge/signals.py | 0 judge/sitemap.py | 0 judge/social_auth.py | 0 judge/tasks/__init__.py | 0 judge/tasks/contest.py | 0 judge/tasks/demo.py | 0 judge/tasks/experiment.py | 0 judge/tasks/import_users.py | 0 judge/tasks/submission.py | 0 judge/template_context.py | 0 judge/templatetags/__init__.py | 0 judge/templatetags/code_highlight.py | 0 judge/templatetags/counter.py | 0 judge/templatetags/dicts.py | 0 judge/templatetags/list_processor.py | 0 judge/templatetags/strings.py | 0 judge/tests.py | 0 judge/timezone.py | 0 judge/user_log.py | 0 judge/user_translations.py | 0 judge/utils/__init__.py | 0 judge/utils/cachedict.py | 0 judge/utils/camo.py | 0 judge/utils/caniuse.py | 0 judge/utils/celery.py | 0 judge/utils/diggpaginator.py | 0 judge/utils/file_cache.py | 0 judge/utils/fine_uploader.py | 0 judge/utils/infinite_paginator.py | 0 judge/utils/mathoid.py | 0 judge/utils/opengraph.py | 0 judge/utils/problem_data.py | 0 judge/utils/problems.py | 0 judge/utils/pwned.py | 0 judge/utils/ranker.py | 0 judge/utils/raw_sql.py | 0 judge/utils/recaptcha.py | 0 judge/utils/stats.py | 0 judge/utils/strings.py | 0 judge/utils/texoid.py | 0 judge/utils/tickets.py | 0 judge/utils/timedelta.py | 0 judge/utils/unicode.py | 0 judge/utils/views.py | 0 judge/views/__init__.py | 0 judge/views/about.py | 0 judge/views/api/__init__.py | 0 judge/views/api/api_v1.py | 0 judge/views/api/api_v2.py | 0 judge/views/blog.py | 0 judge/views/bookmark.py | 0 judge/views/comment.py | 84 ++- judge/views/contests.py | 0 judge/views/course.py | 0 judge/views/error.py | 0 judge/views/feed.py | 0 judge/views/internal.py | 0 judge/views/language.py | 0 judge/views/license.py | 0 judge/views/mailgun.py | 0 judge/views/notification.py | 0 judge/views/organization.py | 0 judge/views/pagevote.py | 0 judge/views/preview.py | 0 judge/views/problem.py | 0 judge/views/problem_data.py | 0 judge/views/problem_manage.py | 0 judge/views/ranked_submission.py | 0 judge/views/register.py | 0 judge/views/resolver.py | 0 judge/views/select2.py | 0 judge/views/stats.py | 0 judge/views/status.py | 0 judge/views/submission.py | 0 judge/views/tasks.py | 0 judge/views/ticket.py | 0 judge/views/totp.py | 0 judge/views/user.py | 0 judge/views/volunteer.py | 0 judge/views/widgets.py | 0 judge/widgets/__init__.py | 0 judge/widgets/checkbox.py | 0 judge/widgets/datetime.py | 0 judge/widgets/mixins.py | 0 judge/widgets/pagedown.py | 0 judge/widgets/select2.py | 0 locale/ar/LC_MESSAGES/django.po | 0 locale/ar/LC_MESSAGES/djangojs.po | 0 locale/de/LC_MESSAGES/django.po | 0 locale/de/LC_MESSAGES/djangojs.po | 0 locale/en/LC_MESSAGES/django.po | 0 locale/en/LC_MESSAGES/djangojs.po | 0 locale/es/LC_MESSAGES/django.po | 0 locale/es/LC_MESSAGES/djangojs.po | 0 locale/fr/LC_MESSAGES/django.po | 0 locale/fr/LC_MESSAGES/djangojs.po | 0 locale/hr/LC_MESSAGES/django.po | 0 locale/hr/LC_MESSAGES/djangojs.po | 0 locale/hu/LC_MESSAGES/django.po | 0 locale/hu/LC_MESSAGES/djangojs.po | 0 locale/it/LC_MESSAGES/django.po | 0 locale/it/LC_MESSAGES/djangojs.po | 0 locale/ja/LC_MESSAGES/django.po | 0 locale/ja/LC_MESSAGES/djangojs.po | 0 locale/ko/LC_MESSAGES/django.po | 0 locale/ko/LC_MESSAGES/djangojs.po | 0 locale/lt/LC_MESSAGES/django.po | 0 locale/lt/LC_MESSAGES/djangojs.po | 0 locale/nl/LC_MESSAGES/django.po | 0 locale/nl/LC_MESSAGES/djangojs.po | 0 locale/pl/LC_MESSAGES/django.po | 0 locale/pl/LC_MESSAGES/djangojs.po | 0 locale/pt/LC_MESSAGES/django.po | 0 locale/pt/LC_MESSAGES/djangojs.po | 0 locale/ro/LC_MESSAGES/django.po | 0 locale/ro/LC_MESSAGES/djangojs.po | 0 locale/ru/LC_MESSAGES/django.po | 0 locale/ru/LC_MESSAGES/djangojs.po | 0 locale/ru/LC_MESSAGES/dmoj-user.po | 0 locale/sr/LC_MESSAGES/django.po | 0 locale/sr/LC_MESSAGES/djangojs.po | 0 locale/sr/LC_MESSAGES/dmoj-user.po | 0 locale/sr_Latn/LC_MESSAGES/django.po | 0 locale/sr_Latn/LC_MESSAGES/djangojs.po | 0 locale/tr/LC_MESSAGES/django.po | 0 locale/tr/LC_MESSAGES/djangojs.po | 0 locale/vi/LC_MESSAGES/django.po | 527 +++++++++--------- locale/vi/LC_MESSAGES/djangojs.po | 0 locale/vi/LC_MESSAGES/dmoj-user.po | 9 +- locale/zh_Hans/LC_MESSAGES/django.po | 0 locale/zh_Hans/LC_MESSAGES/djangojs.po | 0 locale/zh_Hant/LC_MESSAGES/django.po | 0 locale/zh_Hant/LC_MESSAGES/djangojs.po | 0 logo.png | Bin manifest.json | 0 requirements.txt | 0 resources/admin/css/pagedown.css | 0 resources/admin/css/select2bootstrap.css | 0 resources/awards/bronze-medal.png | Bin resources/awards/gold-medal.png | Bin resources/awards/medals.png | Bin resources/awards/silver-medal.png | Bin resources/base.scss | 0 resources/blank.gif | Bin resources/blog.scss | 0 resources/chatbox.scss | 0 resources/comments.scss | 22 + resources/common.js | 0 resources/content-description.scss | 0 resources/contest.json | 0 resources/contest.scss | 0 resources/darkmode-svg.css | 0 resources/darkmode.css | 0 resources/django_select2.js | 0 resources/dmmd-preview.css | 0 resources/dmmd-preview.js | 0 resources/dmmd-preview.scss | 0 resources/event.js | 0 resources/favicon.ico | Bin resources/fine-uploader/LICENSE | 0 resources/fine-uploader/continue.gif | Bin resources/fine-uploader/dnd.js | 0 resources/fine-uploader/dnd.js.map | 0 resources/fine-uploader/dnd.min.js | 0 resources/fine-uploader/dnd.min.js.map | 0 resources/fine-uploader/edit.gif | Bin .../fine-uploader/fine-uploader-gallery.css | 0 .../fine-uploader-gallery.min.css | 0 .../fine-uploader-gallery.min.css.map | 0 resources/fine-uploader/fine-uploader-new.css | 0 .../fine-uploader/fine-uploader-new.min.css | 0 .../fine-uploader-new.min.css.map | 0 resources/fine-uploader/fine-uploader.core.js | 0 .../fine-uploader/fine-uploader.core.js.map | 0 .../fine-uploader/fine-uploader.core.min.js | 0 .../fine-uploader.core.min.js.map | 0 resources/fine-uploader/fine-uploader.css | 0 resources/fine-uploader/fine-uploader.js | 0 resources/fine-uploader/fine-uploader.js.map | 0 resources/fine-uploader/fine-uploader.min.css | 0 .../fine-uploader/fine-uploader.min.css.map | 0 resources/fine-uploader/fine-uploader.min.js | 0 .../fine-uploader/fine-uploader.min.js.map | 0 .../fine-uploader/jquery.fine-uploader.js | 0 .../fine-uploader/jquery.fine-uploader.js.map | 0 .../fine-uploader/jquery.fine-uploader.min.js | 0 .../jquery.fine-uploader.min.js.map | 0 resources/fine-uploader/loading.gif | Bin resources/fine-uploader/pause.gif | Bin resources/fine-uploader/processing.gif | Bin resources/fine-uploader/retry.gif | Bin .../fine-uploader/templates/default.html | 0 .../fine-uploader/templates/gallery.html | 0 .../templates/simple-thumbnails.html | 0 resources/fine-uploader/trash.gif | Bin resources/icofont.min.css | 0 resources/icofont/demo.html | 0 resources/icofont/fonts/icofont.eot | Bin resources/icofont/fonts/icofont.svg | 0 resources/icofont/fonts/icofont.ttf | Bin resources/icofont/fonts/icofont.woff | Bin resources/icofont/fonts/icofont.woff2 | Bin resources/icofont/icofont.css | 0 resources/icofont/icofont.min.css | 0 resources/icons/android-chrome-192x192.png | Bin resources/icons/apple-touch-icon.png | Bin resources/icons/browserconfig.xml | 0 resources/icons/favicon-16x16.png | Bin resources/icons/favicon-32x32.png | Bin resources/icons/favicon.ico | Bin resources/icons/icon.png | Bin resources/icons/logo_original.png | Bin resources/icons/manifest.json | 0 .../icons/old/android-chrome-144x144.png | Bin .../icons/old/android-chrome-192x192.png | Bin resources/icons/old/android-chrome-36x36.png | Bin resources/icons/old/android-chrome-48x48.png | Bin resources/icons/old/android-chrome-72x72.png | Bin resources/icons/old/android-chrome-96x96.png | Bin .../apple-touch-icon-114x114-precomposed.png | Bin .../icons/old/apple-touch-icon-114x114.png | Bin .../apple-touch-icon-120x120-precomposed.png | Bin .../icons/old/apple-touch-icon-120x120.png | Bin .../apple-touch-icon-144x144-precomposed.png | Bin .../icons/old/apple-touch-icon-144x144.png | Bin .../apple-touch-icon-152x152-precomposed.png | Bin .../icons/old/apple-touch-icon-152x152.png | Bin .../apple-touch-icon-180x180-precomposed.png | Bin .../icons/old/apple-touch-icon-180x180.png | Bin .../apple-touch-icon-57x57-precomposed.png | Bin .../icons/old/apple-touch-icon-57x57.png | Bin .../apple-touch-icon-60x60-precomposed.png | Bin .../icons/old/apple-touch-icon-60x60.png | Bin .../apple-touch-icon-72x72-precomposed.png | Bin .../icons/old/apple-touch-icon-72x72.png | Bin .../apple-touch-icon-76x76-precomposed.png | Bin .../icons/old/apple-touch-icon-76x76.png | Bin .../old/apple-touch-icon-precomposed.png | Bin resources/icons/old/apple-touch-icon.png | Bin resources/icons/old/browserconfig.xml | 0 resources/icons/old/favicon-16x16.png | Bin resources/icons/old/favicon-32x32.png | Bin resources/icons/old/favicon.ico | Bin resources/icons/old/logo_old.png | Bin resources/icons/old/mstile-144x144.png | Bin resources/icons/old/mstile-150x150.png | Bin resources/icons/old/mstile-310x150.png | Bin resources/icons/old/mstile-310x310.png | Bin resources/icons/old/mstile-70x70.png | Bin resources/icons/old/safari-pinned-tab.svg | 0 resources/icons/reload.png | Bin resources/icons/site.webmanifest | 0 resources/jquery-ui.min.js | 0 resources/jszip/jszip.min.js | 0 resources/libs/README.md | 0 resources/libs/chart.js/Chart.js | 0 resources/libs/clipboard/clipboard.js | 0 resources/libs/clipboard/tooltip.css | 0 resources/libs/clipboard/tooltip.js | 0 .../libs/featherlight/featherlight.min.css | 0 .../libs/featherlight/featherlight.min.js | 0 resources/libs/fontawesome/font-awesome.css | 0 .../libs/fontawesome/fontawesome-webfont.eot | Bin .../libs/fontawesome/fontawesome-webfont.svg | 0 .../libs/fontawesome/fontawesome-webfont.ttf | Bin .../libs/fontawesome/fontawesome-webfont.woff | Bin .../fontawesome/fontawesome-webfont.woff2 | Bin resources/libs/jquery-3.4.1.min.js | 0 resources/libs/jquery-cookie.js | 0 resources/libs/jquery-sortable.js | 0 resources/libs/jquery-taphold.js | 0 resources/libs/jquery.unveil.js | 0 .../libs/latinmodernmath/latinmodern-math.eot | Bin .../libs/latinmodernmath/latinmodern-math.ttf | Bin .../latinmodernmath/latinmodern-math.woff | Bin .../latinmodernmath/latinmodern-math.woff2 | Bin resources/libs/moment.js | 0 resources/libs/nouislider.min.css | 0 resources/libs/nouislider.min.js | 0 resources/libs/raven.min.js | 0 resources/libs/select2/select2.css | 0 resources/libs/select2/select2.js | 0 resources/libs/tablesorter.js | 0 resources/libs/timezone-map/timezone-map.css | 0 .../libs/timezone-map/timezone-picker.js | 0 .../libs/timezone-map/timezone-picker.json | 0 resources/loading.gif | Bin resources/markdown.css | 0 resources/math.scss | 0 resources/mathjax3_config.js | 0 resources/misc.scss | 0 resources/organization.scss | 0 resources/pagedown/LICENSE.txt | 0 resources/pagedown/Markdown.Converter.js | 0 resources/pagedown/Markdown.Editor.js | 0 resources/pagedown/Markdown.Sanitizer.js | 0 resources/pagedown/README.md | 0 resources/pagedown/demo/browser/demo.css | 0 resources/pagedown/demo/browser/demo.html | 0 resources/pagedown/demo/node/demo.js | 0 resources/pagedown/local/Markdown.local.fr.js | 0 resources/pagedown/node-pagedown.js | 0 resources/pagedown/package.json | 0 resources/pagedown/resources/admonition.svg | 0 resources/pagedown/resources/blockquote.svg | 0 resources/pagedown/resources/bold.svg | 0 resources/pagedown/resources/code.svg | 0 resources/pagedown/resources/heading.svg | 0 resources/pagedown/resources/hr.svg | 0 resources/pagedown/resources/image.svg | 0 resources/pagedown/resources/italic.svg | 0 .../pagedown/resources/latex-display.svg | 0 resources/pagedown/resources/latex.svg | 0 resources/pagedown/resources/link.svg | 0 resources/pagedown/resources/olist.svg | 0 resources/pagedown/resources/redo.svg | 0 resources/pagedown/resources/spoiler.svg | 0 resources/pagedown/resources/ulist.svg | 0 resources/pagedown/resources/undo.svg | 0 resources/pagedown/resources/user.svg | 0 resources/pagedown/resources/wmd-buttons.pdn | Bin resources/pagedown/resources/wmd-buttons.png | Bin resources/pagedown/resources/wmd-buttons.psd | Bin resources/pagedown/wmd-buttons.png | Bin resources/pagedown_math.js | 0 resources/pagedown_widget.css | 0 resources/pagedown_widget.scss | 0 resources/problem.scss | 0 resources/problem_edit.css | 0 resources/pygment-github.css | 0 resources/ranks.scss | 0 resources/resolver.css | 0 resources/resolver.js | 0 resources/site.webmanifest | 0 resources/status.scss | 0 resources/style.scss | 0 resources/submission.scss | 0 resources/table.scss | 0 resources/task_status.css | 0 resources/ticket.scss | 0 resources/unselectable.htc | 0 resources/users.scss | 0 resources/vars.scss | 0 resources/widgets.scss | 0 resources/wpadmin/css/wpadmin.site.css | 0 robots.txt | 0 templates/about/about.html | 0 templates/about/custom-checker-sample.html | 0 templates/actionbar/list.html | 2 +- templates/actionbar/media-js.html | 0 templates/admin/auth/user/change_form.html | 0 .../admin/judge/contest/change_form.html | 0 .../admin/judge/contest/change_list.html | 0 templates/admin/judge/judge/change_form.html | 0 .../admin/judge/problem/change_form.html | 0 .../admin/judge/profile/change_form.html | 0 .../admin/judge/submission/change_form.html | 0 templates/base.html | 0 templates/blog/blog.html | 0 templates/blog/content.html | 0 templates/blog/dashboard.html | 0 templates/blog/list.html | 0 templates/blog/media-css.html | 0 templates/blog/preview.html | 0 templates/chat/chat.html | 0 templates/chat/chat_css.html | 0 templates/chat/message.html | 0 templates/chat/message_list.html | 0 templates/chat/online_status.html | 0 templates/chat/user_online_status.html | 0 templates/comments/content-list.html | 139 +++++ templates/comments/content.html | 0 templates/comments/edit-ajax.html | 0 templates/comments/edit.html | 0 templates/comments/feed.html | 0 templates/comments/list.html | 33 +- templates/comments/math.html | 0 templates/comments/media-css.html | 0 templates/comments/media-js.html | 71 +++ templates/comments/preview.html | 0 templates/comments/revision-ajax.html | 0 templates/comments/votes.html | 0 templates/common-content.html | 0 templates/contest/access_code.html | 0 templates/contest/calendar.html | 0 templates/contest/clarification.html | 0 templates/contest/clone.html | 0 templates/contest/contest-datetime.html | 0 templates/contest/contest-list-tabs.html | 0 templates/contest/contest-tabs.html | 0 templates/contest/contest.html | 0 templates/contest/list.html | 0 templates/contest/media-js.html | 0 templates/contest/moss.html | 0 templates/contest/preview.html | 0 templates/contest/private.html | 0 templates/contest/ranking-css.html | 0 templates/contest/ranking-table.html | 0 templates/contest/ranking.html | 0 templates/contest/stats.html | 0 templates/contest/tag-ajax.html | 0 templates/contest/tag-title.html | 0 templates/contest/tag.html | 0 templates/contests-countdown.html | 0 templates/course/base.html | 0 templates/course/list.html | 0 templates/error.html | 0 templates/extra_js.html | 0 templates/feed/feed_js.html | 0 templates/feed/has_next.html | 0 templates/fine_uploader/script.html | 0 templates/flatpages/admin_link.html | 0 templates/flatpages/default.html | 0 templates/flatpages/markdown.html | 0 templates/flatpages/markdown_math.html | 0 templates/generic-message.html | 0 templates/home.html | 0 templates/internal/left-sidebar.html | 0 templates/internal/problem.html | 0 templates/internal/request_time.html | 0 templates/internal/request_time_detail.html | 0 templates/license-preview.html | 0 templates/license.html | 0 templates/list-pages.html | 0 templates/loading-page.html | 0 templates/mathjax-load.html | 0 templates/messages.html | 0 templates/notification/list.html | 0 templates/organization/add-member.html | 0 templates/organization/add.html | 0 templates/organization/blog/add.html | 0 templates/organization/blog/edit.html | 0 templates/organization/blog/pending.html | 0 templates/organization/contest/add.html | 0 templates/organization/contest/edit.html | 0 templates/organization/contests.html | 0 templates/organization/edit.html | 0 templates/organization/form.html | 0 templates/organization/home-base.html | 0 templates/organization/home-js.html | 0 templates/organization/home.html | 0 templates/organization/list.html | 0 templates/organization/new.html | 0 templates/organization/org-left-sidebar.html | 0 templates/organization/org-right-sidebar.html | 0 templates/organization/preview.html | 0 templates/organization/problems.html | 0 templates/organization/requests/detail.html | 0 templates/organization/requests/log.html | 0 templates/organization/requests/pending.html | 0 templates/organization/requests/request.html | 0 templates/organization/requests/tabs.html | 0 templates/organization/submissions.html | 0 templates/organization/users-table.html | 0 templates/organization/users.html | 0 templates/pagedown.html | 0 templates/pagedown/widgets/default.html | 0 templates/problem/clone.html | 0 templates/problem/data.html | 0 templates/problem/editorial.html | 0 templates/problem/feed.html | 0 templates/problem/feed/problems.html | 0 templates/problem/left-sidebar.html | 0 templates/problem/list-base.html | 0 templates/problem/list.html | 0 templates/problem/manage_submission.html | 0 templates/problem/preview.html | 0 templates/problem/problem-list-tabs.html | 0 templates/problem/problem.html | 0 templates/problem/raw.html | 0 templates/problem/recent-attempt.html | 0 templates/problem/related_problems.html | 0 templates/problem/search-form.html | 0 templates/problem/submission-diff.html | 0 templates/problem/submit.html | 0 templates/problem/yaml.html | 0 templates/recent-organization.html | 0 templates/registration/activate.html | 0 .../registration/activation_complete.html | 0 templates/registration/activation_email.html | 0 templates/registration/activation_email.txt | 0 .../registration/activation_email_subject.txt | 0 templates/registration/login.html | 0 templates/registration/logout.html | 0 .../registration/password_change_done.html | 0 .../registration/password_change_form.html | 0 templates/registration/password_reset.html | 0 .../registration/password_reset_complete.html | 0 .../registration/password_reset_confirm.html | 0 .../registration/password_reset_done.html | 0 .../registration/password_reset_email.html | 0 .../registration/password_reset_email.txt | 0 .../registration/password_reset_subject.txt | 0 templates/registration/profile_creation.html | 0 .../registration/registration_closed.html | 0 .../registration/registration_complete.html | 0 templates/registration/registration_form.html | 0 templates/registration/totp_auth.html | 0 templates/registration/totp_disable.html | 0 templates/registration/totp_enable.html | 0 templates/registration/username_select.html | 0 templates/resolver/media-js.html | 0 templates/resolver/resolver.html | 0 templates/runtime-version-fragment.html | 0 templates/site-logo-fragment.html | 0 templates/solution-preview.html | 0 templates/stats/base.html | 0 templates/stats/language.html | 0 templates/stats/media-js.html | 0 templates/stats/site.html | 0 templates/stats/tab.html | 0 templates/status/judge-status-table.html | 0 templates/status/judge-status.html | 0 templates/status/language-list.html | 0 templates/status/media-css.html | 0 templates/status/media-js.html | 0 templates/status/status-tabs.html | 0 templates/status/versions.html | 0 templates/submission/info-base.html | 0 .../submission/internal-error-message.html | 0 templates/submission/list.html | 0 templates/submission/row.html | 0 templates/submission/source.html | 0 templates/submission/status-testcases.html | 0 templates/submission/status.html | 0 .../submission/submission-list-tabs.html | 0 templates/submission/user-ajax.html | 0 templates/tabs-base.html | 0 templates/task_status.html | 0 templates/three-column-content.html | 0 templates/ticket/edit-notes.html | 0 templates/ticket/feed.html | 0 templates/ticket/list.html | 0 templates/ticket/message.html | 0 templates/ticket/new.html | 0 templates/ticket/new_problem.html | 0 templates/ticket/preview.html | 0 templates/ticket/row.html | 0 templates/ticket/ticket.html | 0 templates/time-remaining-fragment.html | 0 templates/timezone/media-css.html | 0 templates/timezone/media-js.html | 0 templates/top-users.html | 0 templates/two-column-content.html | 0 templates/user/base-users-js.html | 0 templates/user/base-users-table.html | 0 templates/user/base-users-two-col.html | 0 templates/user/edit-profile.html | 0 templates/user/import/index.html | 0 templates/user/import/table_csv.html | 0 templates/user/link-list.html | 0 templates/user/link.html | 0 templates/user/list.html | 0 templates/user/pp-row.html | 0 templates/user/pp-table-body.html | 0 templates/user/preview.html | 0 templates/user/rating.html | 0 templates/user/user-about.html | 0 templates/user/user-base.html | 0 templates/user/user-bookmarks.html | 0 templates/user/user-left-sidebar.html | 0 templates/user/user-list-tabs.html | 0 templates/user/user-problems.html | 0 templates/user/user-tabs.html | 0 templates/user/users-table.html | 0 templates/widgets/datetimepicker.html | 0 templates/widgets/fine_uploader.html | 0 templates/widgets/relative-time.html | 0 templates/widgets/select_all.html | 0 websocket/config.js | 0 websocket/daemon.js | 0 websocket/wscat.js | 0 784 files changed, 696 insertions(+), 307 deletions(-) mode change 100644 => 100755 .browserslistrc mode change 100644 => 100755 .flake8 mode change 100644 => 100755 .github/workflows/init.yml mode change 100644 => 100755 .gitignore mode change 100644 => 100755 .pre-commit-config.yaml mode change 100644 => 100755 502.html mode change 100644 => 100755 LICENSE mode change 100644 => 100755 README.md mode change 100644 => 100755 chat_box/__init__.py mode change 100644 => 100755 chat_box/apps.py mode change 100644 => 100755 chat_box/migrations/0001_initial.py mode change 100644 => 100755 chat_box/migrations/0002_message_hidden.py mode change 100644 => 100755 chat_box/migrations/0003_auto_20200505_2306.py mode change 100644 => 100755 chat_box/migrations/0004_auto_20200505_2336.py mode change 100644 => 100755 chat_box/migrations/0005_auto_20211011_0714.py mode change 100644 => 100755 chat_box/migrations/0006_userroom.py mode change 100644 => 100755 chat_box/migrations/0007_auto_20211112_1255.py mode change 100644 => 100755 chat_box/migrations/0008_ignore.py mode change 100644 => 100755 chat_box/migrations/0009_auto_20220618_1452.py mode change 100644 => 100755 chat_box/migrations/0010_auto_20221028_0300.py mode change 100644 => 100755 chat_box/migrations/0011_alter_message_hidden.py mode change 100644 => 100755 chat_box/migrations/0012_auto_20230308_1417.py mode change 100644 => 100755 chat_box/migrations/__init__.py mode change 100644 => 100755 chat_box/models.py mode change 100644 => 100755 chat_box/utils.py mode change 100644 => 100755 chat_box/views.py mode change 100644 => 100755 django_2_2_pymysql_patch.py mode change 100644 => 100755 django_ace/__init__.py mode change 100644 => 100755 django_ace/static/django_ace/img/contract.png mode change 100644 => 100755 django_ace/static/django_ace/img/expand.png mode change 100644 => 100755 django_ace/static/django_ace/widget.css mode change 100644 => 100755 django_ace/static/django_ace/widget.js mode change 100644 => 100755 django_ace/widgets.py mode change 100644 => 100755 dmoj/__init__.py mode change 100644 => 100755 dmoj/celery.py mode change 100644 => 100755 dmoj/settings.py mode change 100644 => 100755 dmoj/throttle_mail.py mode change 100644 => 100755 dmoj/urls.py mode change 100644 => 100755 dmoj/wsgi.py mode change 100644 => 100755 dmoj/wsgi_async.py mode change 100644 => 100755 dmoj_bridge_async.py mode change 100644 => 100755 dmoj_celery.py mode change 100644 => 100755 dmoj_install_pymysql.py mode change 100644 => 100755 judge/__init__.py mode change 100644 => 100755 judge/admin/__init__.py mode change 100644 => 100755 judge/admin/comments.py mode change 100644 => 100755 judge/admin/contest.py mode change 100644 => 100755 judge/admin/interface.py mode change 100644 => 100755 judge/admin/organization.py mode change 100644 => 100755 judge/admin/problem.py mode change 100644 => 100755 judge/admin/profile.py mode change 100644 => 100755 judge/admin/runtime.py mode change 100644 => 100755 judge/admin/submission.py mode change 100644 => 100755 judge/admin/taxon.py mode change 100644 => 100755 judge/admin/ticket.py mode change 100644 => 100755 judge/admin/volunteer.py mode change 100644 => 100755 judge/apps.py mode change 100644 => 100755 judge/bridge/__init__.py mode change 100644 => 100755 judge/bridge/base_handler.py mode change 100644 => 100755 judge/bridge/daemon.py mode change 100644 => 100755 judge/bridge/django_handler.py mode change 100644 => 100755 judge/bridge/echo_test_client.py mode change 100644 => 100755 judge/bridge/echo_test_server.py mode change 100644 => 100755 judge/bridge/judge_handler.py mode change 100644 => 100755 judge/bridge/judge_list.py mode change 100644 => 100755 judge/bridge/server.py mode change 100644 => 100755 judge/caching.py mode change 100644 => 100755 judge/comments.py mode change 100644 => 100755 judge/contest_format/__init__.py mode change 100644 => 100755 judge/contest_format/atcoder.py mode change 100644 => 100755 judge/contest_format/base.py mode change 100644 => 100755 judge/contest_format/default.py mode change 100644 => 100755 judge/contest_format/ecoo.py mode change 100644 => 100755 judge/contest_format/icpc.py mode change 100644 => 100755 judge/contest_format/ioi.py mode change 100644 => 100755 judge/contest_format/new_ioi.py mode change 100644 => 100755 judge/contest_format/registry.py mode change 100644 => 100755 judge/dblock.py mode change 100644 => 100755 judge/event_poster.py mode change 100644 => 100755 judge/event_poster_amqp.py mode change 100644 => 100755 judge/event_poster_ws.py mode change 100644 => 100755 judge/feed.py mode change 100644 => 100755 judge/fixtures/demo.json mode change 100644 => 100755 judge/fixtures/language_small.json mode change 100644 => 100755 judge/fixtures/navbar.json mode change 100644 => 100755 judge/forms.py mode change 100644 => 100755 judge/fulltext.py mode change 100644 => 100755 judge/highlight_code.py mode change 100644 => 100755 judge/jinja2/__init__.py mode change 100644 => 100755 judge/jinja2/camo.py mode change 100644 => 100755 judge/jinja2/chat.py mode change 100644 => 100755 judge/jinja2/datetime.py mode change 100644 => 100755 judge/jinja2/filesize.py mode change 100644 => 100755 judge/jinja2/gravatar.py mode change 100644 => 100755 judge/jinja2/language.py mode change 100644 => 100755 judge/jinja2/markdown/__init__.py mode change 100644 => 100755 judge/jinja2/rating.py mode change 100644 => 100755 judge/jinja2/reference.py mode change 100644 => 100755 judge/jinja2/registry.py mode change 100644 => 100755 judge/jinja2/render.py mode change 100644 => 100755 judge/jinja2/social.py mode change 100644 => 100755 judge/jinja2/spaceless.py mode change 100644 => 100755 judge/jinja2/submission.py mode change 100644 => 100755 judge/jinja2/timedelta.py mode change 100644 => 100755 judge/judgeapi.py mode change 100644 => 100755 judge/lxml_tree.py mode change 100644 => 100755 judge/management/__init__.py mode change 100644 => 100755 judge/management/commands/__init__.py mode change 100644 => 100755 judge/management/commands/addjudge.py mode change 100644 => 100755 judge/management/commands/adduser.py mode change 100644 => 100755 judge/management/commands/camo.py mode change 100644 => 100755 judge/management/commands/copy_language.py mode change 100644 => 100755 judge/management/commands/create_problem.py mode change 100644 => 100755 judge/management/commands/generate_data.py mode change 100644 => 100755 judge/management/commands/makedmojmessages.py mode change 100644 => 100755 judge/management/commands/render_pdf.py mode change 100644 => 100755 judge/management/commands/runbridged.py mode change 100644 => 100755 judge/management/commands/runmoss.py mode change 100644 => 100755 judge/middleware.py mode change 100644 => 100755 judge/migrations/0001_squashed_0084_contest_formats.py mode change 100644 => 100755 judge/migrations/0085_submission_source.py mode change 100644 => 100755 judge/migrations/0086_rating_ceiling.py mode change 100644 => 100755 judge/migrations/0087_problem_resource_limits.py mode change 100644 => 100755 judge/migrations/0088_private_contests.py mode change 100644 => 100755 judge/migrations/0089_submission_to_contest.py mode change 100644 => 100755 judge/migrations/0090_fix_contest_visibility.py mode change 100644 => 100755 judge/migrations/0091_compiler_message_ansi2html.py mode change 100644 => 100755 judge/migrations/0092_contest_clone.py mode change 100644 => 100755 judge/migrations/0093_contest_moss.py mode change 100644 => 100755 judge/migrations/0094_submissiontestcase_unique_together.py mode change 100644 => 100755 judge/migrations/0095_organization_logo_override.py mode change 100644 => 100755 judge/migrations/0096_profile_language_set_default.py mode change 100644 => 100755 judge/migrations/0097_participation_is_disqualified.py mode change 100644 => 100755 judge/migrations/0098_auto_20200123_2136.py mode change 100644 => 100755 judge/migrations/0099_custom_checker.py mode change 100644 => 100755 judge/migrations/0100_auto_20200127_0059.py mode change 100644 => 100755 judge/migrations/0101_custom_validator.py mode change 100644 => 100755 judge/migrations/0102_fix_custom_validator.py mode change 100644 => 100755 judge/migrations/0103_fix_custom_validator.py mode change 100644 => 100755 judge/migrations/0104_auto_20200410_1313.py mode change 100644 => 100755 judge/migrations/0105_auto_20200523_0756.py mode change 100644 => 100755 judge/migrations/0106_friend.py mode change 100644 => 100755 judge/migrations/0107_notification.py mode change 100644 => 100755 judge/migrations/0108_submission_judged_date.py mode change 100644 => 100755 judge/migrations/0109_auto_20201017_1151.py mode change 100644 => 100755 judge/migrations/0110_notification_author.py mode change 100644 => 100755 judge/migrations/0111_contest_decimal_points.py mode change 100644 => 100755 judge/migrations/0112_contest_view_contest_scoreboard.py mode change 100644 => 100755 judge/migrations/0113_auto_20201228_0911.py mode change 100644 => 100755 judge/migrations/0114_auto_20201228_1041.py mode change 100644 => 100755 judge/migrations/0115_auto_20210525_0222.py mode change 100644 => 100755 judge/migrations/0116_auto_20211011_0645.py mode change 100644 => 100755 judge/migrations/0117_auto_20211209_0612.py mode change 100644 => 100755 judge/migrations/0118_rating.py mode change 100644 => 100755 judge/migrations/0119_auto_20220306_0512.py mode change 100644 => 100755 judge/migrations/0120_auto_20220306_1124.py mode change 100644 => 100755 judge/migrations/0121_auto_20220415_0135.py mode change 100644 => 100755 judge/migrations/0122_auto_20220425_1202.py mode change 100644 => 100755 judge/migrations/0123_auto_20220502_2356.py mode change 100644 => 100755 judge/migrations/0124_auto_20220602_1116.py mode change 100644 => 100755 judge/migrations/0125_auto_20220602_1216.py mode change 100644 => 100755 judge/migrations/0126_languagetemplate.py mode change 100644 => 100755 judge/migrations/0127_auto_20220616_1442.py mode change 100644 => 100755 judge/migrations/0128_auto_20220620_2210.py mode change 100644 => 100755 judge/migrations/0129_auto_20220622_1424.py mode change 100644 => 100755 judge/migrations/0130_auto_20220831_1048.py mode change 100644 => 100755 judge/migrations/0131_auto_20220905_0027.py mode change 100644 => 100755 judge/migrations/0132_auto_20220915_1349.py mode change 100644 => 100755 judge/migrations/0133_auto_20221013_0850.py mode change 100644 => 100755 judge/migrations/0134_auto_20221018_0124.py mode change 100644 => 100755 judge/migrations/0135_auto_20221028_0300.py mode change 100644 => 100755 judge/migrations/0136_alter_profile_timezone.py mode change 100644 => 100755 judge/migrations/0137_auto_20221116_2201.py mode change 100644 => 100755 judge/migrations/0138_bookmark_makebookmark.py mode change 100644 => 100755 judge/migrations/0139_contest_freeze_after.py mode change 100644 => 100755 judge/migrations/0140_alter_contest_format_name.py mode change 100644 => 100755 judge/migrations/0141_contestproblem_frozen_subtasks.py mode change 100644 => 100755 judge/migrations/0142_contestparticipation_format_data_final.py mode change 100644 => 100755 judge/migrations/0143_auto_20221229_0153.py mode change 100644 => 100755 judge/migrations/0144_auto_20230103_0523.py mode change 100644 => 100755 judge/migrations/0145_alter_organization_slug.py mode change 100644 => 100755 judge/migrations/0146_alter_organization_slug.py mode change 100644 => 100755 judge/migrations/0147_alter_profile_timezone.py mode change 100644 => 100755 judge/migrations/0148_course_courseassignment_courseresource_courserole.py mode change 100644 => 100755 judge/migrations/0149_auto_20230202_0902.py mode change 100644 => 100755 judge/migrations/0150_alter_profile_timezone.py mode change 100644 => 100755 judge/migrations/0151_comment_content_type.py mode change 100644 => 100755 judge/migrations/0152_migrate_comments.py mode change 100644 => 100755 judge/migrations/0153_drop_comment_page.py mode change 100644 => 100755 judge/migrations/0154_add_submission_indexes.py mode change 100644 => 100755 judge/migrations/0155_output_only.py mode change 100644 => 100755 judge/migrations/__init__.py mode change 100644 => 100755 judge/ml/collab_filter.py mode change 100644 => 100755 judge/models/__init__.py mode change 100644 => 100755 judge/models/bookmark.py mode change 100644 => 100755 judge/models/choices.py mode change 100644 => 100755 judge/models/comment.py mode change 100644 => 100755 judge/models/contest.py mode change 100644 => 100755 judge/models/course.py mode change 100644 => 100755 judge/models/interface.py mode change 100644 => 100755 judge/models/message.py mode change 100644 => 100755 judge/models/pagevote.py mode change 100644 => 100755 judge/models/problem.py mode change 100644 => 100755 judge/models/problem_data.py mode change 100644 => 100755 judge/models/profile.py mode change 100644 => 100755 judge/models/runtime.py mode change 100644 => 100755 judge/models/submission.py mode change 100644 => 100755 judge/models/ticket.py mode change 100644 => 100755 judge/models/volunteer.py mode change 100644 => 100755 judge/pdf_problems.py mode change 100644 => 100755 judge/performance_points.py mode change 100644 => 100755 judge/ratings.py mode change 100644 => 100755 judge/signals.py mode change 100644 => 100755 judge/sitemap.py mode change 100644 => 100755 judge/social_auth.py mode change 100644 => 100755 judge/tasks/__init__.py mode change 100644 => 100755 judge/tasks/contest.py mode change 100644 => 100755 judge/tasks/demo.py mode change 100644 => 100755 judge/tasks/experiment.py mode change 100644 => 100755 judge/tasks/import_users.py mode change 100644 => 100755 judge/tasks/submission.py mode change 100644 => 100755 judge/template_context.py mode change 100644 => 100755 judge/templatetags/__init__.py mode change 100644 => 100755 judge/templatetags/code_highlight.py mode change 100644 => 100755 judge/templatetags/counter.py mode change 100644 => 100755 judge/templatetags/dicts.py mode change 100644 => 100755 judge/templatetags/list_processor.py mode change 100644 => 100755 judge/templatetags/strings.py mode change 100644 => 100755 judge/tests.py mode change 100644 => 100755 judge/timezone.py mode change 100644 => 100755 judge/user_log.py mode change 100644 => 100755 judge/user_translations.py mode change 100644 => 100755 judge/utils/__init__.py mode change 100644 => 100755 judge/utils/cachedict.py mode change 100644 => 100755 judge/utils/camo.py mode change 100644 => 100755 judge/utils/caniuse.py mode change 100644 => 100755 judge/utils/celery.py mode change 100644 => 100755 judge/utils/diggpaginator.py mode change 100644 => 100755 judge/utils/file_cache.py mode change 100644 => 100755 judge/utils/fine_uploader.py mode change 100644 => 100755 judge/utils/infinite_paginator.py mode change 100644 => 100755 judge/utils/mathoid.py mode change 100644 => 100755 judge/utils/opengraph.py mode change 100644 => 100755 judge/utils/problem_data.py mode change 100644 => 100755 judge/utils/problems.py mode change 100644 => 100755 judge/utils/pwned.py mode change 100644 => 100755 judge/utils/ranker.py mode change 100644 => 100755 judge/utils/raw_sql.py mode change 100644 => 100755 judge/utils/recaptcha.py mode change 100644 => 100755 judge/utils/stats.py mode change 100644 => 100755 judge/utils/strings.py mode change 100644 => 100755 judge/utils/texoid.py mode change 100644 => 100755 judge/utils/tickets.py mode change 100644 => 100755 judge/utils/timedelta.py mode change 100644 => 100755 judge/utils/unicode.py mode change 100644 => 100755 judge/utils/views.py mode change 100644 => 100755 judge/views/__init__.py mode change 100644 => 100755 judge/views/about.py mode change 100644 => 100755 judge/views/api/__init__.py mode change 100644 => 100755 judge/views/api/api_v1.py mode change 100644 => 100755 judge/views/api/api_v2.py mode change 100644 => 100755 judge/views/blog.py mode change 100644 => 100755 judge/views/bookmark.py mode change 100644 => 100755 judge/views/comment.py mode change 100644 => 100755 judge/views/contests.py mode change 100644 => 100755 judge/views/course.py mode change 100644 => 100755 judge/views/error.py mode change 100644 => 100755 judge/views/feed.py mode change 100644 => 100755 judge/views/internal.py mode change 100644 => 100755 judge/views/language.py mode change 100644 => 100755 judge/views/license.py mode change 100644 => 100755 judge/views/mailgun.py mode change 100644 => 100755 judge/views/notification.py mode change 100644 => 100755 judge/views/organization.py mode change 100644 => 100755 judge/views/pagevote.py mode change 100644 => 100755 judge/views/preview.py mode change 100644 => 100755 judge/views/problem.py mode change 100644 => 100755 judge/views/problem_data.py mode change 100644 => 100755 judge/views/problem_manage.py mode change 100644 => 100755 judge/views/ranked_submission.py mode change 100644 => 100755 judge/views/register.py mode change 100644 => 100755 judge/views/resolver.py mode change 100644 => 100755 judge/views/select2.py mode change 100644 => 100755 judge/views/stats.py mode change 100644 => 100755 judge/views/status.py mode change 100644 => 100755 judge/views/submission.py mode change 100644 => 100755 judge/views/tasks.py mode change 100644 => 100755 judge/views/ticket.py mode change 100644 => 100755 judge/views/totp.py mode change 100644 => 100755 judge/views/user.py mode change 100644 => 100755 judge/views/volunteer.py mode change 100644 => 100755 judge/views/widgets.py mode change 100644 => 100755 judge/widgets/__init__.py mode change 100644 => 100755 judge/widgets/checkbox.py mode change 100644 => 100755 judge/widgets/datetime.py mode change 100644 => 100755 judge/widgets/mixins.py mode change 100644 => 100755 judge/widgets/pagedown.py mode change 100644 => 100755 judge/widgets/select2.py mode change 100644 => 100755 locale/ar/LC_MESSAGES/django.po mode change 100644 => 100755 locale/ar/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/de/LC_MESSAGES/django.po mode change 100644 => 100755 locale/de/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/en/LC_MESSAGES/django.po mode change 100644 => 100755 locale/en/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/es/LC_MESSAGES/django.po mode change 100644 => 100755 locale/es/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/fr/LC_MESSAGES/django.po mode change 100644 => 100755 locale/fr/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/hr/LC_MESSAGES/django.po mode change 100644 => 100755 locale/hr/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/hu/LC_MESSAGES/django.po mode change 100644 => 100755 locale/hu/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/it/LC_MESSAGES/django.po mode change 100644 => 100755 locale/it/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/ja/LC_MESSAGES/django.po mode change 100644 => 100755 locale/ja/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/ko/LC_MESSAGES/django.po mode change 100644 => 100755 locale/ko/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/lt/LC_MESSAGES/django.po mode change 100644 => 100755 locale/lt/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/nl/LC_MESSAGES/django.po mode change 100644 => 100755 locale/nl/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/pl/LC_MESSAGES/django.po mode change 100644 => 100755 locale/pl/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/pt/LC_MESSAGES/django.po mode change 100644 => 100755 locale/pt/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/ro/LC_MESSAGES/django.po mode change 100644 => 100755 locale/ro/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/ru/LC_MESSAGES/django.po mode change 100644 => 100755 locale/ru/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/ru/LC_MESSAGES/dmoj-user.po mode change 100644 => 100755 locale/sr/LC_MESSAGES/django.po mode change 100644 => 100755 locale/sr/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/sr/LC_MESSAGES/dmoj-user.po mode change 100644 => 100755 locale/sr_Latn/LC_MESSAGES/django.po mode change 100644 => 100755 locale/sr_Latn/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/tr/LC_MESSAGES/django.po mode change 100644 => 100755 locale/tr/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/vi/LC_MESSAGES/django.po mode change 100644 => 100755 locale/vi/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/vi/LC_MESSAGES/dmoj-user.po mode change 100644 => 100755 locale/zh_Hans/LC_MESSAGES/django.po mode change 100644 => 100755 locale/zh_Hans/LC_MESSAGES/djangojs.po mode change 100644 => 100755 locale/zh_Hant/LC_MESSAGES/django.po mode change 100644 => 100755 locale/zh_Hant/LC_MESSAGES/djangojs.po mode change 100644 => 100755 logo.png mode change 100644 => 100755 manifest.json mode change 100644 => 100755 requirements.txt mode change 100644 => 100755 resources/admin/css/pagedown.css mode change 100644 => 100755 resources/admin/css/select2bootstrap.css mode change 100644 => 100755 resources/awards/bronze-medal.png mode change 100644 => 100755 resources/awards/gold-medal.png mode change 100644 => 100755 resources/awards/medals.png mode change 100644 => 100755 resources/awards/silver-medal.png mode change 100644 => 100755 resources/base.scss mode change 100644 => 100755 resources/blank.gif mode change 100644 => 100755 resources/blog.scss mode change 100644 => 100755 resources/chatbox.scss mode change 100644 => 100755 resources/comments.scss mode change 100644 => 100755 resources/common.js mode change 100644 => 100755 resources/content-description.scss mode change 100644 => 100755 resources/contest.json mode change 100644 => 100755 resources/contest.scss mode change 100644 => 100755 resources/darkmode-svg.css mode change 100644 => 100755 resources/darkmode.css mode change 100644 => 100755 resources/django_select2.js mode change 100644 => 100755 resources/dmmd-preview.css mode change 100644 => 100755 resources/dmmd-preview.js mode change 100644 => 100755 resources/dmmd-preview.scss mode change 100644 => 100755 resources/event.js mode change 100644 => 100755 resources/favicon.ico mode change 100644 => 100755 resources/fine-uploader/LICENSE mode change 100644 => 100755 resources/fine-uploader/continue.gif mode change 100644 => 100755 resources/fine-uploader/dnd.js mode change 100644 => 100755 resources/fine-uploader/dnd.js.map mode change 100644 => 100755 resources/fine-uploader/dnd.min.js mode change 100644 => 100755 resources/fine-uploader/dnd.min.js.map mode change 100644 => 100755 resources/fine-uploader/edit.gif mode change 100644 => 100755 resources/fine-uploader/fine-uploader-gallery.css mode change 100644 => 100755 resources/fine-uploader/fine-uploader-gallery.min.css mode change 100644 => 100755 resources/fine-uploader/fine-uploader-gallery.min.css.map mode change 100644 => 100755 resources/fine-uploader/fine-uploader-new.css mode change 100644 => 100755 resources/fine-uploader/fine-uploader-new.min.css mode change 100644 => 100755 resources/fine-uploader/fine-uploader-new.min.css.map mode change 100644 => 100755 resources/fine-uploader/fine-uploader.core.js mode change 100644 => 100755 resources/fine-uploader/fine-uploader.core.js.map mode change 100644 => 100755 resources/fine-uploader/fine-uploader.core.min.js mode change 100644 => 100755 resources/fine-uploader/fine-uploader.core.min.js.map mode change 100644 => 100755 resources/fine-uploader/fine-uploader.css mode change 100644 => 100755 resources/fine-uploader/fine-uploader.js mode change 100644 => 100755 resources/fine-uploader/fine-uploader.js.map mode change 100644 => 100755 resources/fine-uploader/fine-uploader.min.css mode change 100644 => 100755 resources/fine-uploader/fine-uploader.min.css.map mode change 100644 => 100755 resources/fine-uploader/fine-uploader.min.js mode change 100644 => 100755 resources/fine-uploader/fine-uploader.min.js.map mode change 100644 => 100755 resources/fine-uploader/jquery.fine-uploader.js mode change 100644 => 100755 resources/fine-uploader/jquery.fine-uploader.js.map mode change 100644 => 100755 resources/fine-uploader/jquery.fine-uploader.min.js mode change 100644 => 100755 resources/fine-uploader/jquery.fine-uploader.min.js.map mode change 100644 => 100755 resources/fine-uploader/loading.gif mode change 100644 => 100755 resources/fine-uploader/pause.gif mode change 100644 => 100755 resources/fine-uploader/processing.gif mode change 100644 => 100755 resources/fine-uploader/retry.gif mode change 100644 => 100755 resources/fine-uploader/templates/default.html mode change 100644 => 100755 resources/fine-uploader/templates/gallery.html mode change 100644 => 100755 resources/fine-uploader/templates/simple-thumbnails.html mode change 100644 => 100755 resources/fine-uploader/trash.gif mode change 100644 => 100755 resources/icofont.min.css mode change 100644 => 100755 resources/icofont/demo.html mode change 100644 => 100755 resources/icofont/fonts/icofont.eot mode change 100644 => 100755 resources/icofont/fonts/icofont.svg mode change 100644 => 100755 resources/icofont/fonts/icofont.ttf mode change 100644 => 100755 resources/icofont/fonts/icofont.woff mode change 100644 => 100755 resources/icofont/fonts/icofont.woff2 mode change 100644 => 100755 resources/icofont/icofont.css mode change 100644 => 100755 resources/icofont/icofont.min.css mode change 100644 => 100755 resources/icons/android-chrome-192x192.png mode change 100644 => 100755 resources/icons/apple-touch-icon.png mode change 100644 => 100755 resources/icons/browserconfig.xml mode change 100644 => 100755 resources/icons/favicon-16x16.png mode change 100644 => 100755 resources/icons/favicon-32x32.png mode change 100644 => 100755 resources/icons/favicon.ico mode change 100644 => 100755 resources/icons/icon.png mode change 100644 => 100755 resources/icons/logo_original.png mode change 100644 => 100755 resources/icons/manifest.json mode change 100644 => 100755 resources/icons/old/android-chrome-144x144.png mode change 100644 => 100755 resources/icons/old/android-chrome-192x192.png mode change 100644 => 100755 resources/icons/old/android-chrome-36x36.png mode change 100644 => 100755 resources/icons/old/android-chrome-48x48.png mode change 100644 => 100755 resources/icons/old/android-chrome-72x72.png mode change 100644 => 100755 resources/icons/old/android-chrome-96x96.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-114x114-precomposed.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-114x114.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-120x120-precomposed.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-120x120.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-144x144-precomposed.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-144x144.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-152x152-precomposed.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-152x152.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-180x180-precomposed.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-180x180.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-57x57-precomposed.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-57x57.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-60x60-precomposed.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-60x60.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-72x72-precomposed.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-72x72.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-76x76-precomposed.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-76x76.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon-precomposed.png mode change 100644 => 100755 resources/icons/old/apple-touch-icon.png mode change 100644 => 100755 resources/icons/old/browserconfig.xml mode change 100644 => 100755 resources/icons/old/favicon-16x16.png mode change 100644 => 100755 resources/icons/old/favicon-32x32.png mode change 100644 => 100755 resources/icons/old/favicon.ico mode change 100644 => 100755 resources/icons/old/logo_old.png mode change 100644 => 100755 resources/icons/old/mstile-144x144.png mode change 100644 => 100755 resources/icons/old/mstile-150x150.png mode change 100644 => 100755 resources/icons/old/mstile-310x150.png mode change 100644 => 100755 resources/icons/old/mstile-310x310.png mode change 100644 => 100755 resources/icons/old/mstile-70x70.png mode change 100644 => 100755 resources/icons/old/safari-pinned-tab.svg mode change 100644 => 100755 resources/icons/reload.png mode change 100644 => 100755 resources/icons/site.webmanifest mode change 100644 => 100755 resources/jquery-ui.min.js mode change 100644 => 100755 resources/jszip/jszip.min.js mode change 100644 => 100755 resources/libs/README.md mode change 100644 => 100755 resources/libs/chart.js/Chart.js mode change 100644 => 100755 resources/libs/clipboard/clipboard.js mode change 100644 => 100755 resources/libs/clipboard/tooltip.css mode change 100644 => 100755 resources/libs/clipboard/tooltip.js mode change 100644 => 100755 resources/libs/featherlight/featherlight.min.css mode change 100644 => 100755 resources/libs/featherlight/featherlight.min.js mode change 100644 => 100755 resources/libs/fontawesome/font-awesome.css mode change 100644 => 100755 resources/libs/fontawesome/fontawesome-webfont.eot mode change 100644 => 100755 resources/libs/fontawesome/fontawesome-webfont.svg mode change 100644 => 100755 resources/libs/fontawesome/fontawesome-webfont.ttf mode change 100644 => 100755 resources/libs/fontawesome/fontawesome-webfont.woff mode change 100644 => 100755 resources/libs/fontawesome/fontawesome-webfont.woff2 mode change 100644 => 100755 resources/libs/jquery-3.4.1.min.js mode change 100644 => 100755 resources/libs/jquery-cookie.js mode change 100644 => 100755 resources/libs/jquery-sortable.js mode change 100644 => 100755 resources/libs/jquery-taphold.js mode change 100644 => 100755 resources/libs/jquery.unveil.js mode change 100644 => 100755 resources/libs/latinmodernmath/latinmodern-math.eot mode change 100644 => 100755 resources/libs/latinmodernmath/latinmodern-math.ttf mode change 100644 => 100755 resources/libs/latinmodernmath/latinmodern-math.woff mode change 100644 => 100755 resources/libs/latinmodernmath/latinmodern-math.woff2 mode change 100644 => 100755 resources/libs/moment.js mode change 100644 => 100755 resources/libs/nouislider.min.css mode change 100644 => 100755 resources/libs/nouislider.min.js mode change 100644 => 100755 resources/libs/raven.min.js mode change 100644 => 100755 resources/libs/select2/select2.css mode change 100644 => 100755 resources/libs/select2/select2.js mode change 100644 => 100755 resources/libs/tablesorter.js mode change 100644 => 100755 resources/libs/timezone-map/timezone-map.css mode change 100644 => 100755 resources/libs/timezone-map/timezone-picker.js mode change 100644 => 100755 resources/libs/timezone-map/timezone-picker.json mode change 100644 => 100755 resources/loading.gif mode change 100644 => 100755 resources/markdown.css mode change 100644 => 100755 resources/math.scss mode change 100644 => 100755 resources/mathjax3_config.js mode change 100644 => 100755 resources/misc.scss mode change 100644 => 100755 resources/organization.scss mode change 100644 => 100755 resources/pagedown/LICENSE.txt mode change 100644 => 100755 resources/pagedown/Markdown.Converter.js mode change 100644 => 100755 resources/pagedown/Markdown.Editor.js mode change 100644 => 100755 resources/pagedown/Markdown.Sanitizer.js mode change 100644 => 100755 resources/pagedown/README.md mode change 100644 => 100755 resources/pagedown/demo/browser/demo.css mode change 100644 => 100755 resources/pagedown/demo/browser/demo.html mode change 100644 => 100755 resources/pagedown/demo/node/demo.js mode change 100644 => 100755 resources/pagedown/local/Markdown.local.fr.js mode change 100644 => 100755 resources/pagedown/node-pagedown.js mode change 100644 => 100755 resources/pagedown/package.json mode change 100644 => 100755 resources/pagedown/resources/admonition.svg mode change 100644 => 100755 resources/pagedown/resources/blockquote.svg mode change 100644 => 100755 resources/pagedown/resources/bold.svg mode change 100644 => 100755 resources/pagedown/resources/code.svg mode change 100644 => 100755 resources/pagedown/resources/heading.svg mode change 100644 => 100755 resources/pagedown/resources/hr.svg mode change 100644 => 100755 resources/pagedown/resources/image.svg mode change 100644 => 100755 resources/pagedown/resources/italic.svg mode change 100644 => 100755 resources/pagedown/resources/latex-display.svg mode change 100644 => 100755 resources/pagedown/resources/latex.svg mode change 100644 => 100755 resources/pagedown/resources/link.svg mode change 100644 => 100755 resources/pagedown/resources/olist.svg mode change 100644 => 100755 resources/pagedown/resources/redo.svg mode change 100644 => 100755 resources/pagedown/resources/spoiler.svg mode change 100644 => 100755 resources/pagedown/resources/ulist.svg mode change 100644 => 100755 resources/pagedown/resources/undo.svg mode change 100644 => 100755 resources/pagedown/resources/user.svg mode change 100644 => 100755 resources/pagedown/resources/wmd-buttons.pdn mode change 100644 => 100755 resources/pagedown/resources/wmd-buttons.png mode change 100644 => 100755 resources/pagedown/resources/wmd-buttons.psd mode change 100644 => 100755 resources/pagedown/wmd-buttons.png mode change 100644 => 100755 resources/pagedown_math.js mode change 100644 => 100755 resources/pagedown_widget.css mode change 100644 => 100755 resources/pagedown_widget.scss mode change 100644 => 100755 resources/problem.scss mode change 100644 => 100755 resources/problem_edit.css mode change 100644 => 100755 resources/pygment-github.css mode change 100644 => 100755 resources/ranks.scss mode change 100644 => 100755 resources/resolver.css mode change 100644 => 100755 resources/resolver.js mode change 100644 => 100755 resources/site.webmanifest mode change 100644 => 100755 resources/status.scss mode change 100644 => 100755 resources/style.scss mode change 100644 => 100755 resources/submission.scss mode change 100644 => 100755 resources/table.scss mode change 100644 => 100755 resources/task_status.css mode change 100644 => 100755 resources/ticket.scss mode change 100644 => 100755 resources/unselectable.htc mode change 100644 => 100755 resources/users.scss mode change 100644 => 100755 resources/vars.scss mode change 100644 => 100755 resources/widgets.scss mode change 100644 => 100755 resources/wpadmin/css/wpadmin.site.css mode change 100644 => 100755 robots.txt mode change 100644 => 100755 templates/about/about.html mode change 100644 => 100755 templates/about/custom-checker-sample.html mode change 100644 => 100755 templates/actionbar/list.html mode change 100644 => 100755 templates/actionbar/media-js.html mode change 100644 => 100755 templates/admin/auth/user/change_form.html mode change 100644 => 100755 templates/admin/judge/contest/change_form.html mode change 100644 => 100755 templates/admin/judge/contest/change_list.html mode change 100644 => 100755 templates/admin/judge/judge/change_form.html mode change 100644 => 100755 templates/admin/judge/problem/change_form.html mode change 100644 => 100755 templates/admin/judge/profile/change_form.html mode change 100644 => 100755 templates/admin/judge/submission/change_form.html mode change 100644 => 100755 templates/base.html mode change 100644 => 100755 templates/blog/blog.html mode change 100644 => 100755 templates/blog/content.html mode change 100644 => 100755 templates/blog/dashboard.html mode change 100644 => 100755 templates/blog/list.html mode change 100644 => 100755 templates/blog/media-css.html mode change 100644 => 100755 templates/blog/preview.html mode change 100644 => 100755 templates/chat/chat.html mode change 100644 => 100755 templates/chat/chat_css.html mode change 100644 => 100755 templates/chat/message.html mode change 100644 => 100755 templates/chat/message_list.html mode change 100644 => 100755 templates/chat/online_status.html mode change 100644 => 100755 templates/chat/user_online_status.html create mode 100755 templates/comments/content-list.html mode change 100644 => 100755 templates/comments/content.html mode change 100644 => 100755 templates/comments/edit-ajax.html mode change 100644 => 100755 templates/comments/edit.html mode change 100644 => 100755 templates/comments/feed.html mode change 100644 => 100755 templates/comments/list.html mode change 100644 => 100755 templates/comments/math.html mode change 100644 => 100755 templates/comments/media-css.html mode change 100644 => 100755 templates/comments/media-js.html mode change 100644 => 100755 templates/comments/preview.html mode change 100644 => 100755 templates/comments/revision-ajax.html mode change 100644 => 100755 templates/comments/votes.html mode change 100644 => 100755 templates/common-content.html mode change 100644 => 100755 templates/contest/access_code.html mode change 100644 => 100755 templates/contest/calendar.html mode change 100644 => 100755 templates/contest/clarification.html mode change 100644 => 100755 templates/contest/clone.html mode change 100644 => 100755 templates/contest/contest-datetime.html mode change 100644 => 100755 templates/contest/contest-list-tabs.html mode change 100644 => 100755 templates/contest/contest-tabs.html mode change 100644 => 100755 templates/contest/contest.html mode change 100644 => 100755 templates/contest/list.html mode change 100644 => 100755 templates/contest/media-js.html mode change 100644 => 100755 templates/contest/moss.html mode change 100644 => 100755 templates/contest/preview.html mode change 100644 => 100755 templates/contest/private.html mode change 100644 => 100755 templates/contest/ranking-css.html mode change 100644 => 100755 templates/contest/ranking-table.html mode change 100644 => 100755 templates/contest/ranking.html mode change 100644 => 100755 templates/contest/stats.html mode change 100644 => 100755 templates/contest/tag-ajax.html mode change 100644 => 100755 templates/contest/tag-title.html mode change 100644 => 100755 templates/contest/tag.html mode change 100644 => 100755 templates/contests-countdown.html mode change 100644 => 100755 templates/course/base.html mode change 100644 => 100755 templates/course/list.html mode change 100644 => 100755 templates/error.html mode change 100644 => 100755 templates/extra_js.html mode change 100644 => 100755 templates/feed/feed_js.html mode change 100644 => 100755 templates/feed/has_next.html mode change 100644 => 100755 templates/fine_uploader/script.html mode change 100644 => 100755 templates/flatpages/admin_link.html mode change 100644 => 100755 templates/flatpages/default.html mode change 100644 => 100755 templates/flatpages/markdown.html mode change 100644 => 100755 templates/flatpages/markdown_math.html mode change 100644 => 100755 templates/generic-message.html mode change 100644 => 100755 templates/home.html mode change 100644 => 100755 templates/internal/left-sidebar.html mode change 100644 => 100755 templates/internal/problem.html mode change 100644 => 100755 templates/internal/request_time.html mode change 100644 => 100755 templates/internal/request_time_detail.html mode change 100644 => 100755 templates/license-preview.html mode change 100644 => 100755 templates/license.html mode change 100644 => 100755 templates/list-pages.html mode change 100644 => 100755 templates/loading-page.html mode change 100644 => 100755 templates/mathjax-load.html mode change 100644 => 100755 templates/messages.html mode change 100644 => 100755 templates/notification/list.html mode change 100644 => 100755 templates/organization/add-member.html mode change 100644 => 100755 templates/organization/add.html mode change 100644 => 100755 templates/organization/blog/add.html mode change 100644 => 100755 templates/organization/blog/edit.html mode change 100644 => 100755 templates/organization/blog/pending.html mode change 100644 => 100755 templates/organization/contest/add.html mode change 100644 => 100755 templates/organization/contest/edit.html mode change 100644 => 100755 templates/organization/contests.html mode change 100644 => 100755 templates/organization/edit.html mode change 100644 => 100755 templates/organization/form.html mode change 100644 => 100755 templates/organization/home-base.html mode change 100644 => 100755 templates/organization/home-js.html mode change 100644 => 100755 templates/organization/home.html mode change 100644 => 100755 templates/organization/list.html mode change 100644 => 100755 templates/organization/new.html mode change 100644 => 100755 templates/organization/org-left-sidebar.html mode change 100644 => 100755 templates/organization/org-right-sidebar.html mode change 100644 => 100755 templates/organization/preview.html mode change 100644 => 100755 templates/organization/problems.html mode change 100644 => 100755 templates/organization/requests/detail.html mode change 100644 => 100755 templates/organization/requests/log.html mode change 100644 => 100755 templates/organization/requests/pending.html mode change 100644 => 100755 templates/organization/requests/request.html mode change 100644 => 100755 templates/organization/requests/tabs.html mode change 100644 => 100755 templates/organization/submissions.html mode change 100644 => 100755 templates/organization/users-table.html mode change 100644 => 100755 templates/organization/users.html mode change 100644 => 100755 templates/pagedown.html mode change 100644 => 100755 templates/pagedown/widgets/default.html mode change 100644 => 100755 templates/problem/clone.html mode change 100644 => 100755 templates/problem/data.html mode change 100644 => 100755 templates/problem/editorial.html mode change 100644 => 100755 templates/problem/feed.html mode change 100644 => 100755 templates/problem/feed/problems.html mode change 100644 => 100755 templates/problem/left-sidebar.html mode change 100644 => 100755 templates/problem/list-base.html mode change 100644 => 100755 templates/problem/list.html mode change 100644 => 100755 templates/problem/manage_submission.html mode change 100644 => 100755 templates/problem/preview.html mode change 100644 => 100755 templates/problem/problem-list-tabs.html mode change 100644 => 100755 templates/problem/problem.html mode change 100644 => 100755 templates/problem/raw.html mode change 100644 => 100755 templates/problem/recent-attempt.html mode change 100644 => 100755 templates/problem/related_problems.html mode change 100644 => 100755 templates/problem/search-form.html mode change 100644 => 100755 templates/problem/submission-diff.html mode change 100644 => 100755 templates/problem/submit.html mode change 100644 => 100755 templates/problem/yaml.html mode change 100644 => 100755 templates/recent-organization.html mode change 100644 => 100755 templates/registration/activate.html mode change 100644 => 100755 templates/registration/activation_complete.html mode change 100644 => 100755 templates/registration/activation_email.html mode change 100644 => 100755 templates/registration/activation_email.txt mode change 100644 => 100755 templates/registration/activation_email_subject.txt mode change 100644 => 100755 templates/registration/login.html mode change 100644 => 100755 templates/registration/logout.html mode change 100644 => 100755 templates/registration/password_change_done.html mode change 100644 => 100755 templates/registration/password_change_form.html mode change 100644 => 100755 templates/registration/password_reset.html mode change 100644 => 100755 templates/registration/password_reset_complete.html mode change 100644 => 100755 templates/registration/password_reset_confirm.html mode change 100644 => 100755 templates/registration/password_reset_done.html mode change 100644 => 100755 templates/registration/password_reset_email.html mode change 100644 => 100755 templates/registration/password_reset_email.txt mode change 100644 => 100755 templates/registration/password_reset_subject.txt mode change 100644 => 100755 templates/registration/profile_creation.html mode change 100644 => 100755 templates/registration/registration_closed.html mode change 100644 => 100755 templates/registration/registration_complete.html mode change 100644 => 100755 templates/registration/registration_form.html mode change 100644 => 100755 templates/registration/totp_auth.html mode change 100644 => 100755 templates/registration/totp_disable.html mode change 100644 => 100755 templates/registration/totp_enable.html mode change 100644 => 100755 templates/registration/username_select.html mode change 100644 => 100755 templates/resolver/media-js.html mode change 100644 => 100755 templates/resolver/resolver.html mode change 100644 => 100755 templates/runtime-version-fragment.html mode change 100644 => 100755 templates/site-logo-fragment.html mode change 100644 => 100755 templates/solution-preview.html mode change 100644 => 100755 templates/stats/base.html mode change 100644 => 100755 templates/stats/language.html mode change 100644 => 100755 templates/stats/media-js.html mode change 100644 => 100755 templates/stats/site.html mode change 100644 => 100755 templates/stats/tab.html mode change 100644 => 100755 templates/status/judge-status-table.html mode change 100644 => 100755 templates/status/judge-status.html mode change 100644 => 100755 templates/status/language-list.html mode change 100644 => 100755 templates/status/media-css.html mode change 100644 => 100755 templates/status/media-js.html mode change 100644 => 100755 templates/status/status-tabs.html mode change 100644 => 100755 templates/status/versions.html mode change 100644 => 100755 templates/submission/info-base.html mode change 100644 => 100755 templates/submission/internal-error-message.html mode change 100644 => 100755 templates/submission/list.html mode change 100644 => 100755 templates/submission/row.html mode change 100644 => 100755 templates/submission/source.html mode change 100644 => 100755 templates/submission/status-testcases.html mode change 100644 => 100755 templates/submission/status.html mode change 100644 => 100755 templates/submission/submission-list-tabs.html mode change 100644 => 100755 templates/submission/user-ajax.html mode change 100644 => 100755 templates/tabs-base.html mode change 100644 => 100755 templates/task_status.html mode change 100644 => 100755 templates/three-column-content.html mode change 100644 => 100755 templates/ticket/edit-notes.html mode change 100644 => 100755 templates/ticket/feed.html mode change 100644 => 100755 templates/ticket/list.html mode change 100644 => 100755 templates/ticket/message.html mode change 100644 => 100755 templates/ticket/new.html mode change 100644 => 100755 templates/ticket/new_problem.html mode change 100644 => 100755 templates/ticket/preview.html mode change 100644 => 100755 templates/ticket/row.html mode change 100644 => 100755 templates/ticket/ticket.html mode change 100644 => 100755 templates/time-remaining-fragment.html mode change 100644 => 100755 templates/timezone/media-css.html mode change 100644 => 100755 templates/timezone/media-js.html mode change 100644 => 100755 templates/top-users.html mode change 100644 => 100755 templates/two-column-content.html mode change 100644 => 100755 templates/user/base-users-js.html mode change 100644 => 100755 templates/user/base-users-table.html mode change 100644 => 100755 templates/user/base-users-two-col.html mode change 100644 => 100755 templates/user/edit-profile.html mode change 100644 => 100755 templates/user/import/index.html mode change 100644 => 100755 templates/user/import/table_csv.html mode change 100644 => 100755 templates/user/link-list.html mode change 100644 => 100755 templates/user/link.html mode change 100644 => 100755 templates/user/list.html mode change 100644 => 100755 templates/user/pp-row.html mode change 100644 => 100755 templates/user/pp-table-body.html mode change 100644 => 100755 templates/user/preview.html mode change 100644 => 100755 templates/user/rating.html mode change 100644 => 100755 templates/user/user-about.html mode change 100644 => 100755 templates/user/user-base.html mode change 100644 => 100755 templates/user/user-bookmarks.html mode change 100644 => 100755 templates/user/user-left-sidebar.html mode change 100644 => 100755 templates/user/user-list-tabs.html mode change 100644 => 100755 templates/user/user-problems.html mode change 100644 => 100755 templates/user/user-tabs.html mode change 100644 => 100755 templates/user/users-table.html mode change 100644 => 100755 templates/widgets/datetimepicker.html mode change 100644 => 100755 templates/widgets/fine_uploader.html mode change 100644 => 100755 templates/widgets/relative-time.html mode change 100644 => 100755 templates/widgets/select_all.html mode change 100644 => 100755 websocket/config.js mode change 100644 => 100755 websocket/daemon.js mode change 100644 => 100755 websocket/wscat.js diff --git a/.browserslistrc b/.browserslistrc old mode 100644 new mode 100755 diff --git a/.flake8 b/.flake8 old mode 100644 new mode 100755 diff --git a/.github/workflows/init.yml b/.github/workflows/init.yml old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml old mode 100644 new mode 100755 diff --git a/502.html b/502.html old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/chat_box/__init__.py b/chat_box/__init__.py old mode 100644 new mode 100755 diff --git a/chat_box/apps.py b/chat_box/apps.py old mode 100644 new mode 100755 diff --git a/chat_box/migrations/0001_initial.py b/chat_box/migrations/0001_initial.py old mode 100644 new mode 100755 diff --git a/chat_box/migrations/0002_message_hidden.py b/chat_box/migrations/0002_message_hidden.py old mode 100644 new mode 100755 diff --git a/chat_box/migrations/0003_auto_20200505_2306.py b/chat_box/migrations/0003_auto_20200505_2306.py old mode 100644 new mode 100755 diff --git a/chat_box/migrations/0004_auto_20200505_2336.py b/chat_box/migrations/0004_auto_20200505_2336.py old mode 100644 new mode 100755 diff --git a/chat_box/migrations/0005_auto_20211011_0714.py b/chat_box/migrations/0005_auto_20211011_0714.py old mode 100644 new mode 100755 diff --git a/chat_box/migrations/0006_userroom.py b/chat_box/migrations/0006_userroom.py old mode 100644 new mode 100755 diff --git a/chat_box/migrations/0007_auto_20211112_1255.py b/chat_box/migrations/0007_auto_20211112_1255.py old mode 100644 new mode 100755 diff --git a/chat_box/migrations/0008_ignore.py b/chat_box/migrations/0008_ignore.py old mode 100644 new mode 100755 diff --git a/chat_box/migrations/0009_auto_20220618_1452.py b/chat_box/migrations/0009_auto_20220618_1452.py old mode 100644 new mode 100755 diff --git a/chat_box/migrations/0010_auto_20221028_0300.py b/chat_box/migrations/0010_auto_20221028_0300.py old mode 100644 new mode 100755 diff --git a/chat_box/migrations/0011_alter_message_hidden.py b/chat_box/migrations/0011_alter_message_hidden.py old mode 100644 new mode 100755 diff --git a/chat_box/migrations/0012_auto_20230308_1417.py b/chat_box/migrations/0012_auto_20230308_1417.py old mode 100644 new mode 100755 diff --git a/chat_box/migrations/__init__.py b/chat_box/migrations/__init__.py old mode 100644 new mode 100755 diff --git a/chat_box/models.py b/chat_box/models.py old mode 100644 new mode 100755 diff --git a/chat_box/utils.py b/chat_box/utils.py old mode 100644 new mode 100755 diff --git a/chat_box/views.py b/chat_box/views.py old mode 100644 new mode 100755 diff --git a/django_2_2_pymysql_patch.py b/django_2_2_pymysql_patch.py old mode 100644 new mode 100755 diff --git a/django_ace/__init__.py b/django_ace/__init__.py old mode 100644 new mode 100755 diff --git a/django_ace/static/django_ace/img/contract.png b/django_ace/static/django_ace/img/contract.png old mode 100644 new mode 100755 diff --git a/django_ace/static/django_ace/img/expand.png b/django_ace/static/django_ace/img/expand.png old mode 100644 new mode 100755 diff --git a/django_ace/static/django_ace/widget.css b/django_ace/static/django_ace/widget.css old mode 100644 new mode 100755 diff --git a/django_ace/static/django_ace/widget.js b/django_ace/static/django_ace/widget.js old mode 100644 new mode 100755 diff --git a/django_ace/widgets.py b/django_ace/widgets.py old mode 100644 new mode 100755 diff --git a/dmoj/__init__.py b/dmoj/__init__.py old mode 100644 new mode 100755 diff --git a/dmoj/celery.py b/dmoj/celery.py old mode 100644 new mode 100755 diff --git a/dmoj/settings.py b/dmoj/settings.py old mode 100644 new mode 100755 index 47abcb8..80c883a --- a/dmoj/settings.py +++ b/dmoj/settings.py @@ -219,6 +219,7 @@ else: } INSTALLED_APPS += ( + "debug_toolbar", "django.contrib.admin", "judge", "django.contrib.auth", @@ -248,6 +249,7 @@ INSTALLED_APPS += ( ) MIDDLEWARE = ( + "debug_toolbar.middleware.DebugToolbarMiddleware", "judge.middleware.SlowRequestMiddleware", "judge.middleware.ShortCircuitMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", @@ -421,7 +423,12 @@ STATICFILES_DIRS = [ STATIC_URL = "/static/" # Define a cache -CACHES = {} +CACHES = { + "default": { + "BACKEND": "django.core.cache.backends.memcached.PyMemcacheCache", + "LOCATION": "127.0.0.1:11211", + } +} # Authentication AUTHENTICATION_BACKENDS = ( @@ -481,3 +488,9 @@ 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 100644 new mode 100755 diff --git a/dmoj/urls.py b/dmoj/urls.py old mode 100644 new mode 100755 index 4900d7c..0de5356 --- a/dmoj/urls.py +++ b/dmoj/urls.py @@ -1,5 +1,6 @@ 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 @@ -206,6 +207,7 @@ def paged_list_view(view, name, **kwargs): urlpatterns = [ + path('__debug__/', include('debug_toolbar.urls')), url("", include("pagedown.urls")), url( r"^$", @@ -468,6 +470,8 @@ 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 100644 new mode 100755 diff --git a/dmoj/wsgi_async.py b/dmoj/wsgi_async.py old mode 100644 new mode 100755 diff --git a/dmoj_bridge_async.py b/dmoj_bridge_async.py old mode 100644 new mode 100755 diff --git a/dmoj_celery.py b/dmoj_celery.py old mode 100644 new mode 100755 diff --git a/dmoj_install_pymysql.py b/dmoj_install_pymysql.py old mode 100644 new mode 100755 diff --git a/judge/__init__.py b/judge/__init__.py old mode 100644 new mode 100755 diff --git a/judge/admin/__init__.py b/judge/admin/__init__.py old mode 100644 new mode 100755 diff --git a/judge/admin/comments.py b/judge/admin/comments.py old mode 100644 new mode 100755 diff --git a/judge/admin/contest.py b/judge/admin/contest.py old mode 100644 new mode 100755 diff --git a/judge/admin/interface.py b/judge/admin/interface.py old mode 100644 new mode 100755 diff --git a/judge/admin/organization.py b/judge/admin/organization.py old mode 100644 new mode 100755 diff --git a/judge/admin/problem.py b/judge/admin/problem.py old mode 100644 new mode 100755 diff --git a/judge/admin/profile.py b/judge/admin/profile.py old mode 100644 new mode 100755 diff --git a/judge/admin/runtime.py b/judge/admin/runtime.py old mode 100644 new mode 100755 diff --git a/judge/admin/submission.py b/judge/admin/submission.py old mode 100644 new mode 100755 diff --git a/judge/admin/taxon.py b/judge/admin/taxon.py old mode 100644 new mode 100755 diff --git a/judge/admin/ticket.py b/judge/admin/ticket.py old mode 100644 new mode 100755 diff --git a/judge/admin/volunteer.py b/judge/admin/volunteer.py old mode 100644 new mode 100755 diff --git a/judge/apps.py b/judge/apps.py old mode 100644 new mode 100755 diff --git a/judge/bridge/__init__.py b/judge/bridge/__init__.py old mode 100644 new mode 100755 diff --git a/judge/bridge/base_handler.py b/judge/bridge/base_handler.py old mode 100644 new mode 100755 diff --git a/judge/bridge/daemon.py b/judge/bridge/daemon.py old mode 100644 new mode 100755 diff --git a/judge/bridge/django_handler.py b/judge/bridge/django_handler.py old mode 100644 new mode 100755 diff --git a/judge/bridge/echo_test_client.py b/judge/bridge/echo_test_client.py old mode 100644 new mode 100755 diff --git a/judge/bridge/echo_test_server.py b/judge/bridge/echo_test_server.py old mode 100644 new mode 100755 diff --git a/judge/bridge/judge_handler.py b/judge/bridge/judge_handler.py old mode 100644 new mode 100755 diff --git a/judge/bridge/judge_list.py b/judge/bridge/judge_list.py old mode 100644 new mode 100755 diff --git a/judge/bridge/server.py b/judge/bridge/server.py old mode 100644 new mode 100755 diff --git a/judge/caching.py b/judge/caching.py old mode 100644 new mode 100755 diff --git a/judge/comments.py b/judge/comments.py old mode 100644 new mode 100755 index 08d1cb7..2a2f515 --- a/judge/comments.py +++ b/judge/comments.py @@ -11,6 +11,7 @@ from django.http import ( HttpResponseForbidden, HttpResponseNotFound, HttpResponseRedirect, + Http404, ) from django.urls import reverse_lazy from django.utils.decorators import method_decorator @@ -151,40 +152,92 @@ 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, **kwargs): + def get_context_data(self, pre_query=None, **kwargs): context = super(CommentedDetailView, self).get_context_data(**kwargs) queryset = self.object.comments - 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")) - ) - + 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] + ) + if self.request.user.is_authenticated: profile = self.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))) + 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))) + 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_count"] = len(queryset) + context["comment_all_list"] = queryset_all + 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 100644 new mode 100755 diff --git a/judge/contest_format/atcoder.py b/judge/contest_format/atcoder.py old mode 100644 new mode 100755 diff --git a/judge/contest_format/base.py b/judge/contest_format/base.py old mode 100644 new mode 100755 diff --git a/judge/contest_format/default.py b/judge/contest_format/default.py old mode 100644 new mode 100755 diff --git a/judge/contest_format/ecoo.py b/judge/contest_format/ecoo.py old mode 100644 new mode 100755 diff --git a/judge/contest_format/icpc.py b/judge/contest_format/icpc.py old mode 100644 new mode 100755 diff --git a/judge/contest_format/ioi.py b/judge/contest_format/ioi.py old mode 100644 new mode 100755 diff --git a/judge/contest_format/new_ioi.py b/judge/contest_format/new_ioi.py old mode 100644 new mode 100755 diff --git a/judge/contest_format/registry.py b/judge/contest_format/registry.py old mode 100644 new mode 100755 diff --git a/judge/dblock.py b/judge/dblock.py old mode 100644 new mode 100755 diff --git a/judge/event_poster.py b/judge/event_poster.py old mode 100644 new mode 100755 diff --git a/judge/event_poster_amqp.py b/judge/event_poster_amqp.py old mode 100644 new mode 100755 diff --git a/judge/event_poster_ws.py b/judge/event_poster_ws.py old mode 100644 new mode 100755 diff --git a/judge/feed.py b/judge/feed.py old mode 100644 new mode 100755 diff --git a/judge/fixtures/demo.json b/judge/fixtures/demo.json old mode 100644 new mode 100755 diff --git a/judge/fixtures/language_small.json b/judge/fixtures/language_small.json old mode 100644 new mode 100755 diff --git a/judge/fixtures/navbar.json b/judge/fixtures/navbar.json old mode 100644 new mode 100755 diff --git a/judge/forms.py b/judge/forms.py old mode 100644 new mode 100755 diff --git a/judge/fulltext.py b/judge/fulltext.py old mode 100644 new mode 100755 diff --git a/judge/highlight_code.py b/judge/highlight_code.py old mode 100644 new mode 100755 diff --git a/judge/jinja2/__init__.py b/judge/jinja2/__init__.py old mode 100644 new mode 100755 diff --git a/judge/jinja2/camo.py b/judge/jinja2/camo.py old mode 100644 new mode 100755 diff --git a/judge/jinja2/chat.py b/judge/jinja2/chat.py old mode 100644 new mode 100755 diff --git a/judge/jinja2/datetime.py b/judge/jinja2/datetime.py old mode 100644 new mode 100755 diff --git a/judge/jinja2/filesize.py b/judge/jinja2/filesize.py old mode 100644 new mode 100755 diff --git a/judge/jinja2/gravatar.py b/judge/jinja2/gravatar.py old mode 100644 new mode 100755 diff --git a/judge/jinja2/language.py b/judge/jinja2/language.py old mode 100644 new mode 100755 diff --git a/judge/jinja2/markdown/__init__.py b/judge/jinja2/markdown/__init__.py old mode 100644 new mode 100755 diff --git a/judge/jinja2/rating.py b/judge/jinja2/rating.py old mode 100644 new mode 100755 diff --git a/judge/jinja2/reference.py b/judge/jinja2/reference.py old mode 100644 new mode 100755 diff --git a/judge/jinja2/registry.py b/judge/jinja2/registry.py old mode 100644 new mode 100755 diff --git a/judge/jinja2/render.py b/judge/jinja2/render.py old mode 100644 new mode 100755 diff --git a/judge/jinja2/social.py b/judge/jinja2/social.py old mode 100644 new mode 100755 diff --git a/judge/jinja2/spaceless.py b/judge/jinja2/spaceless.py old mode 100644 new mode 100755 diff --git a/judge/jinja2/submission.py b/judge/jinja2/submission.py old mode 100644 new mode 100755 diff --git a/judge/jinja2/timedelta.py b/judge/jinja2/timedelta.py old mode 100644 new mode 100755 diff --git a/judge/judgeapi.py b/judge/judgeapi.py old mode 100644 new mode 100755 diff --git a/judge/lxml_tree.py b/judge/lxml_tree.py old mode 100644 new mode 100755 diff --git a/judge/management/__init__.py b/judge/management/__init__.py old mode 100644 new mode 100755 diff --git a/judge/management/commands/__init__.py b/judge/management/commands/__init__.py old mode 100644 new mode 100755 diff --git a/judge/management/commands/addjudge.py b/judge/management/commands/addjudge.py old mode 100644 new mode 100755 diff --git a/judge/management/commands/adduser.py b/judge/management/commands/adduser.py old mode 100644 new mode 100755 diff --git a/judge/management/commands/camo.py b/judge/management/commands/camo.py old mode 100644 new mode 100755 diff --git a/judge/management/commands/copy_language.py b/judge/management/commands/copy_language.py old mode 100644 new mode 100755 diff --git a/judge/management/commands/create_problem.py b/judge/management/commands/create_problem.py old mode 100644 new mode 100755 diff --git a/judge/management/commands/generate_data.py b/judge/management/commands/generate_data.py old mode 100644 new mode 100755 diff --git a/judge/management/commands/makedmojmessages.py b/judge/management/commands/makedmojmessages.py old mode 100644 new mode 100755 diff --git a/judge/management/commands/render_pdf.py b/judge/management/commands/render_pdf.py old mode 100644 new mode 100755 diff --git a/judge/management/commands/runbridged.py b/judge/management/commands/runbridged.py old mode 100644 new mode 100755 diff --git a/judge/management/commands/runmoss.py b/judge/management/commands/runmoss.py old mode 100644 new mode 100755 diff --git a/judge/middleware.py b/judge/middleware.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0001_squashed_0084_contest_formats.py b/judge/migrations/0001_squashed_0084_contest_formats.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0085_submission_source.py b/judge/migrations/0085_submission_source.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0086_rating_ceiling.py b/judge/migrations/0086_rating_ceiling.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0087_problem_resource_limits.py b/judge/migrations/0087_problem_resource_limits.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0088_private_contests.py b/judge/migrations/0088_private_contests.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0089_submission_to_contest.py b/judge/migrations/0089_submission_to_contest.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0090_fix_contest_visibility.py b/judge/migrations/0090_fix_contest_visibility.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0091_compiler_message_ansi2html.py b/judge/migrations/0091_compiler_message_ansi2html.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0092_contest_clone.py b/judge/migrations/0092_contest_clone.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0093_contest_moss.py b/judge/migrations/0093_contest_moss.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0094_submissiontestcase_unique_together.py b/judge/migrations/0094_submissiontestcase_unique_together.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0095_organization_logo_override.py b/judge/migrations/0095_organization_logo_override.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0096_profile_language_set_default.py b/judge/migrations/0096_profile_language_set_default.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0097_participation_is_disqualified.py b/judge/migrations/0097_participation_is_disqualified.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0098_auto_20200123_2136.py b/judge/migrations/0098_auto_20200123_2136.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0099_custom_checker.py b/judge/migrations/0099_custom_checker.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0100_auto_20200127_0059.py b/judge/migrations/0100_auto_20200127_0059.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0101_custom_validator.py b/judge/migrations/0101_custom_validator.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0102_fix_custom_validator.py b/judge/migrations/0102_fix_custom_validator.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0103_fix_custom_validator.py b/judge/migrations/0103_fix_custom_validator.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0104_auto_20200410_1313.py b/judge/migrations/0104_auto_20200410_1313.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0105_auto_20200523_0756.py b/judge/migrations/0105_auto_20200523_0756.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0106_friend.py b/judge/migrations/0106_friend.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0107_notification.py b/judge/migrations/0107_notification.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0108_submission_judged_date.py b/judge/migrations/0108_submission_judged_date.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0109_auto_20201017_1151.py b/judge/migrations/0109_auto_20201017_1151.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0110_notification_author.py b/judge/migrations/0110_notification_author.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0111_contest_decimal_points.py b/judge/migrations/0111_contest_decimal_points.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0112_contest_view_contest_scoreboard.py b/judge/migrations/0112_contest_view_contest_scoreboard.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0113_auto_20201228_0911.py b/judge/migrations/0113_auto_20201228_0911.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0114_auto_20201228_1041.py b/judge/migrations/0114_auto_20201228_1041.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0115_auto_20210525_0222.py b/judge/migrations/0115_auto_20210525_0222.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0116_auto_20211011_0645.py b/judge/migrations/0116_auto_20211011_0645.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0117_auto_20211209_0612.py b/judge/migrations/0117_auto_20211209_0612.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0118_rating.py b/judge/migrations/0118_rating.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0119_auto_20220306_0512.py b/judge/migrations/0119_auto_20220306_0512.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0120_auto_20220306_1124.py b/judge/migrations/0120_auto_20220306_1124.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0121_auto_20220415_0135.py b/judge/migrations/0121_auto_20220415_0135.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0122_auto_20220425_1202.py b/judge/migrations/0122_auto_20220425_1202.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0123_auto_20220502_2356.py b/judge/migrations/0123_auto_20220502_2356.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0124_auto_20220602_1116.py b/judge/migrations/0124_auto_20220602_1116.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0125_auto_20220602_1216.py b/judge/migrations/0125_auto_20220602_1216.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0126_languagetemplate.py b/judge/migrations/0126_languagetemplate.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0127_auto_20220616_1442.py b/judge/migrations/0127_auto_20220616_1442.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0128_auto_20220620_2210.py b/judge/migrations/0128_auto_20220620_2210.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0129_auto_20220622_1424.py b/judge/migrations/0129_auto_20220622_1424.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0130_auto_20220831_1048.py b/judge/migrations/0130_auto_20220831_1048.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0131_auto_20220905_0027.py b/judge/migrations/0131_auto_20220905_0027.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0132_auto_20220915_1349.py b/judge/migrations/0132_auto_20220915_1349.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0133_auto_20221013_0850.py b/judge/migrations/0133_auto_20221013_0850.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0134_auto_20221018_0124.py b/judge/migrations/0134_auto_20221018_0124.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0135_auto_20221028_0300.py b/judge/migrations/0135_auto_20221028_0300.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0136_alter_profile_timezone.py b/judge/migrations/0136_alter_profile_timezone.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0137_auto_20221116_2201.py b/judge/migrations/0137_auto_20221116_2201.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0138_bookmark_makebookmark.py b/judge/migrations/0138_bookmark_makebookmark.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0139_contest_freeze_after.py b/judge/migrations/0139_contest_freeze_after.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0140_alter_contest_format_name.py b/judge/migrations/0140_alter_contest_format_name.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0141_contestproblem_frozen_subtasks.py b/judge/migrations/0141_contestproblem_frozen_subtasks.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0142_contestparticipation_format_data_final.py b/judge/migrations/0142_contestparticipation_format_data_final.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0143_auto_20221229_0153.py b/judge/migrations/0143_auto_20221229_0153.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0144_auto_20230103_0523.py b/judge/migrations/0144_auto_20230103_0523.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0145_alter_organization_slug.py b/judge/migrations/0145_alter_organization_slug.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0146_alter_organization_slug.py b/judge/migrations/0146_alter_organization_slug.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0147_alter_profile_timezone.py b/judge/migrations/0147_alter_profile_timezone.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0148_course_courseassignment_courseresource_courserole.py b/judge/migrations/0148_course_courseassignment_courseresource_courserole.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0149_auto_20230202_0902.py b/judge/migrations/0149_auto_20230202_0902.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0150_alter_profile_timezone.py b/judge/migrations/0150_alter_profile_timezone.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0151_comment_content_type.py b/judge/migrations/0151_comment_content_type.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0152_migrate_comments.py b/judge/migrations/0152_migrate_comments.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0153_drop_comment_page.py b/judge/migrations/0153_drop_comment_page.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0154_add_submission_indexes.py b/judge/migrations/0154_add_submission_indexes.py old mode 100644 new mode 100755 diff --git a/judge/migrations/0155_output_only.py b/judge/migrations/0155_output_only.py old mode 100644 new mode 100755 diff --git a/judge/migrations/__init__.py b/judge/migrations/__init__.py old mode 100644 new mode 100755 diff --git a/judge/ml/collab_filter.py b/judge/ml/collab_filter.py old mode 100644 new mode 100755 diff --git a/judge/models/__init__.py b/judge/models/__init__.py old mode 100644 new mode 100755 diff --git a/judge/models/bookmark.py b/judge/models/bookmark.py old mode 100644 new mode 100755 diff --git a/judge/models/choices.py b/judge/models/choices.py old mode 100644 new mode 100755 diff --git a/judge/models/comment.py b/judge/models/comment.py old mode 100644 new mode 100755 index fc9af4c..335d567 --- a/judge/models/comment.py +++ b/judge/models/comment.py @@ -56,6 +56,7 @@ class Comment(MPTTModel): related_name="replies", on_delete=CASCADE, ) + versions = VersionRelation() class Meta: @@ -111,6 +112,15 @@ 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): @@ -141,7 +151,7 @@ class Comment(MPTTModel): ) def get_absolute_url(self): - return "%s#comment-%d" % (self.link, self.id) + return "%s?comment-id=%d#comment-%d" % (self.link, self.id, self.id) class CommentVote(models.Model): diff --git a/judge/models/contest.py b/judge/models/contest.py old mode 100644 new mode 100755 diff --git a/judge/models/course.py b/judge/models/course.py old mode 100644 new mode 100755 diff --git a/judge/models/interface.py b/judge/models/interface.py old mode 100644 new mode 100755 diff --git a/judge/models/message.py b/judge/models/message.py old mode 100644 new mode 100755 diff --git a/judge/models/pagevote.py b/judge/models/pagevote.py old mode 100644 new mode 100755 diff --git a/judge/models/problem.py b/judge/models/problem.py old mode 100644 new mode 100755 diff --git a/judge/models/problem_data.py b/judge/models/problem_data.py old mode 100644 new mode 100755 diff --git a/judge/models/profile.py b/judge/models/profile.py old mode 100644 new mode 100755 diff --git a/judge/models/runtime.py b/judge/models/runtime.py old mode 100644 new mode 100755 diff --git a/judge/models/submission.py b/judge/models/submission.py old mode 100644 new mode 100755 diff --git a/judge/models/ticket.py b/judge/models/ticket.py old mode 100644 new mode 100755 diff --git a/judge/models/volunteer.py b/judge/models/volunteer.py old mode 100644 new mode 100755 diff --git a/judge/pdf_problems.py b/judge/pdf_problems.py old mode 100644 new mode 100755 diff --git a/judge/performance_points.py b/judge/performance_points.py old mode 100644 new mode 100755 diff --git a/judge/ratings.py b/judge/ratings.py old mode 100644 new mode 100755 diff --git a/judge/signals.py b/judge/signals.py old mode 100644 new mode 100755 diff --git a/judge/sitemap.py b/judge/sitemap.py old mode 100644 new mode 100755 diff --git a/judge/social_auth.py b/judge/social_auth.py old mode 100644 new mode 100755 diff --git a/judge/tasks/__init__.py b/judge/tasks/__init__.py old mode 100644 new mode 100755 diff --git a/judge/tasks/contest.py b/judge/tasks/contest.py old mode 100644 new mode 100755 diff --git a/judge/tasks/demo.py b/judge/tasks/demo.py old mode 100644 new mode 100755 diff --git a/judge/tasks/experiment.py b/judge/tasks/experiment.py old mode 100644 new mode 100755 diff --git a/judge/tasks/import_users.py b/judge/tasks/import_users.py old mode 100644 new mode 100755 diff --git a/judge/tasks/submission.py b/judge/tasks/submission.py old mode 100644 new mode 100755 diff --git a/judge/template_context.py b/judge/template_context.py old mode 100644 new mode 100755 diff --git a/judge/templatetags/__init__.py b/judge/templatetags/__init__.py old mode 100644 new mode 100755 diff --git a/judge/templatetags/code_highlight.py b/judge/templatetags/code_highlight.py old mode 100644 new mode 100755 diff --git a/judge/templatetags/counter.py b/judge/templatetags/counter.py old mode 100644 new mode 100755 diff --git a/judge/templatetags/dicts.py b/judge/templatetags/dicts.py old mode 100644 new mode 100755 diff --git a/judge/templatetags/list_processor.py b/judge/templatetags/list_processor.py old mode 100644 new mode 100755 diff --git a/judge/templatetags/strings.py b/judge/templatetags/strings.py old mode 100644 new mode 100755 diff --git a/judge/tests.py b/judge/tests.py old mode 100644 new mode 100755 diff --git a/judge/timezone.py b/judge/timezone.py old mode 100644 new mode 100755 diff --git a/judge/user_log.py b/judge/user_log.py old mode 100644 new mode 100755 diff --git a/judge/user_translations.py b/judge/user_translations.py old mode 100644 new mode 100755 diff --git a/judge/utils/__init__.py b/judge/utils/__init__.py old mode 100644 new mode 100755 diff --git a/judge/utils/cachedict.py b/judge/utils/cachedict.py old mode 100644 new mode 100755 diff --git a/judge/utils/camo.py b/judge/utils/camo.py old mode 100644 new mode 100755 diff --git a/judge/utils/caniuse.py b/judge/utils/caniuse.py old mode 100644 new mode 100755 diff --git a/judge/utils/celery.py b/judge/utils/celery.py old mode 100644 new mode 100755 diff --git a/judge/utils/diggpaginator.py b/judge/utils/diggpaginator.py old mode 100644 new mode 100755 diff --git a/judge/utils/file_cache.py b/judge/utils/file_cache.py old mode 100644 new mode 100755 diff --git a/judge/utils/fine_uploader.py b/judge/utils/fine_uploader.py old mode 100644 new mode 100755 diff --git a/judge/utils/infinite_paginator.py b/judge/utils/infinite_paginator.py old mode 100644 new mode 100755 diff --git a/judge/utils/mathoid.py b/judge/utils/mathoid.py old mode 100644 new mode 100755 diff --git a/judge/utils/opengraph.py b/judge/utils/opengraph.py old mode 100644 new mode 100755 diff --git a/judge/utils/problem_data.py b/judge/utils/problem_data.py old mode 100644 new mode 100755 diff --git a/judge/utils/problems.py b/judge/utils/problems.py old mode 100644 new mode 100755 diff --git a/judge/utils/pwned.py b/judge/utils/pwned.py old mode 100644 new mode 100755 diff --git a/judge/utils/ranker.py b/judge/utils/ranker.py old mode 100644 new mode 100755 diff --git a/judge/utils/raw_sql.py b/judge/utils/raw_sql.py old mode 100644 new mode 100755 diff --git a/judge/utils/recaptcha.py b/judge/utils/recaptcha.py old mode 100644 new mode 100755 diff --git a/judge/utils/stats.py b/judge/utils/stats.py old mode 100644 new mode 100755 diff --git a/judge/utils/strings.py b/judge/utils/strings.py old mode 100644 new mode 100755 diff --git a/judge/utils/texoid.py b/judge/utils/texoid.py old mode 100644 new mode 100755 diff --git a/judge/utils/tickets.py b/judge/utils/tickets.py old mode 100644 new mode 100755 diff --git a/judge/utils/timedelta.py b/judge/utils/timedelta.py old mode 100644 new mode 100755 diff --git a/judge/utils/unicode.py b/judge/utils/unicode.py old mode 100644 new mode 100755 diff --git a/judge/utils/views.py b/judge/utils/views.py old mode 100644 new mode 100755 diff --git a/judge/views/__init__.py b/judge/views/__init__.py old mode 100644 new mode 100755 diff --git a/judge/views/about.py b/judge/views/about.py old mode 100644 new mode 100755 diff --git a/judge/views/api/__init__.py b/judge/views/api/__init__.py old mode 100644 new mode 100755 diff --git a/judge/views/api/api_v1.py b/judge/views/api/api_v1.py old mode 100644 new mode 100755 diff --git a/judge/views/api/api_v2.py b/judge/views/api/api_v2.py old mode 100644 new mode 100755 diff --git a/judge/views/blog.py b/judge/views/blog.py old mode 100644 new mode 100755 diff --git a/judge/views/bookmark.py b/judge/views/bookmark.py old mode 100644 new mode 100755 diff --git a/judge/views/comment.py b/judge/views/comment.py old mode 100644 new mode 100755 index 19085fb..abacb52 --- a/judge/views/comment.py +++ b/judge/views/comment.py @@ -1,8 +1,13 @@ +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 F +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.forms.models import ModelForm from django.http import ( Http404, @@ -15,11 +20,12 @@ 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 +from judge.models import Comment, CommentVote, Notification, BlogPost from judge.utils.views import TitleMixin from judge.widgets import MathJaxPagedownWidget, HeavyPreviewPageDownWidget from judge.comments import add_mention_notifications, del_mention_notifications @@ -36,6 +42,11 @@ __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( @@ -99,10 +110,77 @@ 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 100644 new mode 100755 diff --git a/judge/views/course.py b/judge/views/course.py old mode 100644 new mode 100755 diff --git a/judge/views/error.py b/judge/views/error.py old mode 100644 new mode 100755 diff --git a/judge/views/feed.py b/judge/views/feed.py old mode 100644 new mode 100755 diff --git a/judge/views/internal.py b/judge/views/internal.py old mode 100644 new mode 100755 diff --git a/judge/views/language.py b/judge/views/language.py old mode 100644 new mode 100755 diff --git a/judge/views/license.py b/judge/views/license.py old mode 100644 new mode 100755 diff --git a/judge/views/mailgun.py b/judge/views/mailgun.py old mode 100644 new mode 100755 diff --git a/judge/views/notification.py b/judge/views/notification.py old mode 100644 new mode 100755 diff --git a/judge/views/organization.py b/judge/views/organization.py old mode 100644 new mode 100755 diff --git a/judge/views/pagevote.py b/judge/views/pagevote.py old mode 100644 new mode 100755 diff --git a/judge/views/preview.py b/judge/views/preview.py old mode 100644 new mode 100755 diff --git a/judge/views/problem.py b/judge/views/problem.py old mode 100644 new mode 100755 diff --git a/judge/views/problem_data.py b/judge/views/problem_data.py old mode 100644 new mode 100755 diff --git a/judge/views/problem_manage.py b/judge/views/problem_manage.py old mode 100644 new mode 100755 diff --git a/judge/views/ranked_submission.py b/judge/views/ranked_submission.py old mode 100644 new mode 100755 diff --git a/judge/views/register.py b/judge/views/register.py old mode 100644 new mode 100755 diff --git a/judge/views/resolver.py b/judge/views/resolver.py old mode 100644 new mode 100755 diff --git a/judge/views/select2.py b/judge/views/select2.py old mode 100644 new mode 100755 diff --git a/judge/views/stats.py b/judge/views/stats.py old mode 100644 new mode 100755 diff --git a/judge/views/status.py b/judge/views/status.py old mode 100644 new mode 100755 diff --git a/judge/views/submission.py b/judge/views/submission.py old mode 100644 new mode 100755 diff --git a/judge/views/tasks.py b/judge/views/tasks.py old mode 100644 new mode 100755 diff --git a/judge/views/ticket.py b/judge/views/ticket.py old mode 100644 new mode 100755 diff --git a/judge/views/totp.py b/judge/views/totp.py old mode 100644 new mode 100755 diff --git a/judge/views/user.py b/judge/views/user.py old mode 100644 new mode 100755 diff --git a/judge/views/volunteer.py b/judge/views/volunteer.py old mode 100644 new mode 100755 diff --git a/judge/views/widgets.py b/judge/views/widgets.py old mode 100644 new mode 100755 diff --git a/judge/widgets/__init__.py b/judge/widgets/__init__.py old mode 100644 new mode 100755 diff --git a/judge/widgets/checkbox.py b/judge/widgets/checkbox.py old mode 100644 new mode 100755 diff --git a/judge/widgets/datetime.py b/judge/widgets/datetime.py old mode 100644 new mode 100755 diff --git a/judge/widgets/mixins.py b/judge/widgets/mixins.py old mode 100644 new mode 100755 diff --git a/judge/widgets/pagedown.py b/judge/widgets/pagedown.py old mode 100644 new mode 100755 diff --git a/judge/widgets/select2.py b/judge/widgets/select2.py old mode 100644 new mode 100755 diff --git a/locale/ar/LC_MESSAGES/django.po b/locale/ar/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/ar/LC_MESSAGES/djangojs.po b/locale/ar/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/de/LC_MESSAGES/djangojs.po b/locale/de/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/en/LC_MESSAGES/djangojs.po b/locale/en/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/es/LC_MESSAGES/django.po b/locale/es/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/es/LC_MESSAGES/djangojs.po b/locale/es/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/fr/LC_MESSAGES/djangojs.po b/locale/fr/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/hr/LC_MESSAGES/django.po b/locale/hr/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/hr/LC_MESSAGES/djangojs.po b/locale/hr/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/hu/LC_MESSAGES/django.po b/locale/hu/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/hu/LC_MESSAGES/djangojs.po b/locale/hu/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/it/LC_MESSAGES/django.po b/locale/it/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/it/LC_MESSAGES/djangojs.po b/locale/it/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/ja/LC_MESSAGES/django.po b/locale/ja/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/ja/LC_MESSAGES/djangojs.po b/locale/ja/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/ko/LC_MESSAGES/django.po b/locale/ko/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/ko/LC_MESSAGES/djangojs.po b/locale/ko/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/lt/LC_MESSAGES/django.po b/locale/lt/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/lt/LC_MESSAGES/djangojs.po b/locale/lt/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/nl/LC_MESSAGES/django.po b/locale/nl/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/nl/LC_MESSAGES/djangojs.po b/locale/nl/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/pl/LC_MESSAGES/django.po b/locale/pl/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/pl/LC_MESSAGES/djangojs.po b/locale/pl/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/pt/LC_MESSAGES/django.po b/locale/pt/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/pt/LC_MESSAGES/djangojs.po b/locale/pt/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/ro/LC_MESSAGES/django.po b/locale/ro/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/ro/LC_MESSAGES/djangojs.po b/locale/ro/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/ru/LC_MESSAGES/django.po b/locale/ru/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/ru/LC_MESSAGES/djangojs.po b/locale/ru/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/ru/LC_MESSAGES/dmoj-user.po b/locale/ru/LC_MESSAGES/dmoj-user.po old mode 100644 new mode 100755 diff --git a/locale/sr/LC_MESSAGES/django.po b/locale/sr/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/sr/LC_MESSAGES/djangojs.po b/locale/sr/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/sr/LC_MESSAGES/dmoj-user.po b/locale/sr/LC_MESSAGES/dmoj-user.po old mode 100644 new mode 100755 diff --git a/locale/sr_Latn/LC_MESSAGES/django.po b/locale/sr_Latn/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/sr_Latn/LC_MESSAGES/djangojs.po b/locale/sr_Latn/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/tr/LC_MESSAGES/django.po b/locale/tr/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/tr/LC_MESSAGES/djangojs.po b/locale/tr/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/vi/LC_MESSAGES/django.po b/locale/vi/LC_MESSAGES/django.po old mode 100644 new mode 100755 index 4a182fc..268b457 --- 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-04-26 15:39+0700\n" +"POT-Creation-Date: 2023-05-16 16:17+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:179 +#: chat_box/models.py:32 judge/models/comment.py:44 judge/models/comment.py:189 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:363 +#: dmoj/settings.py:365 msgid "Vietnamese" msgstr "Tiếng Việt" -#: dmoj/settings.py:364 +#: dmoj/settings.py:366 msgid "English" msgstr "" -#: dmoj/urls.py:135 +#: dmoj/urls.py:136 msgid "Login" msgstr "Đăng nhập" -#: dmoj/urls.py:212 templates/base.html:209 +#: dmoj/urls.py:214 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:243 +#: judge/admin/contest.py:377 judge/admin/submission.py:248 #, 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:353 +#: judge/admin/problem.py:217 judge/admin/submission.py:358 #: 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:316 +#: judge/admin/problem.py:432 judge/admin/submission.py:321 #: 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:322 +#: judge/admin/problem.py:444 judge/admin/submission.py:327 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:329 +#: judge/admin/profile.py:125 judge/admin/submission.py:334 #: 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:340 +#: judge/admin/submission.py:345 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:215 judge/admin/submission.py:256 +#: judge/admin/submission.py:220 judge/admin/submission.py:261 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:227 +#: judge/admin/submission.py:232 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:250 +#: judge/admin/submission.py:255 msgid "Rejudge the selected submissions" msgstr "Chấm lại các bài nộp đã chọn" -#: judge/admin/submission.py:304 judge/views/problem_manage.py:226 +#: judge/admin/submission.py:309 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:311 +#: judge/admin/submission.py:316 msgid "Rescore the selected submissions" msgstr "Tính điểm lại cái bài nộp" -#: judge/admin/submission.py:334 templates/notification/list.html:15 +#: judge/admin/submission.py:339 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:342 +#: judge/admin/submission.py:347 #, python-format msgid "%d KB" msgstr "%d KB" -#: judge/admin/submission.py:344 +#: judge/admin/submission.py:349 #, python-format msgid "%.2f MB" msgstr "" -#: judge/admin/submission.py:347 templates/submission/status-testcases.html:151 +#: judge/admin/submission.py:352 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:60 +#: judge/comments.py:61 msgid "Comment body" msgstr "Nội dung bình luận" -#: judge/comments.py:66 judge/views/ticket.py:78 +#: judge/comments.py:67 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:75 templates/comments/list.html:17 +#: judge/comments.py:76 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:124 +#: judge/comments.py:125 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:514 +#: judge/forms.py:107 judge/views/organization.py:520 #: 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/list.html:76 +#: templates/comments/content-list.html:35 templates/comments/list.html:77 #, python-brace-format msgid "{time}" msgstr "{time}" @@ -543,19 +543,19 @@ msgstr "{time}" msgid "on {time}" msgstr "vào {time}" -#: judge/middleware.py:131 +#: judge/middleware.py:135 msgid "No permission" msgstr "Không có quyền truy cập" -#: judge/middleware.py:132 +#: judge/middleware.py:136 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:142 judge/middleware.py:143 +#: judge/middleware.py:146 judge/middleware.py:147 msgid "No such group" msgstr "Nhóm không tồn tại" -#: judge/models/bookmark.py:14 judge/models/comment.py:161 +#: judge/models/bookmark.py:14 judge/models/comment.py:171 #: judge/models/pagevote.py:13 msgid "associated page" msgstr "trang tương ứng" @@ -621,56 +621,49 @@ msgstr "ẩn bình luận" msgid "parent" msgstr "" -#: judge/models/comment.py:62 judge/models/comment.py:181 +#: judge/models/comment.py:63 judge/models/comment.py:191 msgid "comment" msgstr "bình luận" -#: judge/models/comment.py:63 +#: judge/models/comment.py:64 msgid "comments" msgstr "" -#: judge/models/comment.py:122 +#: judge/models/comment.py:132 #, fuzzy #| msgid "Editorial for {0}" msgid "Editorial for " msgstr "Hướng dẫn cho {0}" -#: judge/models/comment.py:154 +#: judge/models/comment.py:164 msgid "comment vote" msgstr "" -#: judge/models/comment.py:155 +#: judge/models/comment.py:165 msgid "comment votes" msgstr "" -#: judge/models/comment.py:166 +#: judge/models/comment.py:176 msgid "Override comment lock" msgstr "" -#: 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 +#: judge/models/comment.py:185 msgid "owner" msgstr "" -#: judge/models/comment.py:183 judge/models/message.py:28 +#: judge/models/comment.py:193 judge/models/message.py:28 msgid "read" msgstr "" -#: 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 +#: judge/models/comment.py:194 msgid "category" msgstr "" -#: judge/models/comment.py:187 +#: judge/models/comment.py:197 msgid "html link to comments, used for non-comments" msgstr "" -#: judge/models/comment.py:193 +#: judge/models/comment.py:203 msgid "who trigger, used for non-comment" msgstr "" @@ -739,13 +732,6 @@ 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ả" @@ -2660,24 +2646,24 @@ msgstr "Báo cáo" msgid "Comment feed" msgstr "Bình luận" -#: judge/views/comment.py:42 judge/views/pagevote.py:31 +#: judge/views/comment.py:53 judge/views/pagevote.py:31 msgid "Messing around, are we?" msgstr "Messing around, are we?" -#: judge/views/comment.py:58 judge/views/pagevote.py:47 +#: judge/views/comment.py:69 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:89 +#: judge/views/comment.py:100 msgid "You already voted." msgstr "Bạn đã vote." -#: judge/views/comment.py:165 judge/views/organization.py:811 -#: judge/views/organization.py:957 judge/views/organization.py:1122 +#: judge/views/comment.py:243 judge/views/organization.py:817 +#: judge/views/organization.py:963 judge/views/organization.py:1128 msgid "Edited from site" msgstr "Chỉnh sửa từ web" -#: judge/views/comment.py:186 +#: judge/views/comment.py:264 msgid "Editing comment" msgstr "Chỉnh sửa bình luận" @@ -2879,13 +2865,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:337 +#: judge/views/organization.py:193 judge/views/organization.py:340 #, 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:338 +#: judge/views/organization.py:194 judge/views/organization.py:341 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." @@ -2896,57 +2882,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:344 +#: judge/views/organization.py:347 #, python-format msgid "%s Members" msgstr "%s Thành viên" -#: judge/views/organization.py:470 +#: judge/views/organization.py:476 #, python-brace-format msgid "All submissions in {0}" msgstr "Bài nộp trong {0}" -#: judge/views/organization.py:500 judge/views/organization.py:506 -#: judge/views/organization.py:513 +#: judge/views/organization.py:506 judge/views/organization.py:512 +#: judge/views/organization.py:519 msgid "Joining group" msgstr "Tham gia nhóm" -#: judge/views/organization.py:501 +#: judge/views/organization.py:507 msgid "You are already in the group." msgstr "Bạn đã ở trong nhóm." -#: judge/views/organization.py:506 +#: judge/views/organization.py:512 msgid "This group is not open." msgstr "Nhóm này là nhóm kín." -#: judge/views/organization.py:529 +#: judge/views/organization.py:535 msgid "Leaving group" msgstr "Rời nhóm" -#: judge/views/organization.py:530 +#: judge/views/organization.py:536 #, python-format msgid "You are not in \"%s\"." msgstr "Bạn không ở trong \"%s\"." -#: judge/views/organization.py:555 +#: judge/views/organization.py:561 #, python-format msgid "Request to join %s" msgstr "Đăng ký tham gia %s" -#: judge/views/organization.py:585 +#: judge/views/organization.py:591 msgid "Join request detail" msgstr "Chi tiết đơn đăng ký" -#: judge/views/organization.py:627 +#: judge/views/organization.py:633 msgid "Manage join requests" msgstr "Quản lý đơn đăng ký" -#: judge/views/organization.py:631 +#: judge/views/organization.py:637 #, python-format msgid "Managing join requests for %s" msgstr "Quản lý đơn đăng ký cho %s" -#: judge/views/organization.py:671 +#: judge/views/organization.py:677 #, python-format msgid "" "Your organization can only receive %d more members. You cannot approve %d " @@ -2955,96 +2941,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:689 +#: judge/views/organization.py:695 #, python-format msgid "Approved %d user." msgid_plural "Approved %d users." msgstr[0] "Đã chấp thuận %d người." -#: judge/views/organization.py:692 +#: judge/views/organization.py:698 #, python-format msgid "Rejected %d user." msgid_plural "Rejected %d users." msgstr[0] "Đã từ chối %d người." -#: judge/views/organization.py:732 +#: judge/views/organization.py:738 #, python-format msgid "Add member for %s" msgstr "Thêm thành viên cho %s" -#: judge/views/organization.py:744 +#: judge/views/organization.py:750 #, fuzzy #| msgid "Edited from site" msgid "Added members from site" msgstr "Chỉnh sửa từ web" -#: judge/views/organization.py:764 judge/views/organization.py:772 +#: judge/views/organization.py:770 judge/views/organization.py:778 msgid "Can't kick user" msgstr "Không thể đuổi" -#: judge/views/organization.py:765 +#: judge/views/organization.py:771 msgid "The user you are trying to kick does not exist!" msgstr "" -#: judge/views/organization.py:773 +#: judge/views/organization.py:779 #, python-format msgid "The user you are trying to kick is not in organization: %s." msgstr "" -#: judge/views/organization.py:794 judge/views/organization.py:946 +#: judge/views/organization.py:800 judge/views/organization.py:952 #, fuzzy, python-format #| msgid "Editing %s" msgid "Edit %s" msgstr "Đang chỉnh sửa %s" -#: judge/views/organization.py:822 templates/organization/list.html:45 +#: judge/views/organization.py:828 templates/organization/list.html:45 msgid "Create group" msgstr "Tạo nhóm" -#: judge/views/organization.py:837 +#: judge/views/organization.py:843 msgid "Exceeded limit" msgstr "" -#: judge/views/organization.py:838 +#: judge/views/organization.py:844 #, python-format msgid "You created too many groups. You can only create at most %d groups" msgstr "" -#: judge/views/organization.py:843 judge/views/organization.py:868 -#: judge/views/organization.py:1012 +#: judge/views/organization.py:849 judge/views/organization.py:874 +#: judge/views/organization.py:1018 msgid "Added from site" msgstr "Thêm từ web" -#: judge/views/organization.py:859 +#: judge/views/organization.py:865 #: templates/organization/org-right-sidebar.html:55 msgid "Add contest" msgstr "Thêm kỳ thi" -#: judge/views/organization.py:902 judge/views/organization.py:1064 +#: judge/views/organization.py:908 judge/views/organization.py:1070 msgid "Permission denied" msgstr "Truy cập bị từ chối" -#: judge/views/organization.py:903 +#: judge/views/organization.py:909 #, 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:1001 +#: judge/views/organization.py:1007 #, python-format msgid "Add blog for %s" msgstr "Thêm bài đăng cho %s" -#: judge/views/organization.py:1065 +#: judge/views/organization.py:1071 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:1097 +#: judge/views/organization.py:1103 #, python-format msgid "Edit blog %s" msgstr "Chỉnh sửa %s" -#: judge/views/organization.py:1148 +#: judge/views/organization.py:1154 #, python-format msgid "Pending blogs in %s" msgstr "Bài đang đợi duyệt trong %s" @@ -3097,12 +3083,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:1177 judge/views/problem.py:1182 +#: judge/views/problem.py:1176 judge/views/problem.py:1181 #, python-format msgid "Submit to %(problem)s" msgstr "Nộp bài cho %(problem)s" -#: judge/views/problem.py:1208 +#: judge/views/problem.py:1207 msgid "Clone Problem" msgstr "Nhân bản bài tập" @@ -3302,8 +3288,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}" @@ -3431,147 +3417,6 @@ 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" @@ -3657,7 +3502,8 @@ msgid "Profile" msgstr "Trang cá nhân" #: templates/base.html:276 templates/chat/chat.html:21 -#: templates/comments/list.html:125 templates/contest/contest-list-tabs.html:4 +#: templates/comments/content-list.html:80 templates/comments/list.html:126 +#: 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 @@ -3713,8 +3559,9 @@ msgstr "" msgid " posted on %(time)s" msgstr "đã đăng vào %(time)s" -#: templates/blog/blog.html:31 templates/comments/list.html:104 -#: templates/comments/list.html:119 templates/contest/contest-tabs.html:35 +#: 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/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 @@ -3852,6 +3699,68 @@ 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" @@ -3868,45 +3777,20 @@ msgstr "Nội dung không hợp lệ." msgid "Post!" msgstr "Đăng!" -#: 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 +#: templates/comments/list.html:138 #, 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:154 +#: templates/comments/list.html:177 msgid "There are no comments at the moment." msgstr "Không có bình luận nào." -#: templates/comments/list.html:159 +#: templates/comments/list.html:182 msgid "Comments are disabled on this page." msgstr "Bình luận bị tắt trong trang này." @@ -4034,8 +3918,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" @@ -5257,6 +5141,10 @@ 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" @@ -5864,6 +5752,91 @@ 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 100644 new mode 100755 diff --git a/locale/vi/LC_MESSAGES/dmoj-user.po b/locale/vi/LC_MESSAGES/dmoj-user.po old mode 100644 new mode 100755 index ffd36e9..c65744d --- a/locale/vi/LC_MESSAGES/dmoj-user.po +++ b/locale/vi/LC_MESSAGES/dmoj-user.po @@ -33,9 +33,6 @@ 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" @@ -345,6 +342,9 @@ msgstr "" msgid "ltt" msgstr "" +msgid "Luyện tập" +msgstr "" + msgid "manacher" msgstr "" @@ -593,3 +593,6 @@ 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 100644 new mode 100755 diff --git a/locale/zh_Hans/LC_MESSAGES/djangojs.po b/locale/zh_Hans/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/locale/zh_Hant/LC_MESSAGES/django.po b/locale/zh_Hant/LC_MESSAGES/django.po old mode 100644 new mode 100755 diff --git a/locale/zh_Hant/LC_MESSAGES/djangojs.po b/locale/zh_Hant/LC_MESSAGES/djangojs.po old mode 100644 new mode 100755 diff --git a/logo.png b/logo.png old mode 100644 new mode 100755 diff --git a/manifest.json b/manifest.json old mode 100644 new mode 100755 diff --git a/requirements.txt b/requirements.txt old mode 100644 new mode 100755 diff --git a/resources/admin/css/pagedown.css b/resources/admin/css/pagedown.css old mode 100644 new mode 100755 diff --git a/resources/admin/css/select2bootstrap.css b/resources/admin/css/select2bootstrap.css old mode 100644 new mode 100755 diff --git a/resources/awards/bronze-medal.png b/resources/awards/bronze-medal.png old mode 100644 new mode 100755 diff --git a/resources/awards/gold-medal.png b/resources/awards/gold-medal.png old mode 100644 new mode 100755 diff --git a/resources/awards/medals.png b/resources/awards/medals.png old mode 100644 new mode 100755 diff --git a/resources/awards/silver-medal.png b/resources/awards/silver-medal.png old mode 100644 new mode 100755 diff --git a/resources/base.scss b/resources/base.scss old mode 100644 new mode 100755 diff --git a/resources/blank.gif b/resources/blank.gif old mode 100644 new mode 100755 diff --git a/resources/blog.scss b/resources/blog.scss old mode 100644 new mode 100755 diff --git a/resources/chatbox.scss b/resources/chatbox.scss old mode 100644 new mode 100755 diff --git a/resources/comments.scss b/resources/comments.scss old mode 100644 new mode 100755 index 9abca9e..da828b4 --- a/resources/comments.scss +++ b/resources/comments.scss @@ -126,6 +126,28 @@ 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 100644 new mode 100755 diff --git a/resources/content-description.scss b/resources/content-description.scss old mode 100644 new mode 100755 diff --git a/resources/contest.json b/resources/contest.json old mode 100644 new mode 100755 diff --git a/resources/contest.scss b/resources/contest.scss old mode 100644 new mode 100755 diff --git a/resources/darkmode-svg.css b/resources/darkmode-svg.css old mode 100644 new mode 100755 diff --git a/resources/darkmode.css b/resources/darkmode.css old mode 100644 new mode 100755 diff --git a/resources/django_select2.js b/resources/django_select2.js old mode 100644 new mode 100755 diff --git a/resources/dmmd-preview.css b/resources/dmmd-preview.css old mode 100644 new mode 100755 diff --git a/resources/dmmd-preview.js b/resources/dmmd-preview.js old mode 100644 new mode 100755 diff --git a/resources/dmmd-preview.scss b/resources/dmmd-preview.scss old mode 100644 new mode 100755 diff --git a/resources/event.js b/resources/event.js old mode 100644 new mode 100755 diff --git a/resources/favicon.ico b/resources/favicon.ico old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/LICENSE b/resources/fine-uploader/LICENSE old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/continue.gif b/resources/fine-uploader/continue.gif old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/dnd.js b/resources/fine-uploader/dnd.js old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/dnd.js.map b/resources/fine-uploader/dnd.js.map old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/dnd.min.js b/resources/fine-uploader/dnd.min.js old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/dnd.min.js.map b/resources/fine-uploader/dnd.min.js.map old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/edit.gif b/resources/fine-uploader/edit.gif old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/fine-uploader-gallery.css b/resources/fine-uploader/fine-uploader-gallery.css old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/fine-uploader-gallery.min.css b/resources/fine-uploader/fine-uploader-gallery.min.css old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/fine-uploader-gallery.min.css.map b/resources/fine-uploader/fine-uploader-gallery.min.css.map old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/fine-uploader-new.css b/resources/fine-uploader/fine-uploader-new.css old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/fine-uploader-new.min.css b/resources/fine-uploader/fine-uploader-new.min.css old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/fine-uploader-new.min.css.map b/resources/fine-uploader/fine-uploader-new.min.css.map old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/fine-uploader.core.js b/resources/fine-uploader/fine-uploader.core.js old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/fine-uploader.core.js.map b/resources/fine-uploader/fine-uploader.core.js.map old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/fine-uploader.core.min.js b/resources/fine-uploader/fine-uploader.core.min.js old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/fine-uploader.core.min.js.map b/resources/fine-uploader/fine-uploader.core.min.js.map old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/fine-uploader.css b/resources/fine-uploader/fine-uploader.css old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/fine-uploader.js b/resources/fine-uploader/fine-uploader.js old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/fine-uploader.js.map b/resources/fine-uploader/fine-uploader.js.map old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/fine-uploader.min.css b/resources/fine-uploader/fine-uploader.min.css old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/fine-uploader.min.css.map b/resources/fine-uploader/fine-uploader.min.css.map old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/fine-uploader.min.js b/resources/fine-uploader/fine-uploader.min.js old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/fine-uploader.min.js.map b/resources/fine-uploader/fine-uploader.min.js.map old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/jquery.fine-uploader.js b/resources/fine-uploader/jquery.fine-uploader.js old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/jquery.fine-uploader.js.map b/resources/fine-uploader/jquery.fine-uploader.js.map old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/jquery.fine-uploader.min.js b/resources/fine-uploader/jquery.fine-uploader.min.js old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/jquery.fine-uploader.min.js.map b/resources/fine-uploader/jquery.fine-uploader.min.js.map old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/loading.gif b/resources/fine-uploader/loading.gif old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/pause.gif b/resources/fine-uploader/pause.gif old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/processing.gif b/resources/fine-uploader/processing.gif old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/retry.gif b/resources/fine-uploader/retry.gif old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/templates/default.html b/resources/fine-uploader/templates/default.html old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/templates/gallery.html b/resources/fine-uploader/templates/gallery.html old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/templates/simple-thumbnails.html b/resources/fine-uploader/templates/simple-thumbnails.html old mode 100644 new mode 100755 diff --git a/resources/fine-uploader/trash.gif b/resources/fine-uploader/trash.gif old mode 100644 new mode 100755 diff --git a/resources/icofont.min.css b/resources/icofont.min.css old mode 100644 new mode 100755 diff --git a/resources/icofont/demo.html b/resources/icofont/demo.html old mode 100644 new mode 100755 diff --git a/resources/icofont/fonts/icofont.eot b/resources/icofont/fonts/icofont.eot old mode 100644 new mode 100755 diff --git a/resources/icofont/fonts/icofont.svg b/resources/icofont/fonts/icofont.svg old mode 100644 new mode 100755 diff --git a/resources/icofont/fonts/icofont.ttf b/resources/icofont/fonts/icofont.ttf old mode 100644 new mode 100755 diff --git a/resources/icofont/fonts/icofont.woff b/resources/icofont/fonts/icofont.woff old mode 100644 new mode 100755 diff --git a/resources/icofont/fonts/icofont.woff2 b/resources/icofont/fonts/icofont.woff2 old mode 100644 new mode 100755 diff --git a/resources/icofont/icofont.css b/resources/icofont/icofont.css old mode 100644 new mode 100755 diff --git a/resources/icofont/icofont.min.css b/resources/icofont/icofont.min.css old mode 100644 new mode 100755 diff --git a/resources/icons/android-chrome-192x192.png b/resources/icons/android-chrome-192x192.png old mode 100644 new mode 100755 diff --git a/resources/icons/apple-touch-icon.png b/resources/icons/apple-touch-icon.png old mode 100644 new mode 100755 diff --git a/resources/icons/browserconfig.xml b/resources/icons/browserconfig.xml old mode 100644 new mode 100755 diff --git a/resources/icons/favicon-16x16.png b/resources/icons/favicon-16x16.png old mode 100644 new mode 100755 diff --git a/resources/icons/favicon-32x32.png b/resources/icons/favicon-32x32.png old mode 100644 new mode 100755 diff --git a/resources/icons/favicon.ico b/resources/icons/favicon.ico old mode 100644 new mode 100755 diff --git a/resources/icons/icon.png b/resources/icons/icon.png old mode 100644 new mode 100755 diff --git a/resources/icons/logo_original.png b/resources/icons/logo_original.png old mode 100644 new mode 100755 diff --git a/resources/icons/manifest.json b/resources/icons/manifest.json old mode 100644 new mode 100755 diff --git a/resources/icons/old/android-chrome-144x144.png b/resources/icons/old/android-chrome-144x144.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/android-chrome-192x192.png b/resources/icons/old/android-chrome-192x192.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/android-chrome-36x36.png b/resources/icons/old/android-chrome-36x36.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/android-chrome-48x48.png b/resources/icons/old/android-chrome-48x48.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/android-chrome-72x72.png b/resources/icons/old/android-chrome-72x72.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/android-chrome-96x96.png b/resources/icons/old/android-chrome-96x96.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-114x114-precomposed.png b/resources/icons/old/apple-touch-icon-114x114-precomposed.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-114x114.png b/resources/icons/old/apple-touch-icon-114x114.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-120x120-precomposed.png b/resources/icons/old/apple-touch-icon-120x120-precomposed.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-120x120.png b/resources/icons/old/apple-touch-icon-120x120.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-144x144-precomposed.png b/resources/icons/old/apple-touch-icon-144x144-precomposed.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-144x144.png b/resources/icons/old/apple-touch-icon-144x144.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-152x152-precomposed.png b/resources/icons/old/apple-touch-icon-152x152-precomposed.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-152x152.png b/resources/icons/old/apple-touch-icon-152x152.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-180x180-precomposed.png b/resources/icons/old/apple-touch-icon-180x180-precomposed.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-180x180.png b/resources/icons/old/apple-touch-icon-180x180.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-57x57-precomposed.png b/resources/icons/old/apple-touch-icon-57x57-precomposed.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-57x57.png b/resources/icons/old/apple-touch-icon-57x57.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-60x60-precomposed.png b/resources/icons/old/apple-touch-icon-60x60-precomposed.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-60x60.png b/resources/icons/old/apple-touch-icon-60x60.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-72x72-precomposed.png b/resources/icons/old/apple-touch-icon-72x72-precomposed.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-72x72.png b/resources/icons/old/apple-touch-icon-72x72.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-76x76-precomposed.png b/resources/icons/old/apple-touch-icon-76x76-precomposed.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-76x76.png b/resources/icons/old/apple-touch-icon-76x76.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon-precomposed.png b/resources/icons/old/apple-touch-icon-precomposed.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/apple-touch-icon.png b/resources/icons/old/apple-touch-icon.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/browserconfig.xml b/resources/icons/old/browserconfig.xml old mode 100644 new mode 100755 diff --git a/resources/icons/old/favicon-16x16.png b/resources/icons/old/favicon-16x16.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/favicon-32x32.png b/resources/icons/old/favicon-32x32.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/favicon.ico b/resources/icons/old/favicon.ico old mode 100644 new mode 100755 diff --git a/resources/icons/old/logo_old.png b/resources/icons/old/logo_old.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/mstile-144x144.png b/resources/icons/old/mstile-144x144.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/mstile-150x150.png b/resources/icons/old/mstile-150x150.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/mstile-310x150.png b/resources/icons/old/mstile-310x150.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/mstile-310x310.png b/resources/icons/old/mstile-310x310.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/mstile-70x70.png b/resources/icons/old/mstile-70x70.png old mode 100644 new mode 100755 diff --git a/resources/icons/old/safari-pinned-tab.svg b/resources/icons/old/safari-pinned-tab.svg old mode 100644 new mode 100755 diff --git a/resources/icons/reload.png b/resources/icons/reload.png old mode 100644 new mode 100755 diff --git a/resources/icons/site.webmanifest b/resources/icons/site.webmanifest old mode 100644 new mode 100755 diff --git a/resources/jquery-ui.min.js b/resources/jquery-ui.min.js old mode 100644 new mode 100755 diff --git a/resources/jszip/jszip.min.js b/resources/jszip/jszip.min.js old mode 100644 new mode 100755 diff --git a/resources/libs/README.md b/resources/libs/README.md old mode 100644 new mode 100755 diff --git a/resources/libs/chart.js/Chart.js b/resources/libs/chart.js/Chart.js old mode 100644 new mode 100755 diff --git a/resources/libs/clipboard/clipboard.js b/resources/libs/clipboard/clipboard.js old mode 100644 new mode 100755 diff --git a/resources/libs/clipboard/tooltip.css b/resources/libs/clipboard/tooltip.css old mode 100644 new mode 100755 diff --git a/resources/libs/clipboard/tooltip.js b/resources/libs/clipboard/tooltip.js old mode 100644 new mode 100755 diff --git a/resources/libs/featherlight/featherlight.min.css b/resources/libs/featherlight/featherlight.min.css old mode 100644 new mode 100755 diff --git a/resources/libs/featherlight/featherlight.min.js b/resources/libs/featherlight/featherlight.min.js old mode 100644 new mode 100755 diff --git a/resources/libs/fontawesome/font-awesome.css b/resources/libs/fontawesome/font-awesome.css old mode 100644 new mode 100755 diff --git a/resources/libs/fontawesome/fontawesome-webfont.eot b/resources/libs/fontawesome/fontawesome-webfont.eot old mode 100644 new mode 100755 diff --git a/resources/libs/fontawesome/fontawesome-webfont.svg b/resources/libs/fontawesome/fontawesome-webfont.svg old mode 100644 new mode 100755 diff --git a/resources/libs/fontawesome/fontawesome-webfont.ttf b/resources/libs/fontawesome/fontawesome-webfont.ttf old mode 100644 new mode 100755 diff --git a/resources/libs/fontawesome/fontawesome-webfont.woff b/resources/libs/fontawesome/fontawesome-webfont.woff old mode 100644 new mode 100755 diff --git a/resources/libs/fontawesome/fontawesome-webfont.woff2 b/resources/libs/fontawesome/fontawesome-webfont.woff2 old mode 100644 new mode 100755 diff --git a/resources/libs/jquery-3.4.1.min.js b/resources/libs/jquery-3.4.1.min.js old mode 100644 new mode 100755 diff --git a/resources/libs/jquery-cookie.js b/resources/libs/jquery-cookie.js old mode 100644 new mode 100755 diff --git a/resources/libs/jquery-sortable.js b/resources/libs/jquery-sortable.js old mode 100644 new mode 100755 diff --git a/resources/libs/jquery-taphold.js b/resources/libs/jquery-taphold.js old mode 100644 new mode 100755 diff --git a/resources/libs/jquery.unveil.js b/resources/libs/jquery.unveil.js old mode 100644 new mode 100755 diff --git a/resources/libs/latinmodernmath/latinmodern-math.eot b/resources/libs/latinmodernmath/latinmodern-math.eot old mode 100644 new mode 100755 diff --git a/resources/libs/latinmodernmath/latinmodern-math.ttf b/resources/libs/latinmodernmath/latinmodern-math.ttf old mode 100644 new mode 100755 diff --git a/resources/libs/latinmodernmath/latinmodern-math.woff b/resources/libs/latinmodernmath/latinmodern-math.woff old mode 100644 new mode 100755 diff --git a/resources/libs/latinmodernmath/latinmodern-math.woff2 b/resources/libs/latinmodernmath/latinmodern-math.woff2 old mode 100644 new mode 100755 diff --git a/resources/libs/moment.js b/resources/libs/moment.js old mode 100644 new mode 100755 diff --git a/resources/libs/nouislider.min.css b/resources/libs/nouislider.min.css old mode 100644 new mode 100755 diff --git a/resources/libs/nouislider.min.js b/resources/libs/nouislider.min.js old mode 100644 new mode 100755 diff --git a/resources/libs/raven.min.js b/resources/libs/raven.min.js old mode 100644 new mode 100755 diff --git a/resources/libs/select2/select2.css b/resources/libs/select2/select2.css old mode 100644 new mode 100755 diff --git a/resources/libs/select2/select2.js b/resources/libs/select2/select2.js old mode 100644 new mode 100755 diff --git a/resources/libs/tablesorter.js b/resources/libs/tablesorter.js old mode 100644 new mode 100755 diff --git a/resources/libs/timezone-map/timezone-map.css b/resources/libs/timezone-map/timezone-map.css old mode 100644 new mode 100755 diff --git a/resources/libs/timezone-map/timezone-picker.js b/resources/libs/timezone-map/timezone-picker.js old mode 100644 new mode 100755 diff --git a/resources/libs/timezone-map/timezone-picker.json b/resources/libs/timezone-map/timezone-picker.json old mode 100644 new mode 100755 diff --git a/resources/loading.gif b/resources/loading.gif old mode 100644 new mode 100755 diff --git a/resources/markdown.css b/resources/markdown.css old mode 100644 new mode 100755 diff --git a/resources/math.scss b/resources/math.scss old mode 100644 new mode 100755 diff --git a/resources/mathjax3_config.js b/resources/mathjax3_config.js old mode 100644 new mode 100755 diff --git a/resources/misc.scss b/resources/misc.scss old mode 100644 new mode 100755 diff --git a/resources/organization.scss b/resources/organization.scss old mode 100644 new mode 100755 diff --git a/resources/pagedown/LICENSE.txt b/resources/pagedown/LICENSE.txt old mode 100644 new mode 100755 diff --git a/resources/pagedown/Markdown.Converter.js b/resources/pagedown/Markdown.Converter.js old mode 100644 new mode 100755 diff --git a/resources/pagedown/Markdown.Editor.js b/resources/pagedown/Markdown.Editor.js old mode 100644 new mode 100755 diff --git a/resources/pagedown/Markdown.Sanitizer.js b/resources/pagedown/Markdown.Sanitizer.js old mode 100644 new mode 100755 diff --git a/resources/pagedown/README.md b/resources/pagedown/README.md old mode 100644 new mode 100755 diff --git a/resources/pagedown/demo/browser/demo.css b/resources/pagedown/demo/browser/demo.css old mode 100644 new mode 100755 diff --git a/resources/pagedown/demo/browser/demo.html b/resources/pagedown/demo/browser/demo.html old mode 100644 new mode 100755 diff --git a/resources/pagedown/demo/node/demo.js b/resources/pagedown/demo/node/demo.js old mode 100644 new mode 100755 diff --git a/resources/pagedown/local/Markdown.local.fr.js b/resources/pagedown/local/Markdown.local.fr.js old mode 100644 new mode 100755 diff --git a/resources/pagedown/node-pagedown.js b/resources/pagedown/node-pagedown.js old mode 100644 new mode 100755 diff --git a/resources/pagedown/package.json b/resources/pagedown/package.json old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/admonition.svg b/resources/pagedown/resources/admonition.svg old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/blockquote.svg b/resources/pagedown/resources/blockquote.svg old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/bold.svg b/resources/pagedown/resources/bold.svg old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/code.svg b/resources/pagedown/resources/code.svg old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/heading.svg b/resources/pagedown/resources/heading.svg old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/hr.svg b/resources/pagedown/resources/hr.svg old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/image.svg b/resources/pagedown/resources/image.svg old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/italic.svg b/resources/pagedown/resources/italic.svg old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/latex-display.svg b/resources/pagedown/resources/latex-display.svg old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/latex.svg b/resources/pagedown/resources/latex.svg old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/link.svg b/resources/pagedown/resources/link.svg old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/olist.svg b/resources/pagedown/resources/olist.svg old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/redo.svg b/resources/pagedown/resources/redo.svg old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/spoiler.svg b/resources/pagedown/resources/spoiler.svg old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/ulist.svg b/resources/pagedown/resources/ulist.svg old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/undo.svg b/resources/pagedown/resources/undo.svg old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/user.svg b/resources/pagedown/resources/user.svg old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/wmd-buttons.pdn b/resources/pagedown/resources/wmd-buttons.pdn old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/wmd-buttons.png b/resources/pagedown/resources/wmd-buttons.png old mode 100644 new mode 100755 diff --git a/resources/pagedown/resources/wmd-buttons.psd b/resources/pagedown/resources/wmd-buttons.psd old mode 100644 new mode 100755 diff --git a/resources/pagedown/wmd-buttons.png b/resources/pagedown/wmd-buttons.png old mode 100644 new mode 100755 diff --git a/resources/pagedown_math.js b/resources/pagedown_math.js old mode 100644 new mode 100755 diff --git a/resources/pagedown_widget.css b/resources/pagedown_widget.css old mode 100644 new mode 100755 diff --git a/resources/pagedown_widget.scss b/resources/pagedown_widget.scss old mode 100644 new mode 100755 diff --git a/resources/problem.scss b/resources/problem.scss old mode 100644 new mode 100755 diff --git a/resources/problem_edit.css b/resources/problem_edit.css old mode 100644 new mode 100755 diff --git a/resources/pygment-github.css b/resources/pygment-github.css old mode 100644 new mode 100755 diff --git a/resources/ranks.scss b/resources/ranks.scss old mode 100644 new mode 100755 diff --git a/resources/resolver.css b/resources/resolver.css old mode 100644 new mode 100755 diff --git a/resources/resolver.js b/resources/resolver.js old mode 100644 new mode 100755 diff --git a/resources/site.webmanifest b/resources/site.webmanifest old mode 100644 new mode 100755 diff --git a/resources/status.scss b/resources/status.scss old mode 100644 new mode 100755 diff --git a/resources/style.scss b/resources/style.scss old mode 100644 new mode 100755 diff --git a/resources/submission.scss b/resources/submission.scss old mode 100644 new mode 100755 diff --git a/resources/table.scss b/resources/table.scss old mode 100644 new mode 100755 diff --git a/resources/task_status.css b/resources/task_status.css old mode 100644 new mode 100755 diff --git a/resources/ticket.scss b/resources/ticket.scss old mode 100644 new mode 100755 diff --git a/resources/unselectable.htc b/resources/unselectable.htc old mode 100644 new mode 100755 diff --git a/resources/users.scss b/resources/users.scss old mode 100644 new mode 100755 diff --git a/resources/vars.scss b/resources/vars.scss old mode 100644 new mode 100755 diff --git a/resources/widgets.scss b/resources/widgets.scss old mode 100644 new mode 100755 diff --git a/resources/wpadmin/css/wpadmin.site.css b/resources/wpadmin/css/wpadmin.site.css old mode 100644 new mode 100755 diff --git a/robots.txt b/robots.txt old mode 100644 new mode 100755 diff --git a/templates/about/about.html b/templates/about/about.html old mode 100644 new mode 100755 diff --git a/templates/about/custom-checker-sample.html b/templates/about/custom-checker-sample.html old mode 100644 new mode 100755 diff --git a/templates/actionbar/list.html b/templates/actionbar/list.html old mode 100644 new mode 100755 index 0bad8e1..bbed0bc --- 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 100644 new mode 100755 diff --git a/templates/admin/auth/user/change_form.html b/templates/admin/auth/user/change_form.html old mode 100644 new mode 100755 diff --git a/templates/admin/judge/contest/change_form.html b/templates/admin/judge/contest/change_form.html old mode 100644 new mode 100755 diff --git a/templates/admin/judge/contest/change_list.html b/templates/admin/judge/contest/change_list.html old mode 100644 new mode 100755 diff --git a/templates/admin/judge/judge/change_form.html b/templates/admin/judge/judge/change_form.html old mode 100644 new mode 100755 diff --git a/templates/admin/judge/problem/change_form.html b/templates/admin/judge/problem/change_form.html old mode 100644 new mode 100755 diff --git a/templates/admin/judge/profile/change_form.html b/templates/admin/judge/profile/change_form.html old mode 100644 new mode 100755 diff --git a/templates/admin/judge/submission/change_form.html b/templates/admin/judge/submission/change_form.html old mode 100644 new mode 100755 diff --git a/templates/base.html b/templates/base.html old mode 100644 new mode 100755 diff --git a/templates/blog/blog.html b/templates/blog/blog.html old mode 100644 new mode 100755 diff --git a/templates/blog/content.html b/templates/blog/content.html old mode 100644 new mode 100755 diff --git a/templates/blog/dashboard.html b/templates/blog/dashboard.html old mode 100644 new mode 100755 diff --git a/templates/blog/list.html b/templates/blog/list.html old mode 100644 new mode 100755 diff --git a/templates/blog/media-css.html b/templates/blog/media-css.html old mode 100644 new mode 100755 diff --git a/templates/blog/preview.html b/templates/blog/preview.html old mode 100644 new mode 100755 diff --git a/templates/chat/chat.html b/templates/chat/chat.html old mode 100644 new mode 100755 diff --git a/templates/chat/chat_css.html b/templates/chat/chat_css.html old mode 100644 new mode 100755 diff --git a/templates/chat/message.html b/templates/chat/message.html old mode 100644 new mode 100755 diff --git a/templates/chat/message_list.html b/templates/chat/message_list.html old mode 100644 new mode 100755 diff --git a/templates/chat/online_status.html b/templates/chat/online_status.html old mode 100644 new mode 100755 diff --git a/templates/chat/user_online_status.html b/templates/chat/user_online_status.html old mode 100644 new mode 100755 diff --git a/templates/comments/content-list.html b/templates/comments/content-list.html new file mode 100755 index 0000000..0c3408d --- /dev/null +++ b/templates/comments/content-list.html @@ -0,0 +1,139 @@ +{% 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 100644 new mode 100755 diff --git a/templates/comments/edit-ajax.html b/templates/comments/edit-ajax.html old mode 100644 new mode 100755 diff --git a/templates/comments/edit.html b/templates/comments/edit.html old mode 100644 new mode 100755 diff --git a/templates/comments/feed.html b/templates/comments/feed.html old mode 100644 new mode 100755 diff --git a/templates/comments/list.html b/templates/comments/list.html old mode 100644 new mode 100755 index 6adf903..9977eb5 --- a/templates/comments/list.html +++ b/templates/comments/list.html @@ -36,14 +36,15 @@ {% endif %} {% endif %} - {% if has_comments %} -
      + {% if has_comments or comment_all_list %} +
        {% 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 comment_all_list %} + {% for node in mptt_tree(comment_all_list) recursive %}
      • + data-max-revision="{{ node.revisions - 1 }}" + data-revision-ajax="{{ url('comment_revision_ajax', node.id) }}" class="comment">
        @@ -149,6 +150,28 @@ {% 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 100644 new mode 100755 diff --git a/templates/comments/media-css.html b/templates/comments/media-css.html old mode 100644 new mode 100755 diff --git a/templates/comments/media-js.html b/templates/comments/media-js.html old mode 100644 new mode 100755 index b1131d5..131d040 --- a/templates/comments/media-js.html +++ b/templates/comments/media-js.html @@ -119,6 +119,77 @@ } }); } + 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 100644 new mode 100755 diff --git a/templates/comments/revision-ajax.html b/templates/comments/revision-ajax.html old mode 100644 new mode 100755 diff --git a/templates/comments/votes.html b/templates/comments/votes.html old mode 100644 new mode 100755 diff --git a/templates/common-content.html b/templates/common-content.html old mode 100644 new mode 100755 diff --git a/templates/contest/access_code.html b/templates/contest/access_code.html old mode 100644 new mode 100755 diff --git a/templates/contest/calendar.html b/templates/contest/calendar.html old mode 100644 new mode 100755 diff --git a/templates/contest/clarification.html b/templates/contest/clarification.html old mode 100644 new mode 100755 diff --git a/templates/contest/clone.html b/templates/contest/clone.html old mode 100644 new mode 100755 diff --git a/templates/contest/contest-datetime.html b/templates/contest/contest-datetime.html old mode 100644 new mode 100755 diff --git a/templates/contest/contest-list-tabs.html b/templates/contest/contest-list-tabs.html old mode 100644 new mode 100755 diff --git a/templates/contest/contest-tabs.html b/templates/contest/contest-tabs.html old mode 100644 new mode 100755 diff --git a/templates/contest/contest.html b/templates/contest/contest.html old mode 100644 new mode 100755 diff --git a/templates/contest/list.html b/templates/contest/list.html old mode 100644 new mode 100755 diff --git a/templates/contest/media-js.html b/templates/contest/media-js.html old mode 100644 new mode 100755 diff --git a/templates/contest/moss.html b/templates/contest/moss.html old mode 100644 new mode 100755 diff --git a/templates/contest/preview.html b/templates/contest/preview.html old mode 100644 new mode 100755 diff --git a/templates/contest/private.html b/templates/contest/private.html old mode 100644 new mode 100755 diff --git a/templates/contest/ranking-css.html b/templates/contest/ranking-css.html old mode 100644 new mode 100755 diff --git a/templates/contest/ranking-table.html b/templates/contest/ranking-table.html old mode 100644 new mode 100755 diff --git a/templates/contest/ranking.html b/templates/contest/ranking.html old mode 100644 new mode 100755 diff --git a/templates/contest/stats.html b/templates/contest/stats.html old mode 100644 new mode 100755 diff --git a/templates/contest/tag-ajax.html b/templates/contest/tag-ajax.html old mode 100644 new mode 100755 diff --git a/templates/contest/tag-title.html b/templates/contest/tag-title.html old mode 100644 new mode 100755 diff --git a/templates/contest/tag.html b/templates/contest/tag.html old mode 100644 new mode 100755 diff --git a/templates/contests-countdown.html b/templates/contests-countdown.html old mode 100644 new mode 100755 diff --git a/templates/course/base.html b/templates/course/base.html old mode 100644 new mode 100755 diff --git a/templates/course/list.html b/templates/course/list.html old mode 100644 new mode 100755 diff --git a/templates/error.html b/templates/error.html old mode 100644 new mode 100755 diff --git a/templates/extra_js.html b/templates/extra_js.html old mode 100644 new mode 100755 diff --git a/templates/feed/feed_js.html b/templates/feed/feed_js.html old mode 100644 new mode 100755 diff --git a/templates/feed/has_next.html b/templates/feed/has_next.html old mode 100644 new mode 100755 diff --git a/templates/fine_uploader/script.html b/templates/fine_uploader/script.html old mode 100644 new mode 100755 diff --git a/templates/flatpages/admin_link.html b/templates/flatpages/admin_link.html old mode 100644 new mode 100755 diff --git a/templates/flatpages/default.html b/templates/flatpages/default.html old mode 100644 new mode 100755 diff --git a/templates/flatpages/markdown.html b/templates/flatpages/markdown.html old mode 100644 new mode 100755 diff --git a/templates/flatpages/markdown_math.html b/templates/flatpages/markdown_math.html old mode 100644 new mode 100755 diff --git a/templates/generic-message.html b/templates/generic-message.html old mode 100644 new mode 100755 diff --git a/templates/home.html b/templates/home.html old mode 100644 new mode 100755 diff --git a/templates/internal/left-sidebar.html b/templates/internal/left-sidebar.html old mode 100644 new mode 100755 diff --git a/templates/internal/problem.html b/templates/internal/problem.html old mode 100644 new mode 100755 diff --git a/templates/internal/request_time.html b/templates/internal/request_time.html old mode 100644 new mode 100755 diff --git a/templates/internal/request_time_detail.html b/templates/internal/request_time_detail.html old mode 100644 new mode 100755 diff --git a/templates/license-preview.html b/templates/license-preview.html old mode 100644 new mode 100755 diff --git a/templates/license.html b/templates/license.html old mode 100644 new mode 100755 diff --git a/templates/list-pages.html b/templates/list-pages.html old mode 100644 new mode 100755 diff --git a/templates/loading-page.html b/templates/loading-page.html old mode 100644 new mode 100755 diff --git a/templates/mathjax-load.html b/templates/mathjax-load.html old mode 100644 new mode 100755 diff --git a/templates/messages.html b/templates/messages.html old mode 100644 new mode 100755 diff --git a/templates/notification/list.html b/templates/notification/list.html old mode 100644 new mode 100755 diff --git a/templates/organization/add-member.html b/templates/organization/add-member.html old mode 100644 new mode 100755 diff --git a/templates/organization/add.html b/templates/organization/add.html old mode 100644 new mode 100755 diff --git a/templates/organization/blog/add.html b/templates/organization/blog/add.html old mode 100644 new mode 100755 diff --git a/templates/organization/blog/edit.html b/templates/organization/blog/edit.html old mode 100644 new mode 100755 diff --git a/templates/organization/blog/pending.html b/templates/organization/blog/pending.html old mode 100644 new mode 100755 diff --git a/templates/organization/contest/add.html b/templates/organization/contest/add.html old mode 100644 new mode 100755 diff --git a/templates/organization/contest/edit.html b/templates/organization/contest/edit.html old mode 100644 new mode 100755 diff --git a/templates/organization/contests.html b/templates/organization/contests.html old mode 100644 new mode 100755 diff --git a/templates/organization/edit.html b/templates/organization/edit.html old mode 100644 new mode 100755 diff --git a/templates/organization/form.html b/templates/organization/form.html old mode 100644 new mode 100755 diff --git a/templates/organization/home-base.html b/templates/organization/home-base.html old mode 100644 new mode 100755 diff --git a/templates/organization/home-js.html b/templates/organization/home-js.html old mode 100644 new mode 100755 diff --git a/templates/organization/home.html b/templates/organization/home.html old mode 100644 new mode 100755 diff --git a/templates/organization/list.html b/templates/organization/list.html old mode 100644 new mode 100755 diff --git a/templates/organization/new.html b/templates/organization/new.html old mode 100644 new mode 100755 diff --git a/templates/organization/org-left-sidebar.html b/templates/organization/org-left-sidebar.html old mode 100644 new mode 100755 diff --git a/templates/organization/org-right-sidebar.html b/templates/organization/org-right-sidebar.html old mode 100644 new mode 100755 diff --git a/templates/organization/preview.html b/templates/organization/preview.html old mode 100644 new mode 100755 diff --git a/templates/organization/problems.html b/templates/organization/problems.html old mode 100644 new mode 100755 diff --git a/templates/organization/requests/detail.html b/templates/organization/requests/detail.html old mode 100644 new mode 100755 diff --git a/templates/organization/requests/log.html b/templates/organization/requests/log.html old mode 100644 new mode 100755 diff --git a/templates/organization/requests/pending.html b/templates/organization/requests/pending.html old mode 100644 new mode 100755 diff --git a/templates/organization/requests/request.html b/templates/organization/requests/request.html old mode 100644 new mode 100755 diff --git a/templates/organization/requests/tabs.html b/templates/organization/requests/tabs.html old mode 100644 new mode 100755 diff --git a/templates/organization/submissions.html b/templates/organization/submissions.html old mode 100644 new mode 100755 diff --git a/templates/organization/users-table.html b/templates/organization/users-table.html old mode 100644 new mode 100755 diff --git a/templates/organization/users.html b/templates/organization/users.html old mode 100644 new mode 100755 diff --git a/templates/pagedown.html b/templates/pagedown.html old mode 100644 new mode 100755 diff --git a/templates/pagedown/widgets/default.html b/templates/pagedown/widgets/default.html old mode 100644 new mode 100755 diff --git a/templates/problem/clone.html b/templates/problem/clone.html old mode 100644 new mode 100755 diff --git a/templates/problem/data.html b/templates/problem/data.html old mode 100644 new mode 100755 diff --git a/templates/problem/editorial.html b/templates/problem/editorial.html old mode 100644 new mode 100755 diff --git a/templates/problem/feed.html b/templates/problem/feed.html old mode 100644 new mode 100755 diff --git a/templates/problem/feed/problems.html b/templates/problem/feed/problems.html old mode 100644 new mode 100755 diff --git a/templates/problem/left-sidebar.html b/templates/problem/left-sidebar.html old mode 100644 new mode 100755 diff --git a/templates/problem/list-base.html b/templates/problem/list-base.html old mode 100644 new mode 100755 diff --git a/templates/problem/list.html b/templates/problem/list.html old mode 100644 new mode 100755 diff --git a/templates/problem/manage_submission.html b/templates/problem/manage_submission.html old mode 100644 new mode 100755 diff --git a/templates/problem/preview.html b/templates/problem/preview.html old mode 100644 new mode 100755 diff --git a/templates/problem/problem-list-tabs.html b/templates/problem/problem-list-tabs.html old mode 100644 new mode 100755 diff --git a/templates/problem/problem.html b/templates/problem/problem.html old mode 100644 new mode 100755 diff --git a/templates/problem/raw.html b/templates/problem/raw.html old mode 100644 new mode 100755 diff --git a/templates/problem/recent-attempt.html b/templates/problem/recent-attempt.html old mode 100644 new mode 100755 diff --git a/templates/problem/related_problems.html b/templates/problem/related_problems.html old mode 100644 new mode 100755 diff --git a/templates/problem/search-form.html b/templates/problem/search-form.html old mode 100644 new mode 100755 diff --git a/templates/problem/submission-diff.html b/templates/problem/submission-diff.html old mode 100644 new mode 100755 diff --git a/templates/problem/submit.html b/templates/problem/submit.html old mode 100644 new mode 100755 diff --git a/templates/problem/yaml.html b/templates/problem/yaml.html old mode 100644 new mode 100755 diff --git a/templates/recent-organization.html b/templates/recent-organization.html old mode 100644 new mode 100755 diff --git a/templates/registration/activate.html b/templates/registration/activate.html old mode 100644 new mode 100755 diff --git a/templates/registration/activation_complete.html b/templates/registration/activation_complete.html old mode 100644 new mode 100755 diff --git a/templates/registration/activation_email.html b/templates/registration/activation_email.html old mode 100644 new mode 100755 diff --git a/templates/registration/activation_email.txt b/templates/registration/activation_email.txt old mode 100644 new mode 100755 diff --git a/templates/registration/activation_email_subject.txt b/templates/registration/activation_email_subject.txt old mode 100644 new mode 100755 diff --git a/templates/registration/login.html b/templates/registration/login.html old mode 100644 new mode 100755 diff --git a/templates/registration/logout.html b/templates/registration/logout.html old mode 100644 new mode 100755 diff --git a/templates/registration/password_change_done.html b/templates/registration/password_change_done.html old mode 100644 new mode 100755 diff --git a/templates/registration/password_change_form.html b/templates/registration/password_change_form.html old mode 100644 new mode 100755 diff --git a/templates/registration/password_reset.html b/templates/registration/password_reset.html old mode 100644 new mode 100755 diff --git a/templates/registration/password_reset_complete.html b/templates/registration/password_reset_complete.html old mode 100644 new mode 100755 diff --git a/templates/registration/password_reset_confirm.html b/templates/registration/password_reset_confirm.html old mode 100644 new mode 100755 diff --git a/templates/registration/password_reset_done.html b/templates/registration/password_reset_done.html old mode 100644 new mode 100755 diff --git a/templates/registration/password_reset_email.html b/templates/registration/password_reset_email.html old mode 100644 new mode 100755 diff --git a/templates/registration/password_reset_email.txt b/templates/registration/password_reset_email.txt old mode 100644 new mode 100755 diff --git a/templates/registration/password_reset_subject.txt b/templates/registration/password_reset_subject.txt old mode 100644 new mode 100755 diff --git a/templates/registration/profile_creation.html b/templates/registration/profile_creation.html old mode 100644 new mode 100755 diff --git a/templates/registration/registration_closed.html b/templates/registration/registration_closed.html old mode 100644 new mode 100755 diff --git a/templates/registration/registration_complete.html b/templates/registration/registration_complete.html old mode 100644 new mode 100755 diff --git a/templates/registration/registration_form.html b/templates/registration/registration_form.html old mode 100644 new mode 100755 diff --git a/templates/registration/totp_auth.html b/templates/registration/totp_auth.html old mode 100644 new mode 100755 diff --git a/templates/registration/totp_disable.html b/templates/registration/totp_disable.html old mode 100644 new mode 100755 diff --git a/templates/registration/totp_enable.html b/templates/registration/totp_enable.html old mode 100644 new mode 100755 diff --git a/templates/registration/username_select.html b/templates/registration/username_select.html old mode 100644 new mode 100755 diff --git a/templates/resolver/media-js.html b/templates/resolver/media-js.html old mode 100644 new mode 100755 diff --git a/templates/resolver/resolver.html b/templates/resolver/resolver.html old mode 100644 new mode 100755 diff --git a/templates/runtime-version-fragment.html b/templates/runtime-version-fragment.html old mode 100644 new mode 100755 diff --git a/templates/site-logo-fragment.html b/templates/site-logo-fragment.html old mode 100644 new mode 100755 diff --git a/templates/solution-preview.html b/templates/solution-preview.html old mode 100644 new mode 100755 diff --git a/templates/stats/base.html b/templates/stats/base.html old mode 100644 new mode 100755 diff --git a/templates/stats/language.html b/templates/stats/language.html old mode 100644 new mode 100755 diff --git a/templates/stats/media-js.html b/templates/stats/media-js.html old mode 100644 new mode 100755 diff --git a/templates/stats/site.html b/templates/stats/site.html old mode 100644 new mode 100755 diff --git a/templates/stats/tab.html b/templates/stats/tab.html old mode 100644 new mode 100755 diff --git a/templates/status/judge-status-table.html b/templates/status/judge-status-table.html old mode 100644 new mode 100755 diff --git a/templates/status/judge-status.html b/templates/status/judge-status.html old mode 100644 new mode 100755 diff --git a/templates/status/language-list.html b/templates/status/language-list.html old mode 100644 new mode 100755 diff --git a/templates/status/media-css.html b/templates/status/media-css.html old mode 100644 new mode 100755 diff --git a/templates/status/media-js.html b/templates/status/media-js.html old mode 100644 new mode 100755 diff --git a/templates/status/status-tabs.html b/templates/status/status-tabs.html old mode 100644 new mode 100755 diff --git a/templates/status/versions.html b/templates/status/versions.html old mode 100644 new mode 100755 diff --git a/templates/submission/info-base.html b/templates/submission/info-base.html old mode 100644 new mode 100755 diff --git a/templates/submission/internal-error-message.html b/templates/submission/internal-error-message.html old mode 100644 new mode 100755 diff --git a/templates/submission/list.html b/templates/submission/list.html old mode 100644 new mode 100755 diff --git a/templates/submission/row.html b/templates/submission/row.html old mode 100644 new mode 100755 diff --git a/templates/submission/source.html b/templates/submission/source.html old mode 100644 new mode 100755 diff --git a/templates/submission/status-testcases.html b/templates/submission/status-testcases.html old mode 100644 new mode 100755 diff --git a/templates/submission/status.html b/templates/submission/status.html old mode 100644 new mode 100755 diff --git a/templates/submission/submission-list-tabs.html b/templates/submission/submission-list-tabs.html old mode 100644 new mode 100755 diff --git a/templates/submission/user-ajax.html b/templates/submission/user-ajax.html old mode 100644 new mode 100755 diff --git a/templates/tabs-base.html b/templates/tabs-base.html old mode 100644 new mode 100755 diff --git a/templates/task_status.html b/templates/task_status.html old mode 100644 new mode 100755 diff --git a/templates/three-column-content.html b/templates/three-column-content.html old mode 100644 new mode 100755 diff --git a/templates/ticket/edit-notes.html b/templates/ticket/edit-notes.html old mode 100644 new mode 100755 diff --git a/templates/ticket/feed.html b/templates/ticket/feed.html old mode 100644 new mode 100755 diff --git a/templates/ticket/list.html b/templates/ticket/list.html old mode 100644 new mode 100755 diff --git a/templates/ticket/message.html b/templates/ticket/message.html old mode 100644 new mode 100755 diff --git a/templates/ticket/new.html b/templates/ticket/new.html old mode 100644 new mode 100755 diff --git a/templates/ticket/new_problem.html b/templates/ticket/new_problem.html old mode 100644 new mode 100755 diff --git a/templates/ticket/preview.html b/templates/ticket/preview.html old mode 100644 new mode 100755 diff --git a/templates/ticket/row.html b/templates/ticket/row.html old mode 100644 new mode 100755 diff --git a/templates/ticket/ticket.html b/templates/ticket/ticket.html old mode 100644 new mode 100755 diff --git a/templates/time-remaining-fragment.html b/templates/time-remaining-fragment.html old mode 100644 new mode 100755 diff --git a/templates/timezone/media-css.html b/templates/timezone/media-css.html old mode 100644 new mode 100755 diff --git a/templates/timezone/media-js.html b/templates/timezone/media-js.html old mode 100644 new mode 100755 diff --git a/templates/top-users.html b/templates/top-users.html old mode 100644 new mode 100755 diff --git a/templates/two-column-content.html b/templates/two-column-content.html old mode 100644 new mode 100755 diff --git a/templates/user/base-users-js.html b/templates/user/base-users-js.html old mode 100644 new mode 100755 diff --git a/templates/user/base-users-table.html b/templates/user/base-users-table.html old mode 100644 new mode 100755 diff --git a/templates/user/base-users-two-col.html b/templates/user/base-users-two-col.html old mode 100644 new mode 100755 diff --git a/templates/user/edit-profile.html b/templates/user/edit-profile.html old mode 100644 new mode 100755 diff --git a/templates/user/import/index.html b/templates/user/import/index.html old mode 100644 new mode 100755 diff --git a/templates/user/import/table_csv.html b/templates/user/import/table_csv.html old mode 100644 new mode 100755 diff --git a/templates/user/link-list.html b/templates/user/link-list.html old mode 100644 new mode 100755 diff --git a/templates/user/link.html b/templates/user/link.html old mode 100644 new mode 100755 diff --git a/templates/user/list.html b/templates/user/list.html old mode 100644 new mode 100755 diff --git a/templates/user/pp-row.html b/templates/user/pp-row.html old mode 100644 new mode 100755 diff --git a/templates/user/pp-table-body.html b/templates/user/pp-table-body.html old mode 100644 new mode 100755 diff --git a/templates/user/preview.html b/templates/user/preview.html old mode 100644 new mode 100755 diff --git a/templates/user/rating.html b/templates/user/rating.html old mode 100644 new mode 100755 diff --git a/templates/user/user-about.html b/templates/user/user-about.html old mode 100644 new mode 100755 diff --git a/templates/user/user-base.html b/templates/user/user-base.html old mode 100644 new mode 100755 diff --git a/templates/user/user-bookmarks.html b/templates/user/user-bookmarks.html old mode 100644 new mode 100755 diff --git a/templates/user/user-left-sidebar.html b/templates/user/user-left-sidebar.html old mode 100644 new mode 100755 diff --git a/templates/user/user-list-tabs.html b/templates/user/user-list-tabs.html old mode 100644 new mode 100755 diff --git a/templates/user/user-problems.html b/templates/user/user-problems.html old mode 100644 new mode 100755 diff --git a/templates/user/user-tabs.html b/templates/user/user-tabs.html old mode 100644 new mode 100755 diff --git a/templates/user/users-table.html b/templates/user/users-table.html old mode 100644 new mode 100755 diff --git a/templates/widgets/datetimepicker.html b/templates/widgets/datetimepicker.html old mode 100644 new mode 100755 diff --git a/templates/widgets/fine_uploader.html b/templates/widgets/fine_uploader.html old mode 100644 new mode 100755 diff --git a/templates/widgets/relative-time.html b/templates/widgets/relative-time.html old mode 100644 new mode 100755 diff --git a/templates/widgets/select_all.html b/templates/widgets/select_all.html old mode 100644 new mode 100755 diff --git a/websocket/config.js b/websocket/config.js old mode 100644 new mode 100755 diff --git a/websocket/daemon.js b/websocket/daemon.js old mode 100644 new mode 100755 diff --git a/websocket/wscat.js b/websocket/wscat.js old mode 100644 new mode 100755