From 7d20537ce60ffd19873836ed0dbb9cb4998acb29 Mon Sep 17 00:00:00 2001 From: Menci Date: Mon, 1 Apr 2019 21:47:50 +0800 Subject: [PATCH] Add to some elements --- views/contest.ejs | 2 ++ views/statistics.ejs | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/views/contest.ejs b/views/contest.ejs index 8ee23a5..2de9aa9 100644 --- a/views/contest.ejs +++ b/views/contest.ejs @@ -75,8 +75,10 @@ <% if (typeof problem.status === 'string') { %> + <%= problem.feedback || problem.status %> + <% } else if (typeof problem.status === 'object') { %> <% if (problem.status.accepted) { %> diff --git a/views/statistics.ejs b/views/statistics.ejs index 05d2481..8166f12 100644 --- a/views/statistics.ejs +++ b/views/statistics.ejs @@ -71,19 +71,21 @@ function getColorOfScore(score) { <% for (let judge of statistics.judge_state) { %> <% include util %> - #<%= judge.id %> - #<%= judge.problem_id %>. <%= judge.problem.title %> + #<%= judge.id %> + #<%= judge.problem_id %>. <%= judge.problem.title %> + <%= judge.status %> + <%= judge.score %> <% if (problem.type !== 'submit-answer') { %> <%= judge.total_time %> ms <%= parseInt(judge.max_memory) || 0 %> K - <%= syzoj.languages[judge.language].show %> / <%= syzoj.utils.formatSize(judge.code.length) %> + <%= syzoj.languages[judge.language].show %> / <%= syzoj.utils.formatSize(judge.code.length) %> <% } else { %> <%= syzoj.utils.formatSize(judge.max_memory) %> <% } %>