Merge pull request #35 from finnlabs/feature/4111_fix_table_semantics

[Fix] 4111 fix table semantics
pull/6827/head
cratz 11 years ago
commit e5acbcdbec
  1. 8
      lib/assets/stylesheets/reporting_engine/reporting.css.erb
  2. 4
      lib/widget/table/report_table.rb

@ -81,6 +81,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
text-align: right;
}
.report .odd td.inner {
background-color: #e8e8e8;
}
.report .even td.inner {
background-color: #e3e3e3;
}
.report tr.even:hover .inner,
.report tr.even:hover .bottom,
.report tr.even:hover .empty,

@ -31,9 +31,9 @@ class Widget::Table::ReportTable < Widget::Table
def configure_walker
@walker ||= @subject.walker
@walker.for_final_row do |row, cells|
html = "<th class='normal inner left'>#{show_row row}#{debug_fields(row)}</th>"
html = "<th scope='row' class='normal inner left'>#{show_row row}#{debug_fields(row)}</th>"
html << cells.join
html << "<th class='normal inner right'>#{show_result(row)}#{debug_fields(row)}</th>"
html << "<td class='normal inner right'>#{show_result(row)}#{debug_fields(row)}</th>"
html.html_safe
end

Loading…
Cancel
Save