Sha256: 6227a37a81e3378e2be40dd966c711a56023d1b6bf5856ece8afc14edcc57127
Contents?: true
Size: 865 Bytes
Versions: 7
Compression:
Stored size: 865 Bytes
Contents
module QueryReportEngineLinkHelper def link_to_default_download_report_pdf if respond_to? :link_to_download_report_pdf link_to_download_report_pdf else link_to t('views.links.pdf'), export_report_url_with_format('pdf'), :target => "_blank" end end def link_to_default_download_report_csv if respond_to? :link_to_download_report_csv link_to_download_report_csv else link_to t('views.links.csv'), export_report_url_with_format('csv'), :target => "_blank" end end def link_to_default_email_query_report(target_dom_id) if respond_to? :link_to_email_query_report link_to_email_query_report(target_dom_id) else link_to t('views.labels.email'), 'javascript:void(0)', :onclick => "QueryReportEmail.openEmailModal('#{target_dom_id}');" if QueryReport.config.allow_email_report end end end
Version data entries
7 entries across 7 versions & 1 rubygems