diff options
| author | anicet | 2015-06-23 15:30:03 +0200 | 
|---|---|---|
| committer | anicet | 2015-06-23 15:30:03 +0200 | 
| commit | 57c9b427352afb03b89fcf05afdee0346f1a9834 (patch) | |
| tree | bae18ed2542db438c62e02f742319a280b5f5ef9 /app | |
| parent | eafbf6ea15c5fb027f4e909cc95cd5a3a39070e2 (diff) | |
| download | chouette-core-57c9b427352afb03b89fcf05afdee0346f1a9834.tar.bz2 | |
ComplianceCheckResults : better display for errors
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/compliance_checks/_compliance_check_results.erb | 23 | 
1 files changed, 8 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>  | 
