Sha256: 9bf07f12c380d17f376d8553ebcd8463b93bfe991a9f8edeaf71a957c8c3b488

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

- if flash[:danger]
  .alert.alert-danger.alert-dismissible{ role: "alert" }
    %button.close{ type: 'button', 'aria-label': 'Close', 'data-dismiss': 'alert' }
      %span{ 'aria-hidden': 'true' } ×
    %ul.mb-0
      - [*flash[:danger]].each do |msg|
        %li= msg

- if flash[:warning]
  .alert.alert-warning.alert-dismissible{ role: "alert" }
    %button.close{ type: 'button', 'aria-label': 'Close', 'data-dismiss': 'alert' }
      %span{ 'aria-hidden': 'true' } ×
    %ul.mb-0
      - [*flash[:warning]].each do |msg|
        %li= msg

- if flash[:success]
  .alert.alert-success.alert-dismissible{ role: "alert" }
    %button.close{ type: 'button', 'aria-label': 'Close', 'data-dismiss': 'alert' }
      %span{ 'aria-hidden': 'true' } ×
    %ul.mb-0
      - [*flash[:success]].each do |msg|
        %li= msg


- if flash[:info]
  .alert.alert-info.alert-dismissible{ role: "alert" }
    %button.close{ type: 'button', 'aria-label': 'Close', 'data-dismiss': 'alert' }
      %span{ 'aria-hidden': 'true' } ×
    %ul.mb-0
      - [*flash[:info]].each do |msg|
        %li= msg

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ditty-0.11.1 views/partials/notifications.haml
ditty-0.10.2 views/partials/notifications.haml
ditty-0.10.1 views/partials/notifications.haml
ditty-0.9.1 views/partials/notifications.haml
ditty-0.9.0 views/partials/notifications.haml