Sha256: 1fbb73cbc5bb38e5d6c41b342e17b35975d49671535f7611cfe562123360c2b5

Contents?: true

Size: 759 Bytes

Versions: 2

Compression:

Stored size: 759 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"}
          = fa_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

2 entries across 2 versions & 1 rubygems

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