Sha256: 17d8cda2da7100d82ca092d0fcd3593854cc032a8c7ea243c88aaac33055cbd7
Contents?: true
Size: 821 Bytes
Versions: 2
Compression:
Stored size: 821 Bytes
Contents
- if Rails.version[0].to_i >= 5 - size = local_assigns[:size] - title = local_assigns[:title] - desc = local_assigns[:desc] .modal = yield :wrapper .modal-dialog{ class: "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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
super_tools-3.0.1 | lib/super_interaction/views/layouts/modal_bs3.haml |
super_tools-2.1.0 | lib/super_interaction/views/layouts/modal_bs3.haml |