aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/shared
diff options
context:
space:
mode:
authorjpl2016-12-09 11:26:47 +0100
committerjpl2016-12-09 11:26:47 +0100
commit6f023547de72014b20ad24e2cd856d5e312ee2ff (patch)
tree0d796b567b4ae7e36be62f44c356889a99ffaa9c /app/views/shared
parente3d09f6e7b2814dd78492b6f1d018136143df058 (diff)
downloadchouette-core-6f023547de72014b20ad24e2cd856d5e312ee2ff.tar.bz2
fix some compliance_checks errors on views
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/_ie_report_file.html.slim6
-rw-r--r--app/views/shared/_ie_report_line.html.slim4
2 files changed, 5 insertions, 5 deletions
diff --git a/app/views/shared/_ie_report_file.html.slim b/app/views/shared/_ie_report_file.html.slim
index b0cd0b427..edf1e74fa 100644
--- a/app/views/shared/_ie_report_file.html.slim
+++ b/app/views/shared/_ie_report_file.html.slim
@@ -1,5 +1,5 @@
p.lead
- p.caption = t('.title_default', job=job.class.model_name.human extension=job.filename_extension )
+ p.caption = t('.title_default', job: job.class.model_name.human, extension: job.filename_extension)
.report.results data-refresh-interval="#{job_refresh_interval(job)}"
p
@@ -27,8 +27,8 @@ p.lead
td data-value="#{file.status.downcase}"
= t(".table.#{file.status.downcase}")
td = file.name
- td = file.errors.map |e| "#{e.code} : #{e.description}" .join(' | ') if file.errors.present?
+ td = file.errors.map{ |e| "#{e.code} : #{e.description}" }.join(' | ') if file.errors.present?
tfoot
tr
td colspan="5"
- ul.pagination.pagination-centered \ No newline at end of file
+ ul.pagination.pagination-centered
diff --git a/app/views/shared/_ie_report_line.html.slim b/app/views/shared/_ie_report_line.html.slim
index c2a24f1e4..32816f63b 100644
--- a/app/views/shared/_ie_report_line.html.slim
+++ b/app/views/shared/_ie_report_line.html.slim
@@ -40,7 +40,7 @@ p.lead
- line_items.each_with_index do |line_item, index|
tr
td data-value="#{line_item.status}"
- = line_item.status ? font_awesome_classic_tag(fa-check) : font_awesome_classic_tag(fa-times)
+ = line_item.status ? font_awesome_classic_tag('fa-check') : font_awesome_classic_tag('fa-times')
td = line_item.name
td
@@ -58,4 +58,4 @@ p.lead
- if line_items.respond_to?(:total_pages)
= will_paginate line_items, renderer: BootstrapPagination::Rails
- else
- ul.pagination.pagination-centered.hide-if-no-paging \ No newline at end of file
+ ul.pagination.pagination-centered.hide-if-no-paging