From 4c644685126864f2af8680b23c4a8d836f4b44f5 Mon Sep 17 00:00:00 2001 From: Henriette Dinger Date: Thu, 23 Mar 2017 10:52:25 +0100 Subject: [PATCH] Style footer --- app/assets/stylesheets/reporting/reporting.css.sass | 6 ++++++ lib/widget/entry_table.rb | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/reporting/reporting.css.sass b/app/assets/stylesheets/reporting/reporting.css.sass index 35edfa3ce6..49fd50d6bc 100644 --- a/app/assets/stylesheets/reporting/reporting.css.sass +++ b/app/assets/stylesheets/reporting/reporting.css.sass @@ -20,3 +20,9 @@ &:after @include sort-icons content: "\e09f" + +#result-table .generic-table--results-container tfoot + td + width: 150px + .generic-table--footer-outer + width: inherit \ No newline at end of file diff --git a/lib/widget/entry_table.rb b/lib/widget/entry_table.rb index 08399240f1..8b3f8ad95f 100644 --- a/lib/widget/entry_table.rb +++ b/lib/widget/entry_table.rb @@ -94,20 +94,20 @@ class Widget::Table::EntryTable < Widget::Table content_tag :tfoot do content_tag :tr do if show_result(@subject, 0) != show_result(@subject) - concat content_tag(:th, '', colspan: FIELDS.size) - concat content_tag(:th) { + concat content_tag(:td, '', colspan: FIELDS.size) + concat content_tag(:td) { concat content_tag(:div, show_result(@subject), class: 'inner generic-table--footer-outer') } - concat content_tag(:th) { + concat content_tag(:td) { concat content_tag(:div, show_result(@subject, 0), class: 'result generic-table--footer-outer') } else - concat content_tag(:th, '', colspan: FIELDS.size + 1) - concat content_tag(:th) { + concat content_tag(:td, '', colspan: FIELDS.size + 1) + concat content_tag(:td) { concat content_tag(:div, show_result(@subject), class: 'result generic-table--footer-outer')