Sha256: 8987317baa651fc83ad5989c4453be33b725834190225d373dce6a59278ad3ee

Contents?: true

Size: 525 Bytes

Versions: 7

Compression:

Stored size: 525 Bytes

Contents

module QueryReportEngineLinkHelper
  def link_to_download_report_pdf
    link_to t('views.links.pdf'), export_report_url_with_format('pdf'), :target => "_blank"
  end

  def link_to_download_report_csv
    link_to t('views.links.csv'), export_report_url_with_format('csv'), :target => "_blank"
  end

  def link_to_email_query_report(target_dom_id)
    link_to t('views.labels.email'), 'javascript:void(0)', :onclick => "QueryReportEmail.openEmailModal('#{target_dom_id}');" if QueryReport.config.allow_email_report
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
query_report-1.1.1 app/helpers/query_report_engine_link_helper.rb
query_report-1.1.0 app/helpers/query_report_engine_link_helper.rb
query_report-1.0.26 app/helpers/query_report_engine_link_helper.rb
query_report-1.0.25 app/helpers/query_report_engine_link_helper.rb
query_report-1.0.24 app/helpers/query_report_engine_link_helper.rb
query_report-1.0.23 app/helpers/query_report_engine_link_helper.rb
query_report-1.0.22 app/helpers/query_report_engine_link_helper.rb