From e95bf8e16283f6ca39591bdb8d844c0286f68255 Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Wed, 23 Sep 2015 21:37:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E4=B8=AD=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E8=83=BD=E5=90=A6=E5=88=86=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/src/oj/problem/my_submission.html | 25 +++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/template/src/oj/problem/my_submission.html b/template/src/oj/problem/my_submission.html index cd87dc00..5c7ba4e6 100644 --- a/template/src/oj/problem/my_submission.html +++ b/template/src/oj/problem/my_submission.html @@ -65,17 +65,18 @@
- -
- {% if submission.shared %} - - {% else %} - - {% endif %} - -
+ {% if can_share %} +
+ {% if submission.shared %} + + {% else %} + + {% endif %} + +
+ {% endif %} @@ -102,7 +103,7 @@ url: "/api/submission/share/", method: "post", data: {submission_id: location.href.split("/")[4]}, - success: function(data){ + success: function (data) { location.reload(); } })