Style footer

pull/6827/head
Henriette Dinger 8 years ago
parent 85dce4c159
commit 4c64468512
  1. 6
      app/assets/stylesheets/reporting/reporting.css.sass
  2. 10
      lib/widget/entry_table.rb

@ -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

@ -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')

Loading…
Cancel
Save