diff options
| -rw-r--r-- | app/views/compliance_checks/_compliance_check_results.erb | 23 | ||||
| -rw-r--r-- | config/locales/compliance_check_results.yml | 2 | 
2 files changed, 10 insertions, 15 deletions
diff --git a/app/views/compliance_checks/_compliance_check_results.erb b/app/views/compliance_checks/_compliance_check_results.erb index 78c29aaff..ab8d283eb 100644 --- a/app/views/compliance_checks/_compliance_check_results.erb +++ b/app/views/compliance_checks/_compliance_check_results.erb @@ -23,7 +23,7 @@    </div>  </form>  </p> -<table class="table table-hover toggle-square" +<table class="table table-hover toggle-circle toggle-medium"         data-filter="#filter"         data-page-size="20"         data-title-nok="<%=t('compliance_check_result.statuses.nok') %>" @@ -31,12 +31,12 @@         data-title-ok="<%=t('compliance_check_result.statuses.ok') %>">    <thead>      <tr> -      <th class="col-md-1" data-sort-ignore="true"><%= ComplianceCheckResult.human_attribute_name(:status) %></th> +      <th data-sort-ignore="true"><%= ComplianceCheckResult.human_attribute_name(:status) %></th>        <th class="col-md-1" data-sort-ignore="true"><%= ComplianceCheckResult.human_attribute_name(:severity) %></th> -      <th class="col-md-2"><%= ComplianceCheckResult.human_attribute_name(:rule_code) %></th> -      <th class="col-md-2" data-toggle="true" data-sort-ignore="true"><%= ComplianceCheckResult.human_attribute_name(:detail) %></th> +      <th class="col-md-3"><%= ComplianceCheckResult.human_attribute_name(:rule_code) %></th> +      <th class="col-md-2"><%=t('compliance_check_results.errors') %></th> +      <th class="col-md-6" data-toggle="true" data-sort-ignore="true"><%= ComplianceCheckResult.human_attribute_name(:detail) %></th>        <th data-hide="all" data-sort-ignore="true"></th> -      <th class="col-md-6" data-sort-ignore="true"></th>      </tr>    </thead>    <tbody> @@ -51,6 +51,9 @@          <%= ("#{test.error_count || 0} #{ComplianceCheckResult.human_attribute_name(:violation_count)}") if test.errors.present? %>        </td>        <td> +        <%= truncate(t("activemodel.attributes.compliance_check_result.#{test.test_id}"), length: 50)%> +      </td> +      <td>          <p><b><%=t("activemodel.attributes.compliance_check_result.#{test.test_id}")%></b></p>          <% if test.errors.present? %>            <% test.errors.first(10).each do |error| %> @@ -81,16 +84,6 @@            <% end %>          <% end %>        </td> -      <td> -        <button data-content='<%=t("activemodel.attributes.compliance_check_result.#{test.test_id}")%>' -                data-title='<%=t("activemodel.attributes.compliance_check_result.title")%>' -                rel="popover" -                data-toggle="popover" -                class="notice btn btn-info btn-xs"> -          <i class="fa fa-info"></i> -        </button> -        <%= truncate(t("activemodel.attributes.compliance_check_result.#{test.test_id}"), length: 59)%> -      </td>      </tr>      <% end %>    </tbody> diff --git a/config/locales/compliance_check_results.yml b/config/locales/compliance_check_results.yml index aa219dbaf..acbaa6826 100644 --- a/config/locales/compliance_check_results.yml +++ b/config/locales/compliance_check_results.yml @@ -1,5 +1,6 @@  en:    compliance_check_results: +    errors: 'Errors'      file:        zip_name_prefix: "compliance_check_results"        summary_errors_file_prefix: "summary_of_tests.csv" @@ -344,6 +345,7 @@ en:          first_violations: "First violations"  fr:    compliance_check_results: +    errors: 'Erreurs'      file:        zip_name_prefix: "resultats_de_validation"        summary_errors_file_prefix: "sommaire_des_tests.csv"  | 
