Sha256: 3db9a208908fb3a5d6fc3d05a8a286425e7d588d0d46247d8eaeacd5e511cd9f

Contents?: true

Size: 537 Bytes

Versions: 71

Compression:

Stored size: 537 Bytes

Contents

- flashes = {
    primary: :primary,
    secondary: :secondary,
    success: :success,
    notice: :info,
    alert: :danger,
    danger: :danger,
    warning: :warning,
    info: :info,
    light: :light,
    dark: :dark
  }

- flashes.keys.each do |flash_type|
  - if  flash[flash_type].present?
    .alert.alert-dismissible.mt-3(role="alert" class="alert-#{flashes[flash_type]}")
      = flash[flash_type].html_safe
      %button.close(type="button" data-dismiss="alert" aria-label="Close")
        %i.fa.fa-times(aria-hidden="true")

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
shopapp-0.77.07 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.76.06 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.76.05 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.76.04 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.75.03 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.75.02 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.73.02 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.3.76 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.2.75 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.2.74 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.2.73 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.2.72 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.2.71 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.2.70 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.2.69 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.2.68 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.2.67 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.2.66 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.2.65 app/views/shopapp/_shopapp_alerts.html.haml
shopapp-0.2.64 app/views/shopapp/_shopapp_alerts.html.haml