aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Donnet2015-06-10 15:28:17 +0200
committerLuc Donnet2015-06-10 15:28:17 +0200
commitd00105eaa396b79747c75254f52fae1fde10359e (patch)
treee446dfadddce24f281726073e207162ff6fed074
parentc16fc8387e87312ce1de5b98a092585788810ee4 (diff)
downloadchouette-core-d00105eaa396b79747c75254f52fae1fde10359e.tar.bz2
Fix compliance check results view and delete unused code
-rw-r--r--app/views/compliance_checks/_compliance_check_results.erb13
1 files changed, 3 insertions, 10 deletions
diff --git a/app/views/compliance_checks/_compliance_check_results.erb b/app/views/compliance_checks/_compliance_check_results.erb
index d240cac2c..80efe9be4 100644
--- a/app/views/compliance_checks/_compliance_check_results.erb
+++ b/app/views/compliance_checks/_compliance_check_results.erb
@@ -42,16 +42,9 @@
<% test.errors.first(10).each do |error| %>
<p class="detail_error">
<% if error["source"].present? %>
- <% if error["source"].objectid.present? %>
- <% data_content_1 = t("activemodel.attributes.compliance_check_result." + test.test_id) + ". " +
- t("compliance_check_result.details.detail_" + error[:error_id], object_labels_hash(error) ) %>
- <% data_title_1 = t("activemodel.attributes.compliance_check_result.detail") %>
- |- <button data-content='<%= data_content_1 %>' data-title='<%= data_title_1 %>' data-toggle="popover" class="notice btn btn-info btn-xs"><i class="fa fa-info"></i></button>
- <% else %>
- <% data_content_2 = ValidationReport.human_attribute_name(validation_result.test_id) + t("validation_result.details." + error[:error_id] ) %>
- <% data_title_2 = t("activemodel.attributes.validation_result.detail") %>
- |- <button data-content='<%= data_content_2 %>' data-title='<%= data_title_2 %>' data-toggle="popover" class="notice btn btn-info btn-xs"><i class="fa fa-info"></i></button>
- <% end %>
+ <% data_content = t("activemodel.attributes.compliance_check_result." + test.test_id) + " " + t("compliance_check_result.details.detail_" + error[:error_id], object_labels_hash(error) ) %>
+ <% data_title = t("activemodel.attributes.compliance_check_result.detail") %>
+ |- <button data-content='<%= data_content %>' data-title='<%= data_title %>' data-toggle="popover" class="notice btn btn-info btn-xs"><i class="fa fa-info"></i></button>
<% if error[:source].object_path.present? %>
<% if error[:source].label.present? %>