summaryrefslogtreecommitdiff
path: root/app/views/application
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-04-06 21:56:44 -0400
committerDavid Gay <david@davidgay.org>2021-04-06 21:56:44 -0400
commit4ed2a36d48b6677d7ddb137e073a985d6391b8b4 (patch)
tree5e94cc8de10e747f3157142a6fab73e99b047dcf /app/views/application
parentb85c671ca482e9d36bd2ee94231f365e7e0d65a5 (diff)
Super-bare-bones pokemon adding and viewing
Diffstat (limited to 'app/views/application')
-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 %>