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

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 Source
flash_alert(Plug.Conn.t()) :: Phoenix.HTML.Safe.t() | nil

Creates a bootstrap alert for each flash message in the conn

Examples:

<%= flash_alert(@conn) %>