From 235e16e312621a334534d99212972972c86a2f3a Mon Sep 17 00:00:00 2001 From: Menci Date: Sun, 30 Apr 2017 11:20:49 +0800 Subject: [PATCH] Auto fit problem title font size on submission page --- views/submission.ejs | 1 + views/submission_content.ejs | 9 +++++++-- views/submissions.ejs | 6 +++++- views/submissions_item.ejs | 9 +++++++-- 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/views/submission.ejs b/views/submission.ejs index f53fa3d..27bf582 100644 --- a/views/submission.ejs +++ b/views/submission.ejs @@ -1,4 +1,5 @@ <% this.title = '提交记录 #' + judge.id %> <% include header %> + <% include submission_content %> <% include footer %> diff --git a/views/submission_content.ejs b/views/submission_content.ejs index 408630e..bd94ea1 100644 --- a/views/submission_content.ejs +++ b/views/submission_content.ejs @@ -29,7 +29,7 @@ else problemUrl = syzoj.utils.makeUrl(['problem', judge.problem_id]); %>
- +
@@ -46,7 +46,7 @@ else problemUrl = syzoj.utils.makeUrl(['problem', judge.problem_id]); - + <% if (judge.allowedSeeResult) { %> + <% if (judge.allowedSeeCode) { %>
<% if (judge.allowedRejudge) { %> diff --git a/views/submissions.ejs b/views/submissions.ejs index 0204c4c..1f9aa87 100644 --- a/views/submissions.ejs +++ b/views/submissions.ejs @@ -1,4 +1,5 @@ <% this.title = '提交记录' %> + <% include header %> <% include util %>
@@ -60,7 +61,7 @@ <% } %>
- +
@@ -80,6 +81,9 @@ <% } %> +
<% include page %>
diff --git a/views/submissions_item.ejs b/views/submissions_item.ejs index b2e12f8..b3ea206 100644 --- a/views/submissions_item.ejs +++ b/views/submissions_item.ejs @@ -5,7 +5,11 @@ if (typeof contest !== 'undefined' && contest) problemUrl = syzoj.utils.makeUrl( else problemUrl = syzoj.utils.makeUrl(['problem', judge.problem_id]); %> #<%= judge.id %> -#<%= judge.problem_id %>. <%= judge.problem.title %> +#<%= judge.problem_id %>. <%= judge.problem.title %> + <% if (!judge.hidden) { %> @@ -29,7 +33,7 @@ else problemUrl = syzoj.utils.makeUrl(['problem', judge.problem_id]); 隐藏 <% } %> <%= judge.user.username %><% if (judge.user.nameplate) { %><%- judge.user.nameplate %><% } %> -<%= syzoj.utils.formatDate(judge.submit_time) %> +<%= syzoj.utils.formatDate(judge.submit_time) %> <% if (isPending(judge.status)) { %> <% } %> +