Sha256: 1c391bc0abe567be5105ef49946f1e36614a39b1cb58f2375d50eb7876822a2f

Contents?: true

Size: 847 Bytes

Versions: 1

Compression:

Stored size: 847 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

1 entries across 1 versions & 1 rubygems

Version Path
super_tools-0.0.17 lib/super_interaction/views/layouts/interaction_modal.html.haml