Sha256: eaf08db7f503bf68348a1de7b65046000d92e399e672598947ae19e124a85fc4

Contents?: true

Size: 1.51 KB

Versions: 11

Compression:

Stored size: 1.51 KB

Contents

section.content-header
  - unless flash.nil?
    - flash.each do |type, message|
      
      / Skip unknown flash types.
      - next unless Hicube::ApplicationController::FLASH_TYPES.include?(type.to_sym)

      - if type.to_s.downcase == 'success'
        .alert.alert-success.alert-dismissable.fade.in
          button.close data-dismiss="alert" aria-hidden="true"
           ' ×
          | #{message.join(', ') rescue message}
      - elsif type.to_s.downcase == 'notice'
        .alert.alert-info.alert-dismissable.fade.in
         button.close data-dismiss="alert" aria-hidden="true"
           ' ×
         | #{message.join(', ') rescue message}
      - elsif type.to_s.downcase == 'alert'
        .alert.alert-danger.alert-dismissable.fade.in
         button.close data-dismiss="alert" aria-hidden="true"
           ' ×
         | #{message.join(', ') rescue message}
      - elsif type.to_s.downcase == 'error'
        .alert.alert-danger.alert-dismissable.fade.in
          button.close data-dismiss="alert" aria-hidden="true"
           ' ×
          | #{message.join(', ') rescue message}
      - elsif type.to_s.downcase == 'warning'
        .alert.alert-warning.alert-dismissable.fade.in
          button.close data-dismiss="alert" aria-hidden="true"
           ' ×
          | #{message.join(', ') rescue message}
      - else
        .alert.alert-info.alert-dismissable.fade.in
          button.close data-dismiss="alert" aria-hidden="true" ×
          | #{message.join(', ') rescue message}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hicube-0.0.11 app/views/hicube/base/_flash.html.slim
hicube-0.0.10 app/views/hicube/base/_flash.html.slim
hicube-0.0.9 app/views/hicube/base/_flash.html.slim
hicube-0.0.8 app/views/hicube/base/_flash.html.slim
hicube-0.0.7 app/views/hicube/base/_flash.html.slim
hicube-0.0.6 app/views/hicube/base/_flash.html.slim
hicube-0.0.5 app/views/hicube/base/_flash.html.slim
hicube-0.0.4 app/views/hicube/base/_flash.html.slim
hicube-0.0.3 app/views/hicube/base/_flash.html.slim
hicube-0.0.2 app/views/hicube/base/_flash.html.slim
hicube-0.0.1 app/views/hicube/base/_flash.html.slim