Sha256: 47d3d5f4bf729b61c4b4ef5811fbfd4d11f05c9537a6cc12302ee0696ad8f0d9
Contents?: true
Size: 949 Bytes
Versions: 2
Compression:
Stored size: 949 Bytes
Contents
- if Rails.version[0].to_i >= 5 - size = local_assigns[:size] - title = local_assigns[:title] - desc = local_assigns[:desc] - classname = local_assigns[:classname] .modal{"aria-labelledby" => "modalLabel", "data-modal" => "box-modal", :role => "dialog", :tabindex => "-1"} .modal-dialog{ role: 'document', class: "modal-#{size} #{classname}" } .modal-content .modal-header = yield :header - if title.present? %h4.modal-title = title %small= desc if desc %button.btn-close{'aria-label': 'Close', 'data-close': true, 'type': 'button'} = b_icon('cross') = yield = yield :before_body - body_html = capture { yield :body } - if body_html.present? .modal-body.bg-content= 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/beyond.haml |
super_tools-2.1.0 | lib/super_interaction/views/layouts/beyond.haml |