Module: ActivityReportHelper

Defined in:
app/helpers/activity_report_helper.rb

Instance Method Summary collapse

Instance Method Details

#activity_report_download(download_path) ⇒ Object



13
14
15
16
17
# File 'app/helpers/activity_report_helper.rb', line 13

def activity_report_download(download_path)
  return if download_path.nil?

  render partial: 'woople-theme/reports/activity/download', locals: { download_path: download_path }
end

#activity_report_legend(legend) ⇒ Object



9
10
11
# File 'app/helpers/activity_report_helper.rb', line 9

def activity_report_legend(legend)
  render partial: 'woople-theme/reports/activity/legend', locals: { legend: legend }
end

#activity_reports(presenter) ⇒ Object



3
4
5
6
7
# File 'app/helpers/activity_report_helper.rb', line 3

def activity_reports(presenter)
  render partial: 'woople-theme/reports/activity/show',
    object: ThemePresentation.wrap(presenter, WoopleTheme::Reports::ActivityReportsPresenter),
    as: 'presenter'
end