From cb1879055cdadc6a2a386dce4ddbf8b6ef181ae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20B=C3=B6hm?= Date: Tue, 17 Sep 2024 14:55:08 +0200 Subject: [PATCH] Fixed alert message, alert if email is not verified --- app/controllers/application_controller.rb | 2 +- app/views/layouts/_flash.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index cce9a78..5258263 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -33,7 +33,7 @@ class ApplicationController < ActionController::Base def verified_user! if user_signed_in? unless current_user.verified? - flash[:notice] = "Please verify your email!" + flash[:alert] = "Verify your email!" redirect_to profile_path end end diff --git a/app/views/layouts/_flash.html.erb b/app/views/layouts/_flash.html.erb index c90d1aa..3b27a49 100644 --- a/app/views/layouts/_flash.html.erb +++ b/app/views/layouts/_flash.html.erb @@ -1,6 +1,6 @@ <%= turbo_frame_tag "flash" do %> <% flash.each do |type, message| %> -
"> +
">
<%= icon "check", class: "size-4 stroke-primary-500" %> <%= message %>