Fix small bugs

This commit is contained in:
cuom1999 2022-06-01 00:47:22 -05:00
parent 9b1724cdad
commit 3fb78e714d
4 changed files with 13 additions and 2 deletions

View file

@ -790,7 +790,9 @@ class UserContestSubmissionsAjax(UserContestSubmissions):
def contest_time(self, s): def contest_time(self, s):
if s.contest.participation.live: if s.contest.participation.live:
if self.contest.time_limit:
return s.date - s.contest.participation.real_start return s.date - s.contest.participation.real_start
return s.date - self.contest.start_time
return None return None
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):

View file

@ -366,5 +366,6 @@ label[for="language"], label[for="status"] {
.lightbox-submissions { .lightbox-submissions {
td { td {
padding-right: 0.2em; padding-right: 0.2em;
font-size: 1.2em;
} }
} }

View file

@ -137,6 +137,11 @@
border-radius: 10px; border-radius: 10px;
height: 80%; height: 80%;
width: 60%; width: 60%;
overflow: auto;
}
.featherlight {
/*position: re;*/
} }
</style> </style>
@ -183,6 +188,9 @@
width: 200px; width: 200px;
height: 2.3em; height: 2.3em;
} }
html.with-featherlight {
overflow: unset;
}
</style> </style>
{% endblock %} {% endblock %}

View file

@ -10,7 +10,7 @@
{% if submission.contest_time %} {% if submission.contest_time %}
{{submission.contest_time}} {{submission.contest_time}}
{% else %} {% else %}
{% trans time=submission.date|date(_("N j, Y, g:i a")) %} {% trans time=submission.date|date(_("g:i a d/m/Y")) %}
{{ time }} {{ time }}
{% endtrans %} {% endtrans %}
{% endif %} {% endif %}