From e6687c4956b26a2f769e8f09513c97edf83ae06c Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Fri, 11 Oct 2024 20:05:37 +0200
Subject: [PATCH] Use flash-error instead of error where appropriate

It's nicer :)
---
 owl/templates/join-token.html | 2 +-
 owl/templates/join.html       | 4 ++--
 owl/templates/login.html      | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/owl/templates/join-token.html b/owl/templates/join-token.html
index 8bbc544..e2403f9 100644
--- a/owl/templates/join-token.html
+++ b/owl/templates/join-token.html
@@ -4,7 +4,7 @@
 	<h2>Join a new course{% if course %}: {{ course.name }}{% endif %}</h2>
 
 	{% if error %}
-		<p class=error>{{ error }}</p>
+		<p class="flash flash-error">{{ error }}
 		<div class=buttons>
 			<a href='{{ url_for('index') }}' class=button>Go to main page</a>
 		</div>
diff --git a/owl/templates/join.html b/owl/templates/join.html
index 6639038..8c3c31e 100644
--- a/owl/templates/join.html
+++ b/owl/templates/join.html
@@ -4,9 +4,9 @@
 	<h2>Join a new course</h2>
 
 	{% if error %}
-	<p class=error>{{ error }}
+		<p class="flash flash-error">{{ error }}
 	{% else %}
-	<p>To join a course, you need to enter a code distributed by your teacher.
+		<p>To join a course, you need to enter a code distributed by your teacher.
 	{% endif %}
 
 	<form method="POST" action="?">
diff --git a/owl/templates/login.html b/owl/templates/login.html
index 50b0c12..f764ebf 100644
--- a/owl/templates/login.html
+++ b/owl/templates/login.html
@@ -10,7 +10,7 @@
 	</form>
 
 	{% if error %}
-	<p class=error>{{ error }}
+	<p class="flash flash-error">{{ error }}
 	{% endif %}
 
 	<form method="POST" action="?">
-- 
GitLab