From 2b575ca829a88d3db97a686917cb4cd6d5c65787 Mon Sep 17 00:00:00 2001 From: Alessandro Palmeira + João M. M. da Silva Date: Thu, 1 Mar 2012 00:58:04 +0300 Subject: [PATCH] Added collector visualization and changed check_box_tag's id and value. --- plugins/mezuro/views/cms/mezuro_plugin/_configuration_content.html.erb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/plugins/mezuro/views/cms/mezuro_plugin/_configuration_content.html.erb b/plugins/mezuro/views/cms/mezuro_plugin/_configuration_content.html.erb index 5ff2ab4..97a0ad0 100644 --- a/plugins/mezuro/views/cms/mezuro_plugin/_configuration_content.html.erb +++ b/plugins/mezuro/views/cms/mezuro_plugin/_configuration_content.html.erb @@ -19,16 +19,18 @@ end <%= f.text_field :description %>
-

Metrics

- - <% @tool_names = Kalibro::Client::BaseToolClient.new - @tool_names.base_tool_names.each do |collector_name| +

Metrics

+<% @tool_names = Kalibro::Client::BaseToolClient.new +@tool_names.base_tool_names.each do |collector_name| %> +

<%=collector_name%>

+
+ <% @collector = @tool_names.base_tool(collector_name) @collector.supported_metrics.each do |metric| %> -- libgit2 0.21.2
- <%= check_box_tag metric.name, metric.name, true %> + <%= check_box_tag collector_name + ":" + metric.name, collector_name + ":" + metric.name, true %> <%= label_tag metric.name %>