21 lines
622 B
Text
21 lines
622 B
Text
%h1 Tab!
|
|
%h2 Authentication
|
|
- 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)
|
|
%h2 Cute Little Statistics
|
|
%p None here yet.
|
|
%h2 Wall of Shame
|
|
%table
|
|
%thead
|
|
%th People who should be ashamed
|
|
%th Part of total debt to Zeus
|
|
%tbody
|
|
- @statistics.shameful_users.each do |user|
|
|
%tr
|
|
%td= "Shame on #{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}%"
|