@shzlx/ui-default 4.58.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/api.ts +61 -0
- package/backendlib/builder.ts +182 -0
- package/backendlib/markdown-it-imsize.ts +235 -0
- package/backendlib/markdown-it-katex.ts +139 -0
- package/backendlib/markdown-it-media.ts +163 -0
- package/backendlib/markdown-it-xss.ts +200 -0
- package/backendlib/markdown.js +64 -0
- package/backendlib/misc.ts +54 -0
- package/backendlib/template.ts +279 -0
- package/breakpoints.json +5 -0
- package/components/DOMAttachedObject.ts +128 -0
- package/components/autocomplete/AssignSelectAutoComplete.tsx +22 -0
- package/components/autocomplete/CustomSelectAutoComplete.tsx +23 -0
- package/components/autocomplete/DomainSelectAutoComplete.tsx +18 -0
- package/components/autocomplete/FileSelectAutoComplete.tsx +26 -0
- package/components/autocomplete/LanguageSelectAutoComplete.tsx +24 -0
- package/components/autocomplete/ProblemSelectAutoComplete.tsx +18 -0
- package/components/autocomplete/UserSelectAutoComplete.tsx +23 -0
- package/components/autocomplete/components/AssignSelectAutoComplete.tsx +118 -0
- package/components/autocomplete/components/DomainSelectAutoComplete.tsx +53 -0
- package/components/autocomplete/components/FileSelectAutoComplete.tsx +50 -0
- package/components/autocomplete/components/LanguageSelectAutoComplete.tsx +48 -0
- package/components/autocomplete/components/ProblemSelectAutoComplete.tsx +54 -0
- package/components/autocomplete/components/UserSelectAutoComplete.tsx +54 -0
- package/components/autocomplete/domainselectautocomplete.page.styl +6 -0
- package/components/autocomplete/index.tsx +110 -0
- package/components/autocomplete/problemselectautocomplete.page.styl +6 -0
- package/components/autocomplete/userselectautocomplete.page.styl +6 -0
- package/components/browser-update.page.ts +27 -0
- package/components/calendar/calendar.page.styl +129 -0
- package/components/calendar/index.js +367 -0
- package/components/clipboard.page.ts +23 -0
- package/components/contest/contest.page.styl +119 -0
- package/components/contest/contest.page.ts +23 -0
- package/components/contest/contest_sidebar.page.styl +21 -0
- package/components/contest/problem-contest-bg.png +0 -0
- package/components/contest/problem-contest-bg@2x.png +0 -0
- package/components/customFont.page.tsx +90 -0
- package/components/datepicker/datepicker.page.tsx +94 -0
- package/components/dialog/DomDialog.ts +145 -0
- package/components/dialog/dialog.page.styl +40 -0
- package/components/dialog/index.tsx +285 -0
- package/components/discussion/CommentBox.js +103 -0
- package/components/discussion/collapsible.page.styl +40 -0
- package/components/discussion/collapsible.page.tsx +62 -0
- package/components/discussion/comments.page.styl +142 -0
- package/components/discussion/comments.page.tsx +192 -0
- package/components/discussion/discussion.page.styl +17 -0
- package/components/discussion/history.page.tsx +81 -0
- package/components/discussion/reaction.page.styl +30 -0
- package/components/discussion/reaction.page.tsx +103 -0
- package/components/drop/drop.page.styl +40 -0
- package/components/dropdown/Dropdown.js +50 -0
- package/components/dropdown/dropdown.page.styl +33 -0
- package/components/dropdown/dropdown.page.ts +8 -0
- package/components/editor/cmeditor.page.ts +23 -0
- package/components/editor/cmeditor.styl +10 -0
- package/components/editor/index.tsx +293 -0
- package/components/editor/mdeditor.ts +60 -0
- package/components/editor/textareaHandler.ts +29 -0
- package/components/footer/footer.page.styl +94 -0
- package/components/footer/footer.page.ts +26 -0
- package/components/form/button.page.default.styl +59 -0
- package/components/form/button.page.styl +36 -0
- package/components/form/checkbox.page.styl +89 -0
- package/components/form/form.page.styl +200 -0
- package/components/form/form.page.ts +20 -0
- package/components/form/multiSelectCheckbox.page.js +46 -0
- package/components/form/radiobox.page.styl +62 -0
- package/components/form/select.page.styl +29 -0
- package/components/form/textbox.page.styl +79 -0
- package/components/form/textbox.page.ts +21 -0
- package/components/form/var.inc.styl +14 -0
- package/components/header/header.page.styl +79 -0
- package/components/highlighter/code-example.js +111 -0
- package/components/highlighter/highlighter.page.styl +99 -0
- package/components/highlighter/highlighter.page.ts +72 -0
- package/components/highlighter/meta.js +15 -0
- package/components/highlighter/prismjs.js +122 -0
- package/components/hint.page.styl +9 -0
- package/components/hint.ts +19 -0
- package/components/hitokoto/index.page.js +21 -0
- package/components/hotkey/hotkey.page.js +83 -0
- package/components/katex/katex.page.js +26 -0
- package/components/katex/katex.page.styl +2 -0
- package/components/languageselect.tsx +94 -0
- package/components/loader/loader.page.styl +40 -0
- package/components/mantine.page.tsx +39 -0
- package/components/marker/Marker.js +192 -0
- package/components/marker/MarkerReactive.js +55 -0
- package/components/marker/marker.page.js +8 -0
- package/components/marker/marker.page.styl +57 -0
- package/components/media/media.page.js +46 -0
- package/components/menu/menu-heading.page.js +28 -0
- package/components/menu/menu.page.js +18 -0
- package/components/menu/menu.page.styl +68 -0
- package/components/message/index.page.ts +166 -0
- package/components/message/worker.ts +110 -0
- package/components/messagepad/DialogueListItem.page.styl +28 -0
- package/components/messagepad/DialogueListItemComponent.jsx +39 -0
- package/components/messagepad/Message.page.styl +64 -0
- package/components/messagepad/MessageComponent.jsx +33 -0
- package/components/messagepad/MessagePad.page.styl +99 -0
- package/components/messagepad/MessagePadDialogueContentContainer.jsx +104 -0
- package/components/messagepad/MessagePadDialogueListContainer.jsx +49 -0
- package/components/messagepad/MessagePadInputContainer.jsx +100 -0
- package/components/messagepad/index.jsx +49 -0
- package/components/messagepad/reducers/activeId.ts +36 -0
- package/components/messagepad/reducers/dialogues.js +53 -0
- package/components/messagepad/reducers/index.ts +14 -0
- package/components/messagepad/reducers/inputs.js +43 -0
- package/components/messagepad/reducers/isPosting.ts +49 -0
- package/components/monaco/index.ts +178 -0
- package/components/monaco/languages/markdown.ts +97 -0
- package/components/monaco/languages/typescript.ts +45 -0
- package/components/monaco/languages/yaml.ts +22 -0
- package/components/monaco/loader.ts +96 -0
- package/components/monaco/monaco.styl +30 -0
- package/components/monaco/nls.js +31 -0
- package/components/monaco/schema/problemconfig.ts +123 -0
- package/components/navigation/hamburgers.page.styl +87 -0
- package/components/navigation/nav-logo-small_dark.png +0 -0
- package/components/navigation/navigation.page.js +203 -0
- package/components/navigation/navigation.page.styl +211 -0
- package/components/notification/index.ts +105 -0
- package/components/notification/notification.page.js +14 -0
- package/components/notification/notification.page.styl +84 -0
- package/components/nprogress.page.styl +50 -0
- package/components/omnisearch/index.page.tsx +124 -0
- package/components/omnisearch/omnibar.page.styl +138 -0
- package/components/pager/pager.page.styl +57 -0
- package/components/preview/preview.page.ts +187 -0
- package/components/problem/create.page.js +12 -0
- package/components/problem/list.page.js +9 -0
- package/components/problem/rp.page.styl +4 -0
- package/components/problem/tag.page.styl +84 -0
- package/components/problemconfig/BasicForm.tsx +92 -0
- package/components/problemconfig/ProblemConfigEditor.tsx +170 -0
- package/components/problemconfig/ProblemConfigForm.tsx +140 -0
- package/components/problemconfig/ProblemConfigTree.tsx +163 -0
- package/components/problemconfig/ProblemType.tsx +165 -0
- package/components/problemconfig/index.tsx +91 -0
- package/components/problemconfig/reducer/config.ts +173 -0
- package/components/problemconfig/reducer/index.ts +11 -0
- package/components/problemconfig/reducer/testdata.ts +16 -0
- package/components/problemconfig/tree/AddTestcase.tsx +137 -0
- package/components/problemconfig/tree/SelectionManager.tsx +140 -0
- package/components/problemconfig/tree/SubtaskSettings.tsx +180 -0
- package/components/problemconfig/tree/Testcase.tsx +98 -0
- package/components/profile/backgrounds/1.jpg +0 -0
- package/components/profile/backgrounds/10.jpg +0 -0
- package/components/profile/backgrounds/11.jpg +0 -0
- package/components/profile/backgrounds/12.jpg +0 -0
- package/components/profile/backgrounds/13.jpg +0 -0
- package/components/profile/backgrounds/14.jpg +0 -0
- package/components/profile/backgrounds/15.jpg +0 -0
- package/components/profile/backgrounds/16.jpg +0 -0
- package/components/profile/backgrounds/17.jpg +0 -0
- package/components/profile/backgrounds/18.jpg +0 -0
- package/components/profile/backgrounds/19.jpg +0 -0
- package/components/profile/backgrounds/2.jpg +0 -0
- package/components/profile/backgrounds/20.jpg +0 -0
- package/components/profile/backgrounds/21.jpg +0 -0
- package/components/profile/backgrounds/3.jpg +0 -0
- package/components/profile/backgrounds/4.jpg +0 -0
- package/components/profile/backgrounds/5.jpg +0 -0
- package/components/profile/backgrounds/6.jpg +0 -0
- package/components/profile/backgrounds/7.jpg +0 -0
- package/components/profile/backgrounds/8.jpg +0 -0
- package/components/profile/backgrounds/9.jpg +0 -0
- package/components/profile/backgrounds/gen_thumbnails.sh +7 -0
- package/components/profile/backgrounds/thumbnail/1.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/10.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/11.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/12.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/13.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/14.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/15.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/16.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/17.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/18.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/19.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/2.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/20.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/21.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/3.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/4.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/5.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/6.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/7.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/8.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/9.jpg +0 -0
- package/components/profile/profile.page.styl +23 -0
- package/components/react/DomComponent.tsx +14 -0
- package/components/react/IconComponent.tsx +20 -0
- package/components/record/record.page.styl +26 -0
- package/components/rotator/index.js +75 -0
- package/components/rotator/rotator.page.styl +20 -0
- package/components/scratchpad/DataInput.page.styl +17 -0
- package/components/scratchpad/DataInputComponent.jsx +45 -0
- package/components/scratchpad/Editor.page.styl +13 -0
- package/components/scratchpad/Panel.page.styl +18 -0
- package/components/scratchpad/PanelButton.page.styl +15 -0
- package/components/scratchpad/PanelButtonComponent.jsx +19 -0
- package/components/scratchpad/PanelComponent.jsx +25 -0
- package/components/scratchpad/ScratchpadEditorContainer.tsx +137 -0
- package/components/scratchpad/ScratchpadPretestContainer.jsx +57 -0
- package/components/scratchpad/ScratchpadRecordsContainer.jsx +45 -0
- package/components/scratchpad/ScratchpadRecordsRowContainer.jsx +83 -0
- package/components/scratchpad/ScratchpadSettings.tsx +48 -0
- package/components/scratchpad/ScratchpadToolbarContainer.jsx +190 -0
- package/components/scratchpad/Tab.page.styl +24 -0
- package/components/scratchpad/Toolbar.page.styl +53 -0
- package/components/scratchpad/ToolbarComponent.jsx +85 -0
- package/components/scratchpad/index.tsx +132 -0
- package/components/scratchpad/reducers/editor.ts +24 -0
- package/components/scratchpad/reducers/index.ts +17 -0
- package/components/scratchpad/reducers/pretest.ts +34 -0
- package/components/scratchpad/reducers/records.ts +40 -0
- package/components/scratchpad/reducers/state.ts +10 -0
- package/components/scratchpad/reducers/ui.ts +152 -0
- package/components/scratchpad/scratchpad.page.styl +55 -0
- package/components/scratchpad/var.inc.styl +2 -0
- package/components/selectUser.tsx +16 -0
- package/components/signin/signInDialog.page.js +84 -0
- package/components/signin/signin_dialog.page.styl +57 -0
- package/components/smoothscroll/smoothscroll.page.js +44 -0
- package/components/socket/index.ts +68 -0
- package/components/star/star.page.styl +20 -0
- package/components/star/star.page.ts +58 -0
- package/components/sticky/sticky.page.js +66 -0
- package/components/tab/Tab.js +168 -0
- package/components/tab/tab.page.js +9 -0
- package/components/tab/tab.page.styl +105 -0
- package/components/tab/var.inc.styl +3 -0
- package/components/table/StyledTable.js +51 -0
- package/components/table/styledTable.page.js +8 -0
- package/components/table/table.page.styl +73 -0
- package/components/time/time.page.js +47 -0
- package/components/tooltip/Tooltip.js +49 -0
- package/components/tooltip/tooltip.page.js +29 -0
- package/components/tooltip/tooltip.page.styl +69 -0
- package/components/training/training.page.styl +25 -0
- package/components/upload.tsx +103 -0
- package/components/vote/vote.page.js +43 -0
- package/components/zipDownloader/index.ts +157 -0
- package/constant/domain.js +21 -0
- package/constant/message.js +5 -0
- package/constant/record.js +52 -0
- package/context.ts +11 -0
- package/entry.js +72 -0
- package/hydro.ts +112 -0
- package/index.ts +226 -0
- package/lazyload.ts +69 -0
- package/locales/en.yaml +71 -0
- package/locales/ko.yaml +823 -0
- package/locales/zh.yaml +1137 -0
- package/locales/zh_TW.yaml +1133 -0
- package/misc/Page.ts +49 -0
- package/misc/PageLoader.js +31 -0
- package/misc/float.styl +14 -0
- package/misc/grid.styl +1048 -0
- package/misc/immersive-background.jpg +0 -0
- package/misc/immersive-background@2x.jpg +0 -0
- package/misc/immersive.styl +23 -0
- package/misc/nothing.styl +13 -0
- package/misc/puzzled_twd2.svg +1 -0
- package/misc/section.styl +105 -0
- package/misc/slideout.styl +46 -0
- package/misc/structure.styl +158 -0
- package/misc/textalign.styl +11 -0
- package/misc/typography.styl +485 -0
- package/package.json +148 -0
- package/polyfill.ts +90 -0
- package/postcss.config.js +15 -0
- package/sentry.ts +26 -0
- package/service-worker.ts +265 -0
- package/setting.yaml +98 -0
- package/templates/about.html +14 -0
- package/templates/bsod.html +35 -0
- package/templates/components/comments_discussion.html +165 -0
- package/templates/components/comments_solution.html +171 -0
- package/templates/components/contest.html +12 -0
- package/templates/components/form.html +214 -0
- package/templates/components/home.html +20 -0
- package/templates/components/homework.html +8 -0
- package/templates/components/md_hint.html +39 -0
- package/templates/components/noscript_note.html +15 -0
- package/templates/components/nothing.html +6 -0
- package/templates/components/paginator.html +25 -0
- package/templates/components/problem.html +33 -0
- package/templates/components/record.html +21 -0
- package/templates/components/sidemenu.html +11 -0
- package/templates/components/user.html +49 -0
- package/templates/contest_balloon.html +48 -0
- package/templates/contest_clarification.html +103 -0
- package/templates/contest_detail.html +56 -0
- package/templates/contest_edit.html +259 -0
- package/templates/contest_main.html +146 -0
- package/templates/contest_manage.html +80 -0
- package/templates/contest_print.html +27 -0
- package/templates/contest_problemlist.html +231 -0
- package/templates/contest_scoreboard.html +46 -0
- package/templates/contest_scoreboard_download_html.html +71 -0
- package/templates/contest_user.html +47 -0
- package/templates/discussion_create.html +28 -0
- package/templates/discussion_detail.html +149 -0
- package/templates/discussion_edit.html +30 -0
- package/templates/discussion_main_or_node.html +47 -0
- package/templates/domain_base.html +26 -0
- package/templates/domain_create.html +55 -0
- package/templates/domain_dashboard.html +45 -0
- package/templates/domain_edit.html +6 -0
- package/templates/domain_group.html +51 -0
- package/templates/domain_join.html +47 -0
- package/templates/domain_join_applications.html +67 -0
- package/templates/domain_permission.html +66 -0
- package/templates/domain_role.html +71 -0
- package/templates/domain_user.html +86 -0
- package/templates/domain_user_raw.html +5 -0
- package/templates/error.html +25 -0
- package/templates/home_domain.html +64 -0
- package/templates/home_files.html +16 -0
- package/templates/home_messages.html +9 -0
- package/templates/home_security.html +224 -0
- package/templates/home_settings.html +21 -0
- package/templates/homework_detail.html +82 -0
- package/templates/homework_edit.html +138 -0
- package/templates/homework_files.html +24 -0
- package/templates/homework_main.html +76 -0
- package/templates/layout/basic.html +27 -0
- package/templates/layout/home_base.html +13 -0
- package/templates/layout/html5.html +74 -0
- package/templates/layout/immersive.html +22 -0
- package/templates/layout/mail.html +31 -0
- package/templates/layout/simple.html +4 -0
- package/templates/layout/wiki_base.html +16 -0
- package/templates/main.html +22 -0
- package/templates/manage_base.html +24 -0
- package/templates/manage_config.html +6 -0
- package/templates/manage_dashboard.html +27 -0
- package/templates/manage_script.html +56 -0
- package/templates/manage_setting.html +6 -0
- package/templates/manage_user_import.html +23 -0
- package/templates/manage_user_priv.html +76 -0
- package/templates/partials/category.html +19 -0
- package/templates/partials/contest.html +3 -0
- package/templates/partials/contest_balloon.html +37 -0
- package/templates/partials/contest_sidebar.html +150 -0
- package/templates/partials/contest_sidebar_management.html +56 -0
- package/templates/partials/contest_user.html +19 -0
- package/templates/partials/discussion_edit_form.html +45 -0
- package/templates/partials/discussion_list.html +50 -0
- package/templates/partials/discussion_nodes_widget.html +17 -0
- package/templates/partials/files.html +49 -0
- package/templates/partials/footer.html +108 -0
- package/templates/partials/hamburger.html +7 -0
- package/templates/partials/header_mobile.html +12 -0
- package/templates/partials/homepage/bulletin.html +7 -0
- package/templates/partials/homepage/contest.html +48 -0
- package/templates/partials/homepage/discussion.html +13 -0
- package/templates/partials/homepage/discussion_nodes.html +4 -0
- package/templates/partials/homepage/error.html +5 -0
- package/templates/partials/homepage/hitokoto.html +6 -0
- package/templates/partials/homepage/homework.html +45 -0
- package/templates/partials/homepage/problem_search.html +13 -0
- package/templates/partials/homepage/ranking.html +39 -0
- package/templates/partials/homepage/recent_problems.html +17 -0
- package/templates/partials/homepage/starred_problems.html +15 -0
- package/templates/partials/homepage/suggestion.html +34 -0
- package/templates/partials/homepage/training.html +50 -0
- package/templates/partials/homework.html +3 -0
- package/templates/partials/homework_default_penalty_rules.yaml +6 -0
- package/templates/partials/homework_sidebar.html +93 -0
- package/templates/partials/login_dialog.html +56 -0
- package/templates/partials/manage_user_priv.html +78 -0
- package/templates/partials/nav.html +138 -0
- package/templates/partials/problem-sidebar-information.html +25 -0
- package/templates/partials/problem.html +2 -0
- package/templates/partials/problem_category_dialog.html +43 -0
- package/templates/partials/problem_default.md +26 -0
- package/templates/partials/problem_description.html +33 -0
- package/templates/partials/problem_files.html +63 -0
- package/templates/partials/problem_list.html +68 -0
- package/templates/partials/problem_lucky.html +10 -0
- package/templates/partials/problem_sidebar.html +14 -0
- package/templates/partials/problem_sidebar_contest.html +43 -0
- package/templates/partials/problem_sidebar_homework.html +42 -0
- package/templates/partials/problem_sidebar_normal.html +152 -0
- package/templates/partials/problem_stat.html +3 -0
- package/templates/partials/scoreboard.html +79 -0
- package/templates/partials/setting.html +92 -0
- package/templates/partials/training_default.json +14 -0
- package/templates/partials/training_detail.html +153 -0
- package/templates/partials/user.html +2 -0
- package/templates/partials/user_detail/activity.html +18 -0
- package/templates/partials/user_detail/solution.html +29 -0
- package/templates/problem_config.html +39 -0
- package/templates/problem_detail.html +150 -0
- package/templates/problem_edit.html +111 -0
- package/templates/problem_files.html +91 -0
- package/templates/problem_hack.html +41 -0
- package/templates/problem_import.html +58 -0
- package/templates/problem_main.html +100 -0
- package/templates/problem_solution.html +55 -0
- package/templates/problem_statistics.html +96 -0
- package/templates/problem_submit.html +40 -0
- package/templates/ranking.html +81 -0
- package/templates/record_detail.html +134 -0
- package/templates/record_detail_status.html +93 -0
- package/templates/record_detail_summary.html +19 -0
- package/templates/record_main.html +142 -0
- package/templates/record_main_tr.html +35 -0
- package/templates/status.html +75 -0
- package/templates/training_detail.html +120 -0
- package/templates/training_edit.html +68 -0
- package/templates/training_files.html +64 -0
- package/templates/training_main.html +107 -0
- package/templates/user_changemail_mail.html +6 -0
- package/templates/user_changemail_mail_sent.html +9 -0
- package/templates/user_delete_pending.html +10 -0
- package/templates/user_detail.html +181 -0
- package/templates/user_login.html +46 -0
- package/templates/user_logout.html +13 -0
- package/templates/user_lostpass.html +27 -0
- package/templates/user_lostpass_mail.html +6 -0
- package/templates/user_lostpass_mail_sent.html +9 -0
- package/templates/user_lostpass_with_code.html +29 -0
- package/templates/user_register.html +22 -0
- package/templates/user_register_mail.html +6 -0
- package/templates/user_register_mail_sent.html +9 -0
- package/templates/user_register_with_code.html +35 -0
- package/templates/user_sudo.html +54 -0
- package/templates/user_sudo_redirect.html +18 -0
- package/templates/wiki_help.html +189 -0
- package/theme/bp6-compat.css +48 -0
- package/theme/dark.styl +397 -0
- package/theme/default.js +33 -0
- package/typed.d.ts +20 -0
- package/utils/base.ts +209 -0
- package/utils/base64.js +104 -0
- package/utils/db.ts +32 -0
- package/utils/index.ts +73 -0
- package/utils/loadReactRedux.ts +32 -0
- package/utils/mediaQuery.ts +13 -0
- package/utils/pjax.js +148 -0
- package/utils/slide.ts +57 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{% extends "layout/basic.html" %}
|
|
2
|
+
{% import "components/contest.html" as contest with context %}
|
|
3
|
+
{% import "components/problem.html" as problem with context %}
|
|
4
|
+
{% block content %}
|
|
5
|
+
{{ set(UiContext, 'tdoc', tdoc) }}
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="medium-9 columns">
|
|
8
|
+
<div class="section">
|
|
9
|
+
<div class="section__body no-padding">
|
|
10
|
+
<table class="data-table">
|
|
11
|
+
<colgroup>
|
|
12
|
+
<col class="col--id">
|
|
13
|
+
<col class="col--problem">
|
|
14
|
+
<col class="col--score">
|
|
15
|
+
</colgroup>
|
|
16
|
+
<thead>
|
|
17
|
+
<tr>
|
|
18
|
+
<th class="col--id">{{ _('ID') }}</th>
|
|
19
|
+
<th class="col--problem">{{ _('Problem') }}</th>
|
|
20
|
+
<th class="col--score">{{ _('Score') }}</th>
|
|
21
|
+
</tr>
|
|
22
|
+
</thead>
|
|
23
|
+
<tbody>
|
|
24
|
+
{%- for pid in tdoc.pids -%}
|
|
25
|
+
<tr>
|
|
26
|
+
<td class="col--id">{{ pdict[pid].docId }}</td>
|
|
27
|
+
<td class="col--problem col--problem-name">
|
|
28
|
+
<a href="{{ url('problem_detail', pid=pid) }}">
|
|
29
|
+
{{ problem.render_problem_title(pdict[pid], tdoc=tdoc, invalid=true, alphabetic=true) }}
|
|
30
|
+
</a>
|
|
31
|
+
</td>
|
|
32
|
+
<td class="col--score">
|
|
33
|
+
<a class="typo-a" data-tooltip="{{ _('Set Score for Contest') }}" name="set_score" data-pid="{{ pid }}" data-score="{{ tdoc.score[pid]|default(100) }}">{{ tdoc.score[pid]|default(100) }}</a>
|
|
34
|
+
</td>
|
|
35
|
+
</tr>
|
|
36
|
+
{%- endfor -%}
|
|
37
|
+
</tbody>
|
|
38
|
+
</table>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="row">
|
|
42
|
+
<div class="medium-6 columns">
|
|
43
|
+
<div class="section" data-type="public">
|
|
44
|
+
<div class="section__header">
|
|
45
|
+
<h1 class="section__title">{{ _('Files') }}({{ _('Public') }})</h1>
|
|
46
|
+
<div class="section__tools">
|
|
47
|
+
<button class="primary rounded button" name="upload_file">{{ _('Upload File') }}</button>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
{{ noscript_note.render() }}
|
|
51
|
+
{% set filetype = "public" %}
|
|
52
|
+
{% include "partials/files.html" %}
|
|
53
|
+
<div class="section__body">
|
|
54
|
+
<button class="rounded button" name="remove_selected">{{ _('Remove Selected') }}</button>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="medium-6 columns">
|
|
59
|
+
<div class="section" data-type="private">
|
|
60
|
+
<div class="section__header">
|
|
61
|
+
<h1 class="section__title">{{ _('Materials') }}({{ _('Only Partic.') }})</h1>
|
|
62
|
+
<div class="section__tools">
|
|
63
|
+
<button class="primary rounded button" name="upload_file">{{ _('Upload File') }}</button>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
{% set files = privateFiles %}
|
|
67
|
+
{% set filetype = "private" %}
|
|
68
|
+
{% include "partials/files.html" %}
|
|
69
|
+
<div class="section__body">
|
|
70
|
+
<button class="rounded button" name="remove_selected">{{ _('Remove Selected') }}</button>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="medium-3 columns">
|
|
77
|
+
{% include 'partials/contest_sidebar_management.html' %}
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
{% endblock %}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{% extends "layout/basic.html" %}
|
|
2
|
+
{% import "components/contest.html" as contest with context %}
|
|
3
|
+
{% import "components/form.html" as form with context %}
|
|
4
|
+
{% block content %}
|
|
5
|
+
{{ set(UiContext, 'tdoc', tdoc) }}
|
|
6
|
+
{{ set(UiContext, 'tsdoc', tsdoc) }}
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div class="medium-9 columns">
|
|
9
|
+
<div class="section">
|
|
10
|
+
<div class="section__header">
|
|
11
|
+
<h1 class="section__title">{{ _('Print Request') }} - {{ tdoc.title }}</h1>
|
|
12
|
+
<div class="section__tools">
|
|
13
|
+
{% if handler.user.own(tdoc) or handler.user.hasPerm(perm.PERM_EDIT_CONTEST) %}
|
|
14
|
+
<button class="primary rounded button" name="enable_print_kiosk">{{ _('Enable Print Kiosk') }}</button>
|
|
15
|
+
{% endif %}
|
|
16
|
+
<button class="primary rounded button" name="add_print_task">{{ _('Print New File') }}</button>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="section__body no-padding" id="printKioskContainer" {% if handler.user.own(tdoc) or handler.user.hasPerm(perm.PERM_EDIT_CONTEST) %}data-is-admin="true" {% endif %}></div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="medium-3 columns">
|
|
23
|
+
{% set owner_udoc = udict[tdoc.owner] %}
|
|
24
|
+
{% include "partials/contest_sidebar.html" %}
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
{% endblock %}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
{% extends "layout/basic.html" %}
|
|
2
|
+
{% import "components/contest.html" as contest with context %}
|
|
3
|
+
{% import "components/record.html" as record with context %}
|
|
4
|
+
{% import "components/problem.html" as problem with context %}
|
|
5
|
+
{% block content %}
|
|
6
|
+
{{ set(UiContext, 'tdoc', tdoc) }}
|
|
7
|
+
{{ set(UiContext, 'tsdoc', tsdoc) }}
|
|
8
|
+
{% set hasCorrection = correction and Object.keys(correction).length %}
|
|
9
|
+
<div class="row" data-sticky-parent>
|
|
10
|
+
<div class="medium-9 columns">
|
|
11
|
+
<div class="section">
|
|
12
|
+
<div class="section__header">
|
|
13
|
+
<h1 class="section__title">{{ _('Problems') }}</h1>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="section__body no-padding">
|
|
16
|
+
<table class="data-table">
|
|
17
|
+
<colgroup>
|
|
18
|
+
{% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %}
|
|
19
|
+
<col class="col--status">
|
|
20
|
+
<col class="col--submit-at">
|
|
21
|
+
{% endif %}
|
|
22
|
+
{% if showScore %}
|
|
23
|
+
<col class="col--score">
|
|
24
|
+
{% endif %}
|
|
25
|
+
<col class="col--problem">
|
|
26
|
+
</colgroup>
|
|
27
|
+
<thead>
|
|
28
|
+
<tr>
|
|
29
|
+
{% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %}
|
|
30
|
+
<th class="col--status record-status--border">{{ _('Status') }}</th>
|
|
31
|
+
{% if hasCorrection %}
|
|
32
|
+
<th class="col--correction">{{ _('Correction') }}</th>
|
|
33
|
+
{% else %}
|
|
34
|
+
<th class="col--submit-at">{{ _('Last Submit At') }}</th>
|
|
35
|
+
{% endif %}
|
|
36
|
+
{% endif %}
|
|
37
|
+
{% if showScore %}
|
|
38
|
+
<th class="col--score">{{ _('Score') }}</th>
|
|
39
|
+
{% endif %}
|
|
40
|
+
<th class="col--problem">{{ _('Problem') }}</th>
|
|
41
|
+
</tr>
|
|
42
|
+
</thead>
|
|
43
|
+
<tbody>
|
|
44
|
+
{%- for pid in tdoc.pids -%}
|
|
45
|
+
<tr>
|
|
46
|
+
{% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %}
|
|
47
|
+
{% if psdict[pid] and psdict[pid].rid %}
|
|
48
|
+
{% set rdoc = rdict[psdict[pid].rid] %}
|
|
49
|
+
{% if model.contest.canShowSelfRecord.call(handler, tdoc) %}
|
|
50
|
+
{% set displayScore = ((tdoc.score[pid]|default(100)) * (psdict[pid].score|default(0)) / 100) if showScore else (psdict[pid].penaltyScore|default(psdict[pid].score)) %}
|
|
51
|
+
{{ record.render_status_td(rdoc, displayScore=displayScore) }}
|
|
52
|
+
{% else %}
|
|
53
|
+
<td class="col--status record-status--border"><a href="{{ url('record_detail', rid=rdoc._id) }}">{{ _('Submitted') }}</a></td>
|
|
54
|
+
{% endif %}
|
|
55
|
+
{% if not hasCorrection %}
|
|
56
|
+
<td class="col--submit-at">{{ datetimeSpan(rdoc._id)|safe }}</td>
|
|
57
|
+
{% endif %}
|
|
58
|
+
{% else %}
|
|
59
|
+
<td class="col--status record-status--border">{{ _('No Submissions') }}</td>
|
|
60
|
+
{% if not hasCorrection %}
|
|
61
|
+
<td class="col--submit-at">-</td>
|
|
62
|
+
{% endif %}
|
|
63
|
+
{% endif %}
|
|
64
|
+
{% if hasCorrection %}
|
|
65
|
+
{% if correction[pid] %}
|
|
66
|
+
{{ record.render_status_td(rdict[correction[pid].rid], class="col--correction") }}
|
|
67
|
+
{% else %}
|
|
68
|
+
<td class="col--correction">-</td>
|
|
69
|
+
{% endif %}
|
|
70
|
+
{% endif %}
|
|
71
|
+
{% endif %}
|
|
72
|
+
{% if showScore %}
|
|
73
|
+
<td class="col--score">{{ tdoc.score[pid]|default(100) }}</td>
|
|
74
|
+
{% endif %}
|
|
75
|
+
<td class="col--problem col--problem-name">
|
|
76
|
+
{{ problem.render_problem_title(pdict[pid], tdoc, alphabetic=true) }}
|
|
77
|
+
{% if pdict[pid].config.type != 'objective' and pdict[pid].config.type != 'submit_answer' %}
|
|
78
|
+
<span class="problem__tag-item icon icon-stopwatch" style="font-size: .75rem;margin: 0;padding: 0 5px!important;">{{ pdict[pid].config.timeMax if pdict[pid].config.timeMax == pdict[pid].config.timeMin else pdict[pid].config.timeMin+'~'+pdict[pid].config.timeMax }}ms</span>
|
|
79
|
+
<span class="problem__tag-item icon icon-comparison" style="font-size: .75rem;margin: 0;padding: 0 5px!important;">{{ pdict[pid].config.memoryMax if pdict[pid].config.memoryMax == pdict[pid].config.memoryMin else pdict[pid].config.memoryMin+'~'+pdict[pid].config.memoryMax }}MiB</span>
|
|
80
|
+
{% endif %}
|
|
81
|
+
{% if pdict[pid].config.type != 'objective' %}
|
|
82
|
+
<a href="{{ url('problem_submit', pid=pid, query={tid:tdoc.docId}) }}" target="_blank" class="typo-a" style="float: right;"><span class="icon icon-send">{{ _('Submit') }}</span></a>
|
|
83
|
+
{% endif %}
|
|
84
|
+
</td>
|
|
85
|
+
</tr>
|
|
86
|
+
{%- endfor -%}
|
|
87
|
+
</tbody>
|
|
88
|
+
</table>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
<div class="section">
|
|
92
|
+
<div class="section__header">
|
|
93
|
+
<h1 class="section__title">{{ _('Submissions') }}</h1>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="section__body no-padding">
|
|
96
|
+
{% if not canViewRecord %}
|
|
97
|
+
{{ nothing.render('According to the contest rules, you cannot view your submission details at current.', compact=true) }}
|
|
98
|
+
{% elif not rdocs.length %}
|
|
99
|
+
{{ nothing.render('Oh, there is no submission!', compact=true) }}
|
|
100
|
+
{% else %}
|
|
101
|
+
<table class="data-table record_main__table">
|
|
102
|
+
<colgroup>
|
|
103
|
+
<col class="col--status">
|
|
104
|
+
<col class="col--problem">
|
|
105
|
+
<col class="col--submit-by">
|
|
106
|
+
<col class="col--time">
|
|
107
|
+
<col class="col--memory">
|
|
108
|
+
<col class="col--lang">
|
|
109
|
+
<col class="col--submit-at">
|
|
110
|
+
</colgroup>
|
|
111
|
+
<thead>
|
|
112
|
+
<tr>
|
|
113
|
+
<th class="col--status record-status--border">{{ _('Status') }}</th>
|
|
114
|
+
<th class="col--problem">{{ _('Problem') }}</th>
|
|
115
|
+
<th class="col--submit-by">{{ _('Submit By') }}</th>
|
|
116
|
+
<th class="col--time">{{ _('Time') }}</th>
|
|
117
|
+
<th class="col--memory">{{ _('Memory') }}</th>
|
|
118
|
+
<th class="col--lang">{{ _('Language') }}</th>
|
|
119
|
+
<th class="col--submit-at">{{ _('Submit At') }}</th>
|
|
120
|
+
</tr>
|
|
121
|
+
</thead>
|
|
122
|
+
<tbody>
|
|
123
|
+
{%- for rdoc in rdocs -%}
|
|
124
|
+
{% set udoc = udict[rdoc['uid']] %}
|
|
125
|
+
{% set pdoc = pdict[rdoc['pid']] %}
|
|
126
|
+
{% include 'record_main_tr.html' %}
|
|
127
|
+
{%- endfor -%}
|
|
128
|
+
</tbody>
|
|
129
|
+
</table>
|
|
130
|
+
{% endif %}
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="section section--clarifications">
|
|
134
|
+
<div class="section__header">
|
|
135
|
+
<h1 class="section__title">{{ _('Contest Clarifications') }}</h1>
|
|
136
|
+
</div>
|
|
137
|
+
<div class="section__body">
|
|
138
|
+
{% if not tcdocs.length %}
|
|
139
|
+
{{ nothing.render('Oh, there is no clarification!', compact=true) }}
|
|
140
|
+
{% else %}
|
|
141
|
+
<ul class="dczcomments__list">
|
|
142
|
+
{% for doc in tcdocs %}
|
|
143
|
+
<li class="dczcomments__item">
|
|
144
|
+
<div class="media">
|
|
145
|
+
<div class="media__body top">
|
|
146
|
+
<div class="clearfix">
|
|
147
|
+
<div class="supplementary dczcomments__supplementary">
|
|
148
|
+
{{_('Subject') }}: {{ contest.render_clarification_subject(tdoc,pdict,doc.subject) }} | {% if doc.owner == 0 %}<b>{{ _('Jury') }}</b>{% else %}{{ user.render_inline(udict[doc.owner], badge=false) }}{% endif %} @ {{ datetimeSpan(doc._id)|safe }}
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
<div class="typo richmedia" data-emoji-enabled>
|
|
152
|
+
{{ doc['content']|markdown|safe }}
|
|
153
|
+
</div>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
<ul class="dczcomments__replies">
|
|
157
|
+
{%- for rdoc in doc['reply'] -%}
|
|
158
|
+
<li class="dczcomments__reply">
|
|
159
|
+
<div class="media">
|
|
160
|
+
<div class="media__left top"> </div>
|
|
161
|
+
<div class="media__body top">
|
|
162
|
+
<div class="clearfix">
|
|
163
|
+
<div class="supplementary dczcomments__supplementary">
|
|
164
|
+
<b>{{ _('Jury') }}</b> @ {{ datetimeSpan(rdoc['_id'])|safe }}
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
<div class="typo richmedia" data-emoji-enabled>
|
|
168
|
+
{{ rdoc['content']|markdown|safe }}
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
</li>
|
|
173
|
+
{%- endfor -%}
|
|
174
|
+
</ul>
|
|
175
|
+
</li>
|
|
176
|
+
{% endfor %}
|
|
177
|
+
</ul>
|
|
178
|
+
{% endif %}
|
|
179
|
+
</div>
|
|
180
|
+
{% if tsdoc.attend %}
|
|
181
|
+
<div class="section__header">
|
|
182
|
+
<h1 class="section__title">{{ _('Send Clarification Request') }}</h1>
|
|
183
|
+
</div>
|
|
184
|
+
<div class="section__body typo">
|
|
185
|
+
<form method="post">
|
|
186
|
+
<input type="hidden" name="operation" value="clarification">
|
|
187
|
+
<div class="row">
|
|
188
|
+
<div class="medium-12 columns form__item">
|
|
189
|
+
<label>
|
|
190
|
+
{{ _('Subject') }}
|
|
191
|
+
<select name="subject" class="select">
|
|
192
|
+
<option value="0">{{ _('General Issue') }}</option>
|
|
193
|
+
<option value="-1">{{ _('Technical Issue') }}</option>
|
|
194
|
+
{% for pid in tdoc.pids %}
|
|
195
|
+
<option value="{{ pid }}">{{ utils.getAlphabeticId(loop.index0) }}. {{ pdict[pid].title }}</option>
|
|
196
|
+
{% endfor %}
|
|
197
|
+
</select>
|
|
198
|
+
</label>
|
|
199
|
+
</div>
|
|
200
|
+
<div class="medium-12 columns form__item">
|
|
201
|
+
<label>
|
|
202
|
+
{{ _('Content') }}
|
|
203
|
+
<textarea name="content" class="textbox" data-markdown required></textarea>
|
|
204
|
+
</label>
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
<button type="submit" class="rounded primary button">{{ _('Submit') }}</button>
|
|
208
|
+
</div>
|
|
209
|
+
{% endif %}
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
212
|
+
<div class="medium-3 columns" data-sticky="large">
|
|
213
|
+
{% if tdoc.privateFiles.length %}
|
|
214
|
+
<div class="section side">
|
|
215
|
+
<div class="section__header">
|
|
216
|
+
<h1 class="section__title">{{_('Materials')}}</h1>
|
|
217
|
+
</div>
|
|
218
|
+
<ol>
|
|
219
|
+
{% for file in tdoc.privateFiles %}
|
|
220
|
+
<li class="menu__item">
|
|
221
|
+
<a class="menu__link" href="{{ url('contest_file_download', { tid: tdoc.docId, filename: file.name, type: 'private' }) }}">{{ file.name }}</a>
|
|
222
|
+
</li>
|
|
223
|
+
{% endfor %}
|
|
224
|
+
</ol>
|
|
225
|
+
</div>
|
|
226
|
+
{% endif %}
|
|
227
|
+
{% set owner_udoc = udict[tdoc.owner] %}
|
|
228
|
+
{% include "partials/contest_sidebar.html" %}
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
{% endblock %}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{% import "components/paginator.html" as paginator with context %}
|
|
2
|
+
{% extends "layout/basic.html" %}
|
|
3
|
+
{{ set(UiContext, 'tdoc', tdoc) }}
|
|
4
|
+
{{ set(UiContext, 'tsdoc', tsdoc) }}
|
|
5
|
+
{% set type = 'homework' if tdoc.rule == 'homework' else 'contest' %}
|
|
6
|
+
|
|
7
|
+
{% block content %}
|
|
8
|
+
<div class="row"><div class="medium-12 columns scoreboard--{{ tdoc.rule }}">
|
|
9
|
+
<div class="section visible">
|
|
10
|
+
<div class="section__header">
|
|
11
|
+
<h1 class="section__title">
|
|
12
|
+
{{ tdoc.title }}
|
|
13
|
+
{%- for ext in ['HTML', 'CSV', 'Ghost'] -%}
|
|
14
|
+
<a class="button" target="_blank" href="{{ url(type + '_scoreboard_view', tid=tdoc.docId, view=ext.toLowerCase()) }}">
|
|
15
|
+
<span class="icon icon-download"></span> {{ _('Export as {0}').format(ext) }}
|
|
16
|
+
</a>
|
|
17
|
+
{%- endfor -%}
|
|
18
|
+
{% for id, name in availableViews %}{% if not ['html', 'csv', 'default', 'ghost'].includes(id) %}
|
|
19
|
+
<a class="button" target="_blank" href="{{ url(type + '_scoreboard_view', tid=tdoc.docId, view=id) }}">
|
|
20
|
+
<span class="icon icon-copy"></span> {{ _(name) }}
|
|
21
|
+
</a>
|
|
22
|
+
{% endif %}{% endfor %}
|
|
23
|
+
{% if model.contest.isDone(tdoc) and tdoc.lockAt and handler.user.own(tdoc) and not tdoc.unlocked %}
|
|
24
|
+
<form method="POST">
|
|
25
|
+
<input type="hidden" name="operation" value="unlock">
|
|
26
|
+
<button type="submit" class="button">
|
|
27
|
+
<span class="icon icon-feeling-lucky"></span> {{ _('Unlock scoreboard') }}
|
|
28
|
+
</button>
|
|
29
|
+
</form>
|
|
30
|
+
{% endif %}
|
|
31
|
+
</h1>
|
|
32
|
+
<div class="section__tools">
|
|
33
|
+
<select class="select filter" name="list">
|
|
34
|
+
<option value="all">{{ _('All Users') }}</option>
|
|
35
|
+
<option value="star">{{ _('Starred Users') }}</option>
|
|
36
|
+
<option value="rank">{{ _('Ranked Users') }}</option>
|
|
37
|
+
{% for group in groups %}
|
|
38
|
+
<option value="{{ group.uids.join(',') }}">{{ group.name }}</option>
|
|
39
|
+
{% endfor %}
|
|
40
|
+
</select>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
{% include "partials/scoreboard.html" %}
|
|
44
|
+
</div>
|
|
45
|
+
</div></div>
|
|
46
|
+
{% endblock %}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<meta charset="UTF-8">
|
|
2
|
+
<style>
|
|
3
|
+
body {
|
|
4
|
+
font-family: "Open Sans", "Seravek", "Segoe UI", "Verdana", "PingFang SC", "Hiragino Sans GB", "Lantinghei SC", "Microsoft Yahei", "WenQuanYi Micro Hei", "sans";
|
|
5
|
+
font-size: 14px;
|
|
6
|
+
}
|
|
7
|
+
table {
|
|
8
|
+
table-layout: fixed;
|
|
9
|
+
width: 100%;
|
|
10
|
+
border-collapse: collapse;
|
|
11
|
+
border-spacing: 0;
|
|
12
|
+
font-size: inherit;
|
|
13
|
+
}
|
|
14
|
+
th, td {
|
|
15
|
+
text-align: left;
|
|
16
|
+
border: 1px solid #CCC;
|
|
17
|
+
padding: 5px;
|
|
18
|
+
}
|
|
19
|
+
thead tr {
|
|
20
|
+
background: #5f9fd6;
|
|
21
|
+
color: #FFF;
|
|
22
|
+
}
|
|
23
|
+
tbody tr:nth-child(even) {
|
|
24
|
+
background: #F0F0F0;
|
|
25
|
+
}
|
|
26
|
+
</style>
|
|
27
|
+
<h2>{{ tdoc.title }}</h2>
|
|
28
|
+
Exported from <a href="{{ model.system.get('server.url') }}">{{ model.system.get('server.url') }}</a>
|
|
29
|
+
<table>
|
|
30
|
+
<thead>
|
|
31
|
+
<tr>
|
|
32
|
+
{%- for column in rows[0] -%}
|
|
33
|
+
<th class="col--{{ column['type'] }}">
|
|
34
|
+
{% if column.type == 'problem_detail' %}
|
|
35
|
+
<a href="{{ model.system.get('server.url') }}{{ url(type + '_detail_problem', tid=tdoc.docId, pid=column.raw).substr(1,9999) }}">{{ column.value }}</a>
|
|
36
|
+
{% else %}
|
|
37
|
+
{{ column.value }}
|
|
38
|
+
{% endif %}
|
|
39
|
+
</th>
|
|
40
|
+
{%- endfor -%}
|
|
41
|
+
</tr>
|
|
42
|
+
</thead>
|
|
43
|
+
<tbody>
|
|
44
|
+
{%- for row in rows -%}{% if loop.index0 %}
|
|
45
|
+
<tr>
|
|
46
|
+
{%- for column in row -%}
|
|
47
|
+
<td>
|
|
48
|
+
{% if column.type == 'record' and column.raw %}
|
|
49
|
+
<a href="{{ model.system.get('server.url') }}{{ url('record_detail', rid=column.raw).substr(1,9999) }}">
|
|
50
|
+
<span style="font-weight:bold;color:{{ utils.status.getScoreColor(column.score|default(column.value)) }}">{{ column.value|string|nl2br|safe }}</span>
|
|
51
|
+
</a>
|
|
52
|
+
{% elif column.type == 'records' %}
|
|
53
|
+
{%- for record in column.raw -%}
|
|
54
|
+
{% if loop.index0 %}/{% endif %}
|
|
55
|
+
{% if record.raw %}
|
|
56
|
+
<a href="{{ model.system.get('server.url') }}{{ url('record_detail', rid=record.raw).substr(1,9999) }}">
|
|
57
|
+
<span style="font-weight:bold;color:{{ utils.status.getScoreColor(record.score|default(record.value)) }}">{{ record.value|string|nl2br|safe }}</span>
|
|
58
|
+
</a>
|
|
59
|
+
{% else %}
|
|
60
|
+
{{ record.value|string|nl2br|safe }}
|
|
61
|
+
{% endif %}
|
|
62
|
+
{%- endfor -%}
|
|
63
|
+
{% else %}
|
|
64
|
+
{{ column.value|string|nl2br|safe }}
|
|
65
|
+
{% endif %}
|
|
66
|
+
</td>
|
|
67
|
+
{%- endfor -%}
|
|
68
|
+
</tr>
|
|
69
|
+
{% endif %}{%- endfor -%}
|
|
70
|
+
</tbody>
|
|
71
|
+
</table>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{% extends "layout/basic.html" %}
|
|
2
|
+
{% import "components/contest.html" as contest with context %}
|
|
3
|
+
{% import "components/record.html" as record with context %}
|
|
4
|
+
{% import "components/problem.html" as problem with context %}
|
|
5
|
+
{% block content %}
|
|
6
|
+
{{ set(UiContext, 'tdoc', tdoc) }}
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div class="medium-9 columns">
|
|
9
|
+
<div class="section">
|
|
10
|
+
<div class="section__header">
|
|
11
|
+
<h1 class="section__title">{{ _('Attendee Manage') }}</h1>
|
|
12
|
+
<div class="section__tools">
|
|
13
|
+
<button class="primary rounded button" name="add_user"><span class="icon icon-search"></span>{{ _('Add User') }}</button>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
{{ noscript_note.render() }}
|
|
17
|
+
<div class="section__body no-padding">
|
|
18
|
+
<table class="data-table">
|
|
19
|
+
<colgroup>
|
|
20
|
+
<col class="col--uid">
|
|
21
|
+
<col class="col--user">
|
|
22
|
+
<col class="col--start-time">
|
|
23
|
+
<col class="col--end-time">
|
|
24
|
+
<col class="col--rank">
|
|
25
|
+
<col class="col--actions">
|
|
26
|
+
</colgroup>
|
|
27
|
+
<thead>
|
|
28
|
+
<tr>
|
|
29
|
+
<th class="col--uid">{{ _('User ID') }}</th>
|
|
30
|
+
<th class="col--user">{{ _('Username') }}</th>
|
|
31
|
+
<td class="col--start-time">{{ _('Begin Time') }}</th>
|
|
32
|
+
<th class="col--end-time">{{ _('End Time') }}</th>
|
|
33
|
+
<th class="col--rank">{{ _('Rank') }}</th>
|
|
34
|
+
<th class="col--actions">{{ _('Actions') }}</th>
|
|
35
|
+
</tr>
|
|
36
|
+
</thead>
|
|
37
|
+
{% include "partials/contest_user.html" %}
|
|
38
|
+
</table>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="medium-3 columns">
|
|
43
|
+
{% set owner_udoc = udict[tdoc.owner] %}
|
|
44
|
+
{% include "partials/contest_sidebar_management.html" %}
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
{% endblock %}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{% extends "layout/basic.html" %}
|
|
2
|
+
{% block content %}
|
|
3
|
+
<div class="row">
|
|
4
|
+
<div class="medium-9 columns">
|
|
5
|
+
<div class="section">
|
|
6
|
+
<div class="section__header">
|
|
7
|
+
<h1 class="section__title">{{ _('Create Discussion in {0}').format(vnode.title) }}</h1>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="section__body">
|
|
10
|
+
<form method="post">
|
|
11
|
+
{% include "partials/discussion_edit_form.html" %}
|
|
12
|
+
<div class="row"><div class="columns">
|
|
13
|
+
<button type="submit" class="rounded primary button">
|
|
14
|
+
{{ _('Create') }} (Ctrl+Enter)
|
|
15
|
+
</button>
|
|
16
|
+
<button type="button" class="rounded button" onclick="window.history.go(-1)">
|
|
17
|
+
{{ _('Cancel') }}
|
|
18
|
+
</button>
|
|
19
|
+
</div></div>
|
|
20
|
+
</form>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="medium-3 columns">
|
|
25
|
+
{% include 'components/md_hint.html' %}
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
{% endblock %}
|