From 3a736e693e5c567c008796345288f7e3ca416517 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Pracha=C5=99?= <jan.prachar@gmail.com>
Date: Mon, 25 Apr 2022 11:35:44 +0200
Subject: [PATCH] =?UTF-8?q?user:=20Lep=C5=A1=C3=AD=20UX?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 mo/web/templates/user_contest.html   |  6 +++---
 mo/web/templates/user_index.html     | 23 +++++++++++++++--------
 mo/web/templates/user_join_list.html |  5 ++---
 3 files changed, 20 insertions(+), 14 deletions(-)

diff --git a/mo/web/templates/user_contest.html b/mo/web/templates/user_contest.html
index d04f34c6..11d0bc11 100644
--- a/mo/web/templates/user_contest.html
+++ b/mo/web/templates/user_contest.html
@@ -18,13 +18,13 @@
 
 {% if round.ct_tasks_start is not none %}
 	{% if round.ct_submit_end is not none %}
-		<p class="small">Od {{ round.ct_tasks_start|timeformat }} do {{ round.ct_submit_end|timeformat }}.</i></p>
+		<p class="small"><span class="glyphicon glyphicon-time"></span> Od {{ round.ct_tasks_start|timeformat }} do {{ round.ct_submit_end|timeformat }}.</i></p>
 	{% else %}
-		<p class="small">Od {{ round.ct_tasks_start|timeformat }}.</i></p>
+		<p class="small"><span class="glyphicon glyphicon-time"></span> Od {{ round.ct_tasks_start|timeformat }}.</i></p>
 	{% endif %}
 {% else %}
 	{% if round.ct_submit_end is not none %}
-		<p class="small">Do {{ round.ct_submit_end|timeformat }}.</i></p>
+		<p class="small"><span class="glyphicon glyphicon-time"></span> Do {{ round.ct_submit_end|timeformat }}.</i></p>
 	{% endif %}
 {% endif %}
 
diff --git a/mo/web/templates/user_index.html b/mo/web/templates/user_index.html
index 36d57ce2..36ea019e 100644
--- a/mo/web/templates/user_index.html
+++ b/mo/web/templates/user_index.html
@@ -35,22 +35,26 @@
 			<p>{{round.name}} {{ contest.ct_long_state()|replace("opravuje se", "se opravuje")|replace("připravuje se", "se připravuje") }}.
 			<p>
 			{% if contest.ct_task_statement_available() %}
-			<a class='btn btn-success' href='{{ url_for('user_task_statement', id=contest.contest_id) }}'>
+			<a class='btn btn-default' href='{{ url_for('user_task_statement', id=contest.contest_id) }}'>
 				<span class="glyphicon glyphicon-file"></span>
 				Zadání
 			</a>
 			{% endif %}
-			<a class='btn btn-primary' href='{{ url_for('user_contest', id=contest.contest_id) }}'>
+			<a href='{{ url_for('user_contest', id=contest.contest_id) }}'
 			{% if state == RoundState.running %}
+			   class="btn btn-success">
 				<span class="glyphicon glyphicon-send"></span>
 				Odevzdat řešení
 			{% elif state == RoundState.grading %}
+			   class="btn btn-info">
 				<span class="glyphicon glyphicon-duplicate"></span>
 				Odevzdaná řešení
 			{% elif state == RoundState.closed %}
+			   class="btn btn-primary">
 				<span class="glyphicon glyphicon-eye-open"></span>
 				Prohlédnout opravy
 			{% else %}
+			   class="btn btn-default">
 				<span class="glyphicon glyphicon-search"></span>
 				Detail kola
 			{% endif %}
@@ -68,13 +72,16 @@
 	<p>Momentálně se neúčastníte žádného kola FO.
 {% endif %}
 
-<p><a class="btn btn-primary" href="{{ url_for('user_join') }}">
-    {% if pions %}
-    Přihlásit se do dalšího kola
-    {% else %}
-    Přihlásit se do {{current_year}}. ročníku FO
-    {% endif %}
+<p>
+{% if pions %}
+<a class="btn btn-default" href="{{ url_for('user_join') }}">
+	Přihlásit se do dalšího kola
+</a>
+{% else %}
+<a class="btn btn-primary" href="{{ url_for('user_join') }}">
+	Přihlásit se do {{current_year}}. ročníku FO
 </a>
+{% endif %}
 
 <h3>Jak bude probíhat odevzdávání?</h3>
 
diff --git a/mo/web/templates/user_join_list.html b/mo/web/templates/user_join_list.html
index 3a009e95..d3c63307 100644
--- a/mo/web/templates/user_join_list.html
+++ b/mo/web/templates/user_join_list.html
@@ -3,7 +3,7 @@
 {% block body %}
 
 {% if available_rounds %}
-	<p>Zde si můžete vybrat, do kterých kol Fyzikální olympiády se přihlásíte.
+	<p>Zde si můžete vybrat, do kterých kategorií Fyzikální olympiády se přihlásíte.
 
 	<table class="table table-striped">
 		<thead>
@@ -30,8 +30,7 @@
 			{% endfor %}
 	</table>
 {% else %}
-	<p>V tomto školním roce zatím nejsou otevřené žádné kategorie olympiády.
-	Zkuste to prosím později.
+	<p>V tuto chvíli nejsou otevřené žádné kategorie Fyzikální olympiády k přihlašování.
 {% endif %}
 
 {% if pcrs_by_round_id %}
-- 
GitLab