Sha256: d69fc0a391c129b42608e335eaa52d8524410469e1bb8c4dbac0c4a4584d9c03
Contents?: true
Size: 867 Bytes
Versions: 1
Compression:
Stored size: 867 Bytes
Contents
class MetaReports::Report < MetaReports::Base # # Shared colors. The key is the class name, value is RGB in hex format # # Example: "highlight: 'ffcccc'" is 'tr.highlight {background: #ffcccc}' in CSS, and "$highlight: #ffcccc;"" as a SASS variable. # COLORS = { even: 'efefef', odd: 'ffffff', yellow: ['ffffaa', 'ffffcc', 'f9f9a4', 'f9f9c6'], highlight: '$yellow_1 !important', } # # Reports # def self.moo(params) MetaReports::Data.new do |d| d.title = 'Le Moo' d.subtitle = 'Ahem' d.tables["The Big Moo"] = MetaReports::Table.new do |t| t << ['Number', 'Title', 'Hey'] t << [1, 'Ode to Moo', 'Ow'] t << [2, 'Odious Moo', 'Eww'] t << [3, "#{params[:moo_type]} Moo", 'No Way!'] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
meta_reports-0.0.5 | spec/dummy/app/models/meta_reports/report.rb |