Sha256: 2c99d6d1f6c42693bfc507175b5c20153f697717210b99ac15a1c30427ec006d

Contents?: true

Size: 519 Bytes

Versions: 17

Compression:

Stored size: 519 Bytes

Contents

module QueryReportLinkHelper
  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

17 entries across 17 versions & 1 rubygems

Version Path
query_report-1.0.21 app/helpers/query_report_link_helper.rb
query_report-1.0.20 app/helpers/query_report_link_helper.rb
query_report-1.0.19 app/helpers/query_report_link_helper.rb
query_report-1.0.18 app/helpers/query_report_link_helper.rb
query_report-1.0.17 app/helpers/query_report_link_helper.rb
query_report-1.0.16 app/helpers/query_report_link_helper.rb
query_report-1.0.15 app/helpers/query_report_link_helper.rb
query_report-1.0.14 app/helpers/query_report_link_helper.rb
query_report-1.0.13 app/helpers/query_report_link_helper.rb
query_report-1.0.12 app/helpers/query_report_link_helper.rb
query_report-1.0.11 app/helpers/query_report_link_helper.rb
query_report-1.0.10 app/helpers/query_report_link_helper.rb
query_report-1.0.9 app/helpers/query_report_link_helper.rb
query_report-1.0.8 app/helpers/query_report_link_helper.rb
query_report-1.0.7 app/helpers/query_report_link_helper.rb
query_report-1.0.6 app/helpers/query_report_link_helper.rb
query_report-1.0.5 app/helpers/query_report_link_helper.rb