diff --git a/views/contest.ejs b/views/contest.ejs
index 1b477bb..2660fe5 100644
--- a/views/contest.ejs
+++ b/views/contest.ejs
@@ -1,7 +1,27 @@
<% this.title = contest.title + ' - 比赛' %>
+
<% include header %>
<%= contest.title %>
+ <% let start = syzoj.utils.formatDate(contest.start_time), end = syzoj.utils.formatDate(contest.end_time); %>
+ <% if (syzoj.utils.getCurrentDate() >= contest.start_time && syzoj.utils.getCurrentDate() < contest.end_time && start.split(' ')[0] === end.split(' ')[0]) {
+ start = start.split(' ')[1]; end = end.split(' ')[1];
+ } %>
+
+ <%= start %>
+
+
+ <%= end %>
+
+ <% let timePercentage = Math.floor(Math.min(1, (syzoj.utils.getCurrentDate() - contest.start_time) / (contest.end_time - contest.start_time)) * 100); %>
+
<% if (contest.allowedEdit || !contest.running) { %>
@@ -66,4 +86,15 @@
+
+
<% include footer %>