Skip to content

Commit

Permalink
feat: add time and answer fields
Browse files Browse the repository at this point in the history
Signed-off-by: Dup4 <lyuzhi.pan@gmail.com>
  • Loading branch information
Dup4 committed Oct 31, 2023
1 parent cba8cf4 commit 96aa773
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions packages/apps/board/src/components/board/SubmissionsTable.vue
Expand Up @@ -180,7 +180,7 @@ function getProblemLabelColorStyle(s: Submission) {
Status
</th>
<th
v-if="notShowing"
v-if="rank.contest.options.submissionHasTimeField"
scope="col"
class="px-4 py-3"
>
Expand All @@ -194,7 +194,7 @@ function getProblemLabelColorStyle(s: Submission) {
Memory
</th>
<th
v-if="notShowing"
v-if="rank.contest.options.submissionHasLanguageField"
scope="col"
class="px-4 py-3"
>
Expand Down Expand Up @@ -251,12 +251,11 @@ function getProblemLabelColorStyle(s: Submission) {
</td>

<td
v-if="notShowing"
v-if="rank.contest.options.submissionHasTimeField"
class="whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"
>
<div class="flex items-center">
<div class="mr-2 inline-block h-4 w-4 rounded-full bg-red-700" />
95
<div flex items-center>
{{ `${s.time} ms` }}
</div>
</td>

Expand All @@ -268,11 +267,11 @@ function getProblemLabelColorStyle(s: Submission) {
</td>

<td
v-if="notShowing"
v-if="rank.contest.options.submissionHasLanguageField"
class="whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"
>
<div class="flex items-center">
<span class="ml-1 text-gray-500 dark:text-gray-400">5.0</span>
<div flex items-center>
{{ s.language }}
</div>
</td>

Expand Down

0 comments on commit 96aa773

Please sign in to comment.