From a5600bcfd7274bbda93d344ec90a616380a25bf7 Mon Sep 17 00:00:00 2001 From: kyomi Date: Thu, 5 Oct 2023 22:10:11 -0300 Subject: [PATCH 1/4] fix(templates/contests): fix template tag spacing --- templates/contests/detail.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/contests/detail.html b/templates/contests/detail.html index 4b74122..9ded3e8 100644 --- a/templates/contests/detail.html +++ b/templates/contests/detail.html @@ -32,7 +32,9 @@

Tasks

{% if problem.is_accessible %} - {{ problem }} + + {{ problem }} + {% else %} {{ problem }} {% endif %} @@ -49,7 +51,7 @@

Tasks

{% if problem.time_limit %} - {{ problem.time_limit}} + {{ problem.time_limit }} second{{ problem.time_limit|pluralize:"s" }} {% else %} Unlimited From 2081b77239fe6260e02d64c792474b367f49dafa Mon Sep 17 00:00:00 2001 From: kyomi Date: Thu, 5 Oct 2023 22:11:11 -0300 Subject: [PATCH 2/4] feat(templates/problems): improve the problem detail page --- templates/problems/detail.html | 35 ++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/templates/problems/detail.html b/templates/problems/detail.html index ae91dbb..0966121 100644 --- a/templates/problems/detail.html +++ b/templates/problems/detail.html @@ -3,6 +3,37 @@ {% block title %}{{ problem.title }}{% endblock title %} {% block content %} -

{{ problem.title }}

-

{{ problem.description }}

+
+

+ + {{ problem.title }} + +

+
+ +
+

+ Score: {{ problem.score|default:"???" }} +

+

+ Memory limit: + {% if problem.memory_limit %} + {{ problem.memory_limit|filesizeformat }} + {% else %} + Unlimited + {% endif %} +

+

+ Time limit: + {% if problem.time_limit %} + {{ problem.time_limit }} + second{{ problem.time_limit|pluralize:"s" }} + {% else %} + Unlimited + {% endif %} +

+
+
+

{{ problem.description }}

+
{% endblock content %} From a7a13496e5757f3b4f4b1cf0d308d90d6154f49d Mon Sep 17 00:00:00 2001 From: MMcLovin <122990047+MMcLovin@users.noreply.github.com> Date: Mon, 9 Oct 2023 18:18:59 -0300 Subject: [PATCH 3/4] fix: fix user's dropdown menu boundaries --- templates/base.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/templates/base.html b/templates/base.html index 1ff2c39..6a4a375 100644 --- a/templates/base.html +++ b/templates/base.html @@ -17,6 +17,18 @@ {% block title %}{% endblock title %} | Virtual Judge + + +
From 1d1c148894cb94d105312583fa543b79fb094587 Mon Sep 17 00:00:00 2001 From: kyomi Date: Wed, 11 Oct 2023 10:47:06 -0300 Subject: [PATCH 4/4] fix(templates/base): fix dropdown menu style --- templates/base.html | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/templates/base.html b/templates/base.html index 6a4a375..d8d75b9 100644 --- a/templates/base.html +++ b/templates/base.html @@ -20,12 +20,7 @@