Downloadble stats

This commit is contained in:
Godwin
2015-09-13 14:10:50 -07:00
parent bbee04dce5
commit 8d546ee164
21 changed files with 314 additions and 116 deletions
+18
View File
@@ -0,0 +1,18 @@
- key = @excel_data[:key] || 'excel.columns'
%html
%head
= inject_css! if ENV["RAILS_ENV"] == 'test'
%title
=_!'Excel Spreadsheet'
%body
%table
%thead
%tr
- @excel_data[:columns].each do |column|
%th=_"#{key}.#{column.to_s}"
%tbody
- @excel_data[:data].each do |row|
%tr
- @excel_data[:columns].each do |column|
%td=_!row[column]