Commit a084d857b587f9f0751b44ea0ba300f51f79dcd3
Committed by
Daniel
1 parent
70c3cdc7
Exists in
colab
and in
2 other branches
Remove Show button for hotspot metric configurations
This removes the `Show` button for hotspot metric configurations on the configurations page. Signed-off-by: Daniel Miranda <danielkza2@gmail.com>
Showing
2 changed files
with
12 additions
and
10 deletions
Show diff stats
CHANGELOG.rdoc
app/views/kalibro_configurations/_metric_configurations.html.erb
| 1 | 1 | <tr> |
| 2 | 2 | <td><%= metric_configuration.metric.name %></td> |
| 3 | 3 | <td><%= metric_configuration.metric.code %></td> |
| 4 | - <% unless metric_configuration.metric.is_a? KalibroClient::Entities::Miscellaneous::HotspotMetric %> | |
| 4 | + <% unless hotspot_metric_configuration?(metric_configuration) %> | |
| 5 | 5 | <td><%= metric_configuration.weight %></td> |
| 6 | - <% end %> | |
| 7 | - <td> | |
| 8 | - <%= link_to_show_page(metric_configuration, @kalibro_configuration.id) %> | |
| 9 | - </td> | |
| 10 | - <% if kalibro_configuration_owner? @kalibro_configuration.id %> | |
| 11 | - <% unless hotspot_metric_configuration?(metric_configuration) %> | |
| 6 | + <td> | |
| 7 | + <%= link_to_show_page(metric_configuration, @kalibro_configuration.id) %> | |
| 8 | + </td> | |
| 9 | + <% if kalibro_configuration_owner? @kalibro_configuration.id %> | |
| 12 | 10 | <td> |
| 13 | 11 | <%= link_to_edit_form(metric_configuration, @kalibro_configuration.id) %> |
| 14 | 12 | </td> |
| 15 | 13 | <% end %> |
| 14 | + <% end %> | |
| 15 | + <% if kalibro_configuration_owner? @kalibro_configuration.id %> | |
| 16 | 16 | <td> |
| 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' %> | |
| 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' %> | |
| 20 | 20 | </td> |
| 21 | 21 | <% end %> |
| 22 | 22 | </tr> | ... | ... |