diff --git a/app/assets/stylesheets/pages.scss b/app/assets/stylesheets/pages.scss index 0d6878a..6286627 100644 --- a/app/assets/stylesheets/pages.scss +++ b/app/assets/stylesheets/pages.scss @@ -1,3 +1,4 @@ // Place all the styles related to the pages controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ +.shame-percentage { text-align: right } diff --git a/app/views/pages/landing.html.haml b/app/views/pages/landing.html.haml index 7a78101..12b2f4b 100644 --- a/app/views/pages/landing.html.haml +++ b/app/views/pages/landing.html.haml @@ -8,14 +8,14 @@ %h2 Cute Little Statistics %p None here yet. %h2 Wall of Shame -%table +%table.pure-table %thead - %th People who should be ashamed - %th Part of total debt to Zeus + %th Shame on + %th Contribution to Zeus' lack of money %tbody - @statistics.shameful_users.each do |user| %tr - %td= "Shame on #{user.name}" + %td.shameful-person= user.name // Won't divide by zero because there won't be any users with // a shameful debt if the total debt is zero. - %td= "#{100 * user.balance / @statistics.total_debt}%" + %td.shame-percentage= "#{100 * user.balance / @statistics.total_debt}%"