diff --git a/judge/views/submission.py b/judge/views/submission.py index df3c898..8fdcf4b 100644 --- a/judge/views/submission.py +++ b/judge/views/submission.py @@ -805,6 +805,7 @@ class UserContestSubmissionsAjax(UserContestSubmissions): context["contest"] = self.contest context["problem"] = self.problem context["profile"] = self.profile + context["profile_id"] = self.request.profile.id if self.request.profile else None contest_problem = self.contest.contest_problems.get(problem=self.problem) for s in context["submissions"]: diff --git a/resources/submission.scss b/resources/submission.scss index 2846273..a1dff72 100644 --- a/resources/submission.scss +++ b/resources/submission.scss @@ -363,9 +363,14 @@ label[for="language"], label[for="status"] { } } -.lightbox-submissions { - td { - padding-right: 0.2em; - font-size: 1.2em; +@media (min-width: 800px) { + .lightbox-submissions { + .lightbox-submissions-time { + padding-right: 1em; + } + td { + padding-right: 0.2em; + font-size: 1.2em; + } } -} \ No newline at end of file +} diff --git a/templates/contest/ranking-css.html b/templates/contest/ranking-css.html new file mode 100644 index 0000000..a0a10d6 --- /dev/null +++ b/templates/contest/ranking-css.html @@ -0,0 +1,185 @@ + + +{% if has_rating %} + +{% endif %} diff --git a/templates/contest/ranking.html b/templates/contest/ranking.html index 4820192..0ee131b 100644 --- a/templates/contest/ranking.html +++ b/templates/contest/ranking.html @@ -9,189 +9,7 @@ {% block users_media %} - - - - {% if has_rating %} - - {% endif %} - - + {% include "contest/ranking-css.html" %} {% endblock %} {% block users_js_media %} diff --git a/templates/submission/user-ajax.html b/templates/submission/user-ajax.html index 91a6e29..c9450af 100644 --- a/templates/submission/user-ajax.html +++ b/templates/submission/user-ajax.html @@ -6,7 +6,7 @@ {% for submission in submissions %} {% set can_view = submission_layout(submission, profile_id, request.user, editable_problem_ids, completed_problem_ids) %} - + {% if submission.contest_time %} {{submission.contest_time}} {% else %}