Module: Risu::Templates::GraphTemplateHelper
- Included in:
- TemplateHelper
- Defined in:
- lib/risu/base/graph_template_helper.rb
Instance Method Summary collapse
- #other_os_graph_page ⇒ Object
- #risks_by_service_graph_page ⇒ Object
- #risks_by_severity_graph_page ⇒ Object
- #root_cause_graph_page ⇒ Object
- #windows_os_graph_page ⇒ Object
Instance Method Details
#other_os_graph_page ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/risu/base/graph_template_helper.rb', line 26 def other_os_graph_page if Host.other_os_graph_has_data? new_page @output.image Host.other_os_graph, :width => 500, :height => 375, :position => :center text Host.other_os_graph_text end end |
#risks_by_service_graph_page ⇒ Object
51 52 53 54 55 |
# File 'lib/risu/base/graph_template_helper.rb', line 51 def risks_by_service_graph_page new_page @output.image Item.risks_by_service_graph(10), :width => 500, :height => 375, :position => :center text Item.risks_by_service_graph_text end |
#risks_by_severity_graph_page ⇒ Object
58 59 60 61 62 |
# File 'lib/risu/base/graph_template_helper.rb', line 58 def risks_by_severity_graph_page new_page @output.image Item.risks_by_severity_graph, :width => 500, :height => 375, :position => :center text Item.risks_by_severity_graph_text, :inline_format => true end |
#root_cause_graph_page ⇒ Object
44 45 46 47 48 |
# File 'lib/risu/base/graph_template_helper.rb', line 44 def root_cause_graph_page new_page @output.image Plugin.root_cause_graph, :width => 500, :height => 375, :position => :center text Plugin.root_cause_graph_text end |
#windows_os_graph_page ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/risu/base/graph_template_helper.rb', line 35 def windows_os_graph_page if Host.windows_os_graph_has_data? new_page @output.image Host.windows_os_graph, :width => 500, :height => 375, :position => :center text Host.windows_os_graph_text end end |