tab/app/views/pages/landing.html.haml

27 lines
826 B
Text
Raw Normal View History

%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)
%h2 Cute Little Statistics
2015-09-11 18:04:45 +02:00
%p None here yet.
%h2 Wall of Shame
.pure-g
.pure-u-1-2
%table.pure-table
%thead
%th Shame on
%th Contribution to Zeus' lack of money
%tbody
- @statistics.shameful_users.each do |user|
%tr
%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.shame-percentage= "#{100 * user.balance / @statistics.total_debt}%"
.pure-u-1-2
= javascript_include_tag "//www.google.com/jsapi", "chartkick"
= pie_chart @statistics.shamehash