Commit 2b575ca829a88d3db97a686917cb4cd6d5c65787
Committed by
João M. M. da Silva
1 parent
5a427787
Exists in
master
and in
29 other branches
Added collector visualization and changed check_box_tag's id and value.
Showing
1 changed file
with
7 additions
and
5 deletions
Show diff stats
plugins/mezuro/views/cms/mezuro_plugin/_configuration_content.html.erb
... | ... | @@ -19,16 +19,18 @@ end |
19 | 19 | |
20 | 20 | <%= f.text_field :description %><br/> |
21 | 21 | |
22 | -<h3> Metrics </h3> | |
23 | -<table> | |
24 | - <% @tool_names = Kalibro::Client::BaseToolClient.new | |
25 | - @tool_names.base_tool_names.each do |collector_name| | |
22 | +<h3>Metrics</h3> | |
23 | +<% @tool_names = Kalibro::Client::BaseToolClient.new | |
24 | +@tool_names.base_tool_names.each do |collector_name| %> | |
25 | + <h4><%=collector_name%></h4> | |
26 | + <table> | |
27 | + <% | |
26 | 28 | @collector = @tool_names.base_tool(collector_name) |
27 | 29 | @collector.supported_metrics.each do |metric| %> |
28 | 30 | |
29 | 31 | <tr class="metric" title="<%= metric.description %>"> |
30 | 32 | <td> |
31 | - <%= check_box_tag metric.name, metric.name, true %> | |
33 | + <%= check_box_tag collector_name + ":" + metric.name, collector_name + ":" + metric.name, true %> | |
32 | 34 | <%= label_tag metric.name %> |
33 | 35 | </td> |
34 | 36 | </tr> | ... | ... |