Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .span-24
- = render :partial => 'admins/admin_bar.haml'
- %br
- %br
- .span-24.last
- %h1
- = t('.correlations_count')
- %table#metrics #we changed the output format to a nice table
- %tr
- %th Metric
- %th Result
- - @correlations_hash.keys.each do |k|
- %tr
- %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)
- %td= @correlations_hash[k]
Advertisement
Add Comment
Please, Sign In to add comment