From b0b0310487a95902eced570de40e1b136e151832 Mon Sep 17 00:00:00 2001 From: Menci Date: Thu, 16 Mar 2017 18:12:34 +0800 Subject: [PATCH] Hide empty fields on problem page --- views/problem.ejs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/views/problem.ejs b/views/problem.ejs index b970480..af03886 100644 --- a/views/problem.ejs +++ b/views/problem.ejs @@ -71,36 +71,46 @@ if (contest) { <% } %> + <% if (problem.description) { %>

题目描述

<%- problem.description %>
+ <% } %> + <% if (problem.input_format) { %>

输入格式

<%- problem.input_format %>
+ <% } %> + <% if (problem.output_format) { %>

输出格式

<%- problem.output_format %>
+ <% } %> + <% if (problem.example) { %>

样例

<%- problem.example %>
+ <% } %> + <% if (problem.limit_and_hint) { %>

数据范围与提示

<%- problem.limit_and_hint %>
+ <% } %>
<%