class UserStats < Netzke::Base js_configure do |c| c.body_padding = 15 c.title = "User Stats" bike = controller.current_user.bike c.html = %Q(

Total Hours Worked: #{controller.current_user.total_hours}

Hours worked in #{Time.now.strftime('%B')}: #{controller.current_user.current_month_hours}

Current bike ID: #{bike.id if bike}

Current bike S/N: #{bike.serial_number if bike}

) end end