- <%= for {kind, class} <- alert_kinds() do %>
+ <%= for {kind, color} <- alert_kinds() do %>
<%= if flash_content = live_flash(@flash, kind) do %>
-
+
<%= flash_content %>
diff --git a/lib/bones73k_web/views/layout_view.ex b/lib/bones73k_web/views/layout_view.ex
index 5276d88c..c577539f 100644
--- a/lib/bones73k_web/views/layout_view.ex
+++ b/lib/bones73k_web/views/layout_view.ex
@@ -10,12 +10,12 @@ defmodule Bones73kWeb.LayoutView do
def alert_kinds do
[
- success: "alert alert-success",
- info: "alert alert-info",
- error: "alert alert-danger",
- warning: "alert alert-warning",
- primary: "alert alert-primary",
- secondary: "alert alert-secondary"
+ success: "success",
+ info: "info",
+ error: "danger",
+ warning: "warning",
+ primary: "primary",
+ secondary: "secondary"
]
end
end