<%
if (fortune) {
let color;
if (fortune.fortune.indexOf('吉') != -1) color = '#0ccf00';
else if (fortune.fortune.indexOf('凶') != -1) color = '#f25e65';
else color = '#444';
%>
<%- (user.sex == -1 ? '♀ ' : '♂ ') + fortune.fortune + (user.sex == 1 ? ' ♂' : ' ♀') %>
<% if (fortune.good.length) { %>
宜:<%= fortune.good[0].title %>
<%= fortune.good[0].detail %>
宜:<%= fortune.good[1].title %>
<%= fortune.good[1].detail %>
<% } else { %>
诸事不宜
<% } %>
<% if (fortune.bad.length) { %>
忌:<%= fortune.bad[0].title %>
<%= fortune.bad[0].detail %>
忌:<%= fortune.bad[1].title %>
<%= fortune.bad[1].detail %>
<% } else { %>
万事皆宜
<% } %>
<% } %>
<% if (!contests || !contests.length) { %>
还没有举行过任何比赛
<% } else { %>
比赛名称 |
开始时间 |
<%
for (let contest of contests) {
let now = syzoj.utils.getCurrentDate();
let tag = '';
%>
<% if (now < contest.start_time) { %>
<% tag = '' %>
<% } else if (now >= contest.start_time && now < contest.end_time) { %>
<% tag = '' %>
<% } else { %>
<% tag = '' %>
<% } %>
<%= contest.title %> <%- tag %> |
<%= syzoj.utils.formatDate(contest.start_time) %> |
<% } %>
<% } %>
<% if (typeof links !== 'undefined' && links && links.length) { %>
<% } %>