Commit 2799824f80817abe0a335bf72a4fbbf87096c999
Committed by
Rafael Manzo
1 parent
c91af636
Exists in
colab
and in
4 other branches
Remove edit button from metric configuration list
There are no attributes to be edited on a hotspot metric configuration Signed off by: Diego Araújo <diegoamc90@gmail.com>
Showing
1 changed file
with
8 additions
and
6 deletions
Show diff stats
app/views/kalibro_configurations/_metric_configurations.html.erb
@@ -8,13 +8,15 @@ | @@ -8,13 +8,15 @@ | ||
8 | <%= link_to_show_page(metric_configuration, @kalibro_configuration.id) %> | 8 | <%= link_to_show_page(metric_configuration, @kalibro_configuration.id) %> |
9 | </td> | 9 | </td> |
10 | <% if kalibro_configuration_owner? @kalibro_configuration.id %> | 10 | <% if kalibro_configuration_owner? @kalibro_configuration.id %> |
11 | + <% if metric_configuration.metric.type != "HotspotMetricSnapshot" %> | ||
12 | + <td> | ||
13 | + <%= link_to_edit_form(metric_configuration, @kalibro_configuration.id) %> | ||
14 | + </td> | ||
15 | + <% end %> | ||
11 | <td> | 16 | <td> |
12 | - <%= link_to_edit_form(metric_configuration, @kalibro_configuration.id) %> | ||
13 | - </td> | ||
14 | - <td> | ||
15 | - <%= link_to t_action(:destroy, MetricConfiguration), kalibro_configuration_metric_configuration_path(@kalibro_configuration.id, metric_configuration.id), | ||
16 | - method: :delete, data: { confirm: t('want_destroy_metric_configuration') }, | ||
17 | - class: 'btn btn-danger' %> | 17 | + <%= link_to t_action(:destroy, MetricConfiguration), kalibro_configuration_metric_configuration_path(@kalibro_configuration.id, metric_configuration.id), |
18 | + method: :delete, data: { confirm: t('want_destroy_metric_configuration') }, | ||
19 | + class: 'btn btn-danger' %> | ||
18 | </td> | 20 | </td> |
19 | <% end %> | 21 | <% end %> |
20 | </tr> | 22 | </tr> |