From e1972504bd229bc978efc9a7617858e91ce3129c Mon Sep 17 00:00:00 2001 From: Menci Date: Tue, 13 Jun 2017 10:20:09 +0800 Subject: [PATCH] Swap contest 'not started' and 'ended' color --- views/contests.ejs | 4 ++-- views/index.ejs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/views/contests.ejs b/views/contests.ejs index 9acec5e..9a1243f 100644 --- a/views/contests.ejs +++ b/views/contests.ejs @@ -27,11 +27,11 @@ %> <% if (now < contest.start_time) { %> - <% tag = '
未开始
' %> + <% tag = '
未开始
' %> <% } else if (now >= contest.start_time && now < contest.end_time) { %> <% tag = '
进行中
' %> <% } else { %> - <% tag = '
已结束
' %> + <% tag = '
已结束
' %> <% } %> <%= contest.title %> <%- tag %> diff --git a/views/index.ejs b/views/index.ejs index 9436762..5260c5f 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -155,11 +155,11 @@ %> <% if (now < contest.start_time) { %> - <% tag = '
未开始
' %> + <% tag = '
未开始
' %> <% } else if (now >= contest.start_time && now < contest.end_time) { %> <% tag = '
进行中
' %> <% } else { %> - <% tag = '
已结束
' %> + <% tag = '
已结束
' %> <% } %> <%= contest.title %> <%- tag %> <%= syzoj.utils.formatDate(contest.start_time) %>