Sha256: 5d059f060c3c0e6be51d6af2a1d6bb9bc95c4bfee378ae4ac336bbe5e4592410
Contents?: true
Size: 1.92 KB
Versions: 1
Compression:
Stored size: 1.92 KB
Contents
require 'url_plumber' module FlexirailsHelper 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 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 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 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 def render_flexirails_view view, opts = {} return render partial: '/flexirails/container', locals: { view: view, table_class: opts.fetch(:class) { "" } } end def url_plumb(key, value) url_for(::UrlPlumber::Plumber.new(params).plumb(key => value)) end def url_batch_plumb(hash) url_for(::UrlPlumber::Plumber.new(params).plumb(hash)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flexirails-0.1.0 | app/helpers/flexirails_helper.rb |