Sha256: 95661e8ea5073582f8b87d2b43369b9d51e2ac054641efa24cb33996dab99883
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
module ArfReportDashboardHelper COLORS = { :passed => '#89A54E', :failed => '#AA4643', :othered => '#DB843D', } def reports_breakdown_chart(report, options = {}) data = [] [[:failed, _('Failed')], [:passed, _('Passed')], [:othered, _('Othered')], ].each { |i| data << {:label => i[1], :data => report[i[0]], :color => COLORS[i[0]]} } flot_pie_chart 'overview', _('Compliance reports breakdown'), data, options end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_openscap-0.5.0 | app/helpers/arf_report_dashboard_helper.rb |