summaryrefslogtreecommitdiff
path: root/app/views/application/_flash_messages.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/application/_flash_messages.html.erb')
-rw-r--r--app/views/application/_flash_messages.html.erb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/application/_flash_messages.html.erb b/app/views/application/_flash_messages.html.erb
new file mode 100644
index 0000000..7db1762
--- /dev/null
+++ b/app/views/application/_flash_messages.html.erb
@@ -0,0 +1,9 @@
+<% if flash[:error] %>
+ <div class="block rounded my-2 p-2 bg-red-200 text-red-800">
+ <%= flash[:error] %>
+ </div>
+<% elsif flash[:success] %>
+ <div class="block rounded my-2 p-2 bg-green-200 text-green-800">
+ <%= flash[:success] %>
+ </div>
+<% end %>