Sha256: ef42a69a3d3bc624c9c79afa44e2c7cc8fb08aca717a38a7fcb7fe2026c4284d
Contents?: true
Size: 820 Bytes
Versions: 2
Compression:
Stored size: 820 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 = yield :header - if title.present? %h5.modal-title = title - if desc.present? %small.text-secondary= desc %button.close{"aria-label" => "Close", "data-dismiss" => "modal", :type => "button"} = fas_icon('times') = 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_bs4.haml |
super_tools-2.1.0 | lib/super_interaction/views/layouts/modal_bs4.haml |