mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: enhanced contest management page (#476)
This commit is contained in:
1 parent
d4cc5e9c5b
commit
ee1cfd8fe5
14 files changed
+173
-109
No files matched your search
@@ -159,3 +159,7 @@ $highlight-button-color = #F6DF45
|
||||
|
||||
.col--problem
|
||||
display: none
|
||||
|
||||
.page--contest_user
|
||||
.col--uid
|
||||
width: rem(100px)
|
||||
@@ -65,7 +65,7 @@ const page = new NamedPage('contest_user', () => {
|
||||
});
|
||||
if (res.url && res.url !== window.location.href) window.location.href = res.url;
|
||||
else {
|
||||
Notification.success(i18n('User has been added.'));
|
||||
Notification.success(i18n('User added.'));
|
||||
pjax.request({ push: false });
|
||||
}
|
||||
} catch (error) {
|
||||
@@ -82,7 +82,7 @@ const page = new NamedPage('contest_user', () => {
|
||||
});
|
||||
if (res.url && res.url !== window.location.href) window.location.href = res.url;
|
||||
else {
|
||||
Notification.success(i18n('User Rank has been edited.'));
|
||||
Notification.success(i18n('Ranking status updated.'));
|
||||
pjax.request({ push: false });
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
@@ -92,7 +92,7 @@ function handleDrop(ev) {
|
||||
handleClickUpload(files);
|
||||
}
|
||||
|
||||
const page = new NamedPage(['home_files', 'contest_files', 'training_files'], () => {
|
||||
const page = new NamedPage(['home_files', 'contest_manage', 'training_files'], () => {
|
||||
$(document).on('click', '[name="upload_file"]', () => handleClickUpload());
|
||||
$(document).on('click', '[name="remove_selected"]', () => handleClickRemoveSelected());
|
||||
$(document).on('dragover', '.files', (ev) => handleDragOver(ev));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
.page--home_files,.page--contest_files,.page--training_files
|
||||
.page--home_files,.page--contest_manage,.page--training_files
|
||||
.col--checkbox
|
||||
width: 60px
|
||||
|
||||
|
||||
Reference in new issue
Block a user