diff --git a/frontend/src/views/ContestView.vue b/frontend/src/views/ContestView.vue index 83cdc09d..7742b800 100644 --- a/frontend/src/views/ContestView.vue +++ b/frontend/src/views/ContestView.vue @@ -11,14 +11,13 @@ title="View Contest Leaderboard"> Leaderboard - + - @@ -41,7 +40,6 @@ -
Project: {{ contest.project_name }}
-Status: {{ contest.status }}
-Start Date: {{ formatDate(contest.start_date) }}
-End Date: {{ formatDate(contest.end_date) }}
- - Organizers: -Project: {{ contest.project_name }}
+Status: {{ contest.status }}
+Start Date: {{ formatDate(contest.start_date) }}
+End Date: {{ formatDate(contest.end_date) }}
+ + Organizers: +{{ param.description }}
-{{ param.description }}
{{ contest.description }}
-{{ contest.description }}
{{ contest.rules.text }}
- {{ contest.rules.text }}
+ - - {{ - contest.allowed_submission_type === 'new' - ? 'New Articles Only' - : contest.allowed_submission_type === 'expansion' - ? 'Improved Articles Only' - : 'Both (New Articles + Improved Articles)' - }} - -
- -
-
- • New Articles = Completely new Wikipedia article created during the contest.
- • Improved Articles = An existing article improved or expanded with substantial
- content.
-
-
+ + {{ + contest.allowed_submission_type === 'new' + ? 'New Articles Only' + : contest.allowed_submission_type === 'expansion' + ? 'Improved Articles Only' + : 'Both (New Articles + Improved Articles)' + }} + +
+ +
+
+ • New Articles = Completely new Wikipedia article created during the contest.
+ • Improved Articles = An existing article improved or expanded with substantial
+ content.
+
+
- Articles must belong to the following MediaWiki categories: -
- - - - Submitted articles must be categorized under at least one of these categories. - -+ Articles must belong to the following MediaWiki categories: +
+ + + + Submitted articles must be categorized under at least one of these categories. +- {{ contest.min_reference_count }} References required -
- - - Submitted articles must have at least {{ contest.min_reference_count }} external references. - -+ {{ contest.min_reference_count }} References required +
+ + + Submitted articles must have at least {{ contest.min_reference_count }} external references. + +| Article Title | -Article Author | -Submitted By | -Status | -Score | -Submitted At | -Actions | -||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
-
- {{ submission.article_title }}
-
-
-
-
- Total bytes:
- {{ formatByteCountWithExact((submission.article_word_count || 0) +
- (submission.article_expansion_bytes || 0)) }}
-
-
-
- Original bytes:
- {{ formatByteCountWithExact(submission.article_word_count) }}
-
-
-
-
- Expansion bytes:
-
- {{ submission.article_expansion_bytes >= 0 ? '+' : '-' }}{{
- formatByteCountWithExact(Math.abs(submission.article_expansion_bytes))
- }}
-
-
- {{ formatByteCountWithExact(0) }}
-
-
- |
-
-
-
- {{ submission.article_author }}
-
- Unknown
-
- {{ formatDateShort(submission.article_created_at) }}
-
-
-
-
-
- {{ submission.latest_revision_author }}
- Latest
-
-
-
- {{ formatDateShort(submission.latest_revision_timestamp) }}
-
- |
- {{ submission.username || 'Unknown' }} | -
-
- {{ submission.status }}
+
+
+
+
+ {{ formatDateShort(submission.latest_revision_timestamp) }}
+
+
+ |
+ {{ submission.username || 'Unknown' }} | +
+
+ {{ submission.status }}
+
+
+ Reviewed
+
+ |
+ {{ submission.score || 0 }} | +{{ formatDate(submission.submitted_at) }} | ++ + + | +
Project: {{ contest.project_name }}
-Status: {{ contest.status }}
-Start Date: {{ formatDate(contest.start_date) }}
-End Date: {{ formatDate(contest.end_date) }}
- - Organizers: -Project: {{ contest.project_name }}
+Status: {{ contest.status }}
+Start Date: {{ formatDate(contest.start_date) }}
+End Date: {{ formatDate(contest.end_date) }}
+ + Organizers: +{{ param.description }}
+{{ param.description }}