aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/shared
diff options
context:
space:
mode:
authorAlban Peignier2015-05-20 15:55:54 +0200
committerAlban Peignier2015-05-20 15:57:13 +0200
commit31b66390ed9811105f3bd55445b9b007ac3d4826 (patch)
treecb8ba31273f6e668edb912b0dd3f4e74227ef674 /app/views/shared
parent085b483d720116a50571020fed4c4fbcdcf56a07 (diff)
downloadchouette-core-31b66390ed9811105f3bd55445b9b007ac3d4826.tar.bz2
Refactor compliance_checks#show to display objects statistics
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/_ie_report.html.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/shared/_ie_report.html.erb b/app/views/shared/_ie_report.html.erb
index 709735f1d..0b3be8afa 100644
--- a/app/views/shared/_ie_report.html.erb
+++ b/app/views/shared/_ie_report.html.erb
@@ -1,8 +1,10 @@
<div class="resume row">
+ <% if job.respond_to?(:file_path) %>
<div class="col-md-4">
<div class="caption"><%= t(".graph.files.title_default", {:job => job.class.model_name.human, :extension => job.filename_extension} ) %></div>
<div id="files_statistics"></div>
</div>
+ <% end %>
<div class="col-md-8">
<div class="caption"><%= t ".graph.lines.title" %></div>
<div id="objects_statistics"></div>