kostasnw

correlations.haml

Jun 3rd, 2012
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.50 KB | None | 0 0
  1. .span-24
  2.   = render :partial => 'admins/admin_bar.haml'
  3. %br
  4. %br
  5.  
  6. .span-24.last
  7.   %h1
  8.     = t('.correlations_count')
  9.   %table#metrics #we changed the output format to a nice table
  10.     %tr
  11.       %th Metric
  12.       %th Result
  13.     - @correlations_hash.keys.each do |k|
  14.       %tr
  15.         %td= k.to_s.gsub('_', ' ').split(' ').each{|word| word.capitalize!}.join(' ') #we added this to format the name of each variable stored in the hash (e.g. posts_count => Posts Count)
  16.         %td= @correlations_hash[k]
Advertisement
Add Comment
Please, Sign In to add comment