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

Version Path
hobo_bootstrap-2.2.6 taglibs/alert_box.dryml
hobo_bootstrap-2.2.5 taglibs/alert_box.dryml
hobo_bootstrap-2.2.4 taglibs/alert_box.dryml
hobo_bootstrap-2.2.3 taglibs/alert_box.dryml
hobo_bootstrap-2.2.2 taglibs/alert_box.dryml
hobo_bootstrap-2.2.0 taglibs/alert_box.dryml
hobo_bootstrap-2.1.1 taglibs/alert_box.dryml
hobo_bootstrap-2.1.0 taglibs/alert_box.dryml
hobo_bootstrap-2.1.0.pre4 taglibs/alert_box.dryml
hobo_bootstrap-2.1.0.pre3 taglibs/alert_box.dryml
hobo_bootstrap-2.1.0.pre2 taglibs/alert_box.dryml
hobo_bootstrap-2.1.0.pre1 taglibs/alert_box.dryml
hobo_bootstrap-2.0.1 taglibs/alert_box.dryml
hobo_bootstrap-2.0.0 taglibs/alert_box.dryml
hobo_bootstrap-2.0.0.pre10 taglibs/alert_box.dryml
hobo_bootstrap-2.0.0.pre9 taglibs/alert_box.dryml
hobo_bootstrap-2.0.0.pre8 taglibs/alert_box.dryml
hobo_bootstrap-2.0.0.pre7 taglibs/alert_box.dryml
hobo_bootstrap-2.0.0.pre6 taglibs/alert_box.dryml
hobo_bootstrap-2.0.0.pre5 taglibs/alert_box.dryml