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(); } })