2015-09-11 17:12:33 +02:00
|
|
|
%h1 Tab!
|
|
|
|
%h2 Authentication
|
2015-09-08 16:19:48 +02:00
|
|
|
- if user_signed_in?
|
|
|
|
%p Yeah! Je bent ingelogd.
|
|
|
|
- else
|
|
|
|
Log een keer in!
|
|
|
|
%p= link_to "Log in met Zeus WPI", user_omniauth_authorize_path(:zeuswpi)
|
2015-09-11 17:12:33 +02:00
|
|
|
%h2 Cute Little Statistics
|
2015-09-11 18:04:45 +02:00
|
|
|
%p None here yet.
|
|
|
|
%h2 Wall of Shame
|
2015-09-11 23:49:27 +02:00
|
|
|
%table.pure-table
|
2015-09-11 23:32:38 +02:00
|
|
|
%thead
|
2015-09-11 23:49:27 +02:00
|
|
|
%th Shame on
|
|
|
|
%th Contribution to Zeus' lack of money
|
2015-09-11 23:32:38 +02:00
|
|
|
%tbody
|
|
|
|
- @statistics.shameful_users.each do |user|
|
|
|
|
%tr
|
2015-09-11 23:49:27 +02:00
|
|
|
%td.shameful-person= user.name
|
2015-09-11 23:32:38 +02:00
|
|
|
// Won't divide by zero because there won't be any users with
|
|
|
|
// a shameful debt if the total debt is zero.
|
2015-09-11 23:49:27 +02:00
|
|
|
%td.shame-percentage= "#{100 * user.balance / @statistics.total_debt}%"
|