Module: FlexirailsHelper
- Defined in:
- app/helpers/flexirails_helper.rb
Instance Method Summary collapse
- #pagination_first_icon ⇒ Object
- #pagination_last_icon ⇒ Object
- #pagination_next_icon ⇒ Object
- #pagination_prev_icon ⇒ Object
- #render_flexirails_view(view, opts = {}) ⇒ Object
- #url_batch_plumb(hash) ⇒ Object
- #url_plumb(key, value) ⇒ Object
Instance Method Details
#pagination_first_icon ⇒ Object
4 5 6 |
# File 'app/helpers/flexirails_helper.rb', line 4 def pagination_first_icon return '<svg version="1.2" baseProfile="tiny" id="Navigation_first" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 512 512" overflow="inherit" xml:space="preserve"> <path d="M186.178,256.243l211.583,166.934V89.312L186.178,256.243z M112.352,422.512h66.179V89.975h-66.179V422.512z"/> </svg>' end |
#pagination_last_icon ⇒ Object
10 11 12 |
# File 'app/helpers/flexirails_helper.rb', line 10 def pagination_last_icon return '<svg version="1.2" baseProfile="tiny" id="Navigation_last" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 512 512" overflow="inherit" xml:space="preserve"> <path d="M111.708,424.514l211.581-166.927L111.708,90.654V424.514z M330.935,87.311v332.544h66.173V87.311H330.935z"/> </svg>' end |
#pagination_next_icon ⇒ Object
13 14 15 |
# File 'app/helpers/flexirails_helper.rb', line 13 def pagination_next_icon return '<svg version="1.2" baseProfile="tiny" id="Navigation_right" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 512 512" overflow="inherit" xml:space="preserve"> <polygon points="360.124,255.513 148.535,422.442 148.537,88.58 "/> </svg>' end |
#pagination_prev_icon ⇒ Object
7 8 9 |
# File 'app/helpers/flexirails_helper.rb', line 7 def pagination_prev_icon return '<svg version="1.2" baseProfile="tiny" id="Navigation_left" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 512 512" overflow="inherit" xml:space="preserve"> <polygon points="148.584,255.516 360.168,88.583 360.166,422.445 "/> </svg>' end |
#render_flexirails_view(view, opts = {}) ⇒ Object
16 17 18 |
# File 'app/helpers/flexirails_helper.rb', line 16 def render_flexirails_view view, opts = {} return render partial: '/flexirails/container', locals: { view: view, table_class: opts.fetch(:class) { "" } } end |
#url_batch_plumb(hash) ⇒ Object
22 23 24 |
# File 'app/helpers/flexirails_helper.rb', line 22 def url_batch_plumb(hash) url_for(::UrlPlumber::Plumber.new(params).plumb(hash)) end |
#url_plumb(key, value) ⇒ Object
19 20 21 |
# File 'app/helpers/flexirails_helper.rb', line 19 def url_plumb(key, value) url_for(::UrlPlumber::Plumber.new(params).plumb(key => value)) end |