Sha256: da9bb23104bf9ba80d49936c5ad7805fe2e56efef272fc4582667f03ffa633da
Contents?: true
Size: 549 Bytes
Versions: 21
Compression:
Stored size: 549 Bytes
Contents
<!-- Renders an alert 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. - `no-close`: if set, the alert doesn't have a close button --> <def tag="alert-box" attrs="type, no-close"> <% type = type ? type.to_sym : :notice -%> <div class="alert alert-#{type}" unless="&no_close" merge-attrs> <a class="close" data-dismiss="alert" href="#" param="close">×</a> <span param="default"/> </div> </def>
Version data entries
21 entries across 21 versions & 1 rubygems