ExEffectiveBootstrap v0.1.17 ExEffectiveBootstrap.FlashAlert View Source
Bootstrap alerts for phoenix flash messages
Link to this section Summary
Functions
Bootstrap Alert Creates a dismissable alert with the given type and content
Creates a bootstrap alert for each flash message in the conn
Link to this section Functions
Link to this function
alert(type, content)
View Sourcealert(atom() | String.t(), String.t()) :: Phoenix.HTML.Safe.t()
Bootstrap Alert Creates a dismissable alert with the given type and content
Examples:
<%= alert(:danger, "This is bad") %> <%= alert(:success, "This is good") %>
Link to this function
flash_alert(conn)
View Sourceflash_alert(Plug.Conn.t()) :: Phoenix.HTML.Safe.t() | nil
Creates a bootstrap alert for each flash message in the conn
Examples:
<%= flash_alert(@conn) %>