From 5cbf3489b39873db2bf016d4239b236ff2a1f5dc Mon Sep 17 00:00:00 2001
From: Van Duc Le <121172468+yucyle@users.noreply.github.com>
Date: Thu, 16 Nov 2023 20:02:36 -0600
Subject: [PATCH] Update Problem UI (Problem Information) (#94)
---
resources/problem.scss | 16 +++++++
templates/problem/problem.html | 83 ++++++++++++++--------------------
2 files changed, 51 insertions(+), 48 deletions(-)
diff --git a/resources/problem.scss b/resources/problem.scss
index ddb3690..ff2b8d1 100644
--- a/resources/problem.scss
+++ b/resources/problem.scss
@@ -416,3 +416,19 @@ ul.problem-list {
}
}
}
+
+.new-problem-info {
+ background-color: #fff6dd;
+ border-radius: 25px;
+ font-size: 14px;
+ height: 25px;
+ width: 100%;
+ display: table;
+ padding: 5px;
+ margin-top: 12px;
+}
+
+.info-block {
+ display:table-cell;
+ vertical-align:middle;
+}
\ No newline at end of file
diff --git a/templates/problem/problem.html b/templates/problem/problem.html
index 29c923d..38d72dd 100644
--- a/templates/problem/problem.html
+++ b/templates/problem/problem.html
@@ -117,7 +117,6 @@
{% endfor %}
{% endif %}
-
{% if has_render %}
@@ -135,6 +134,7 @@
{% endblock %}
+
{% block info_float %}
{% if request.user.is_authenticated and request.in_contest_mode and submission_limit %}
{% if submissions_left > 0 %}
@@ -204,53 +204,6 @@
{% endif %}
-
-
-
{% cache 86400 'problem_authors' problem.id LANGUAGE_CODE %}
@@ -342,6 +295,40 @@
{% endif %}
+