Fix small bugs
This commit is contained in:
parent
9b1724cdad
commit
3fb78e714d
4 changed files with 13 additions and 2 deletions
|
@ -790,7 +790,9 @@ class UserContestSubmissionsAjax(UserContestSubmissions):
|
|||
|
||||
def contest_time(self, s):
|
||||
if s.contest.participation.live:
|
||||
if self.contest.time_limit:
|
||||
return s.date - s.contest.participation.real_start
|
||||
return s.date - self.contest.start_time
|
||||
return None
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
|
|
|
@ -366,5 +366,6 @@ label[for="language"], label[for="status"] {
|
|||
.lightbox-submissions {
|
||||
td {
|
||||
padding-right: 0.2em;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
}
|
|
@ -137,6 +137,11 @@
|
|||
border-radius: 10px;
|
||||
height: 80%;
|
||||
width: 60%;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.featherlight {
|
||||
/*position: re;*/
|
||||
}
|
||||
</style>
|
||||
|
||||
|
@ -183,6 +188,9 @@
|
|||
width: 200px;
|
||||
height: 2.3em;
|
||||
}
|
||||
html.with-featherlight {
|
||||
overflow: unset;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
{% if submission.contest_time %}
|
||||
{{submission.contest_time}}
|
||||
{% else %}
|
||||
{% trans time=submission.date|date(_("N j, Y, g:i a")) %}
|
||||
{% trans time=submission.date|date(_("g:i a d/m/Y")) %}
|
||||
{{ time }}
|
||||
{% endtrans %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue