module Golden::Theme::Foundation::RevealModalHelper
Public Instance Methods
foundation_modal_close_icon()
click to toggle source
# File lib/golden/theme/foundation/reveal_modal_helper.rb, line 56 def foundation_modal_close_icon options = { class: 'close-reveal-modal' } link_to '×'.html_safe, '#', options end
foundation_modal_edit_link_to(url, modal_id, options = {})
click to toggle source
# File lib/golden/theme/foundation/reveal_modal_helper.rb, line 31 def foundation_modal_edit_link_to url, modal_id, options = {} html_class = options.delete :class options = { remote: true, data: { toggle: 'modal', reveal_id: modal_id, type: 'html' }, class: "modal-open button #{html_class}".strip }.deep_merge options foundation_link_to_edit url, options end
foundation_modal_open_iconed_link_to(text, url, modal_id, options = {})
click to toggle source
# File lib/golden/theme/foundation/reveal_modal_helper.rb, line 17 def foundation_modal_open_iconed_link_to text, url, modal_id, options = {} html_class = options.delete :class options = { remote: true, data: { toggle: 'modal', reveal_id: modal_id, type: 'html' }, class: "modal-open #{html_class}".strip }.deep_merge options foundation_iconed_link_to text, url, options end
foundation_modal_open_link_to(text, url, modal_id, options = {})
click to toggle source
# File lib/golden/theme/foundation/reveal_modal_helper.rb, line 3 def foundation_modal_open_link_to text, url, modal_id, options = {} html_class = options.delete :class options = { remote: true, data: { toggle: 'modal', reveal_id: modal_id, type: 'html' }, class: "modal-open #{html_class}".strip }.deep_merge options link_to text, url, options end