Sha256: 75a511cfbb0c752ec7f4967e697d64c6c6634e0a6111ef97b61ec1afa9471aff
Contents?: true
Size: 519 Bytes
Versions: 2
Compression:
Stored size: 519 Bytes
Contents
<!-- Renders a Rails flash message with bootstrap style ### Attributes - `type`: chooses which flash message to display and also the box style. The default is `notice`. `error`, `success` and `info` also have styling. --> <def tag="flash-message" attrs="type"> <% type = type ? type.to_sym : :notice -%> <div class="alert alert-#{type}" if="&flash[type]" merge-attrs> <a class="close" data-dismiss="alert" href="#" param="close">×</a> <span param="default"><%= flash[type] %></span> </div> </def>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hobo_bootstrap-2.0.0.pre3 | taglibs/flash_message.dryml |
hobo_bootstrap-2.0.0.pre1 | taglibs/flash_message.dryml |