Sha256: bf53d4da45e3f0c26ec82b8e7f1d2fd8b5bf7eb8e4e00bd07a2344b6c70c9dcc

Contents?: true

Size: 848 Bytes

Versions: 4

Compression:

Stored size: 848 Bytes

Contents

- if Rails.version[0].to_i >= 5
  - bs_modal_size = local_assigns[:bs_modal_size]
  - title = local_assigns[:title]
  - desc = local_assigns[:desc]
.modal
  = yield :wrapper
  .modal-dialog{ class: "modal-#{bs_modal_size}" }
    .modal-content
      .modal-header
        %button.close{"aria-label" => "Close", "data-dismiss" => "modal", :type => "button"}
          - if respond_to?(:fa_icon)
            = fa_icon('times')
          - else
            = fas_icon('times')
        = yield :header
        - if title.present?
          %h4.modal-title= title

      = yield
      = yield :before_body
      - body_html = capture { yield :body }
      - if body_html.present?
        .modal-body= body_html
      = yield :after_body

      - footer_html = capture { yield :footer }
      - if footer_html.present?
        .modal-footer= footer_html

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
super_tools-0.0.26 lib/super_interaction/views/layouts/modal_bs3.haml
super_tools-0.0.25 lib/super_interaction/views/layouts/modal_bs3.haml
super_tools-0.0.21 lib/super_interaction/views/layouts/modal_bs3.haml
super_tools-0.0.20 lib/super_interaction/views/layouts/modal_bs3.haml