From c3d82d6c5f6d3bbfb396e72c7c42170855329090 Mon Sep 17 00:00:00 2001 From: Menci Date: Mon, 5 Dec 2016 19:04:30 +0800 Subject: [PATCH] Add missing status icon in the judge detail --- views/judge_detail.ejs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/views/judge_detail.ejs b/views/judge_detail.ejs index c9cc75b..7e22727 100644 --- a/views/judge_detail.ejs +++ b/views/judge_detail.ejs @@ -18,7 +18,23 @@ #<%= judge.id %> #<%= judge.problem_id %>. <%= judge.problem.title %> <% if (judge.allowedSeeResult) { %> - <%= judge.result.status %> + + <% + let icon = { + 'Accepted': 'checkmark', + 'Wrong Answer': 'remove', + 'Runtime Error': 'bomb', + 'Time Limit Exceed': 'clock', + 'Memory Limit Exceed': 'disk outline', + 'Output Limit Exceed': 'expand', + 'Waiting': 'spinner', + 'Compile Error': 'code', + 'System Error': 'server' + } + %> + + <%= judge.result.status %> + <%= judge.result.score %> <%= judge.result.total_time %> <% } else { %>