mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Merge pull request #21 from spacemunkay/denney-new-user-form
Denney new user form
This commit is contained in:
@@ -3,7 +3,7 @@ class AppTabPanel < Netzke::Basepack::TabPanel
|
||||
|
||||
action :sign_out do |c|
|
||||
c.icon = :door_out
|
||||
c.text = "Sign out #{controller.current_user.email}" if controller.current_user
|
||||
c.text = "Exit"
|
||||
end
|
||||
|
||||
action :check_out do |c|
|
||||
|
||||
@@ -4,6 +4,7 @@ class UserStats < Netzke::Base
|
||||
bike = user.bike
|
||||
%Q(
|
||||
<div id="user_stats_page">
|
||||
<p>Username: #{user.username}</p>
|
||||
<p>Total Hours Worked: #{user.total_hours}</p>
|
||||
<p>Hours worked in #{Time.now.strftime('%B')}: #{user.current_month_hours}</p>
|
||||
<p>Current bike Shop ID: #{bike.shop_id if bike}</p>
|
||||
|
||||
@@ -5,6 +5,7 @@ class Users < Netzke::Basepack::Grid
|
||||
c.model = "User"
|
||||
|
||||
c.columns = [
|
||||
:username,
|
||||
:first_name,
|
||||
:last_name,
|
||||
:nickname,
|
||||
|
||||
Reference in New Issue
Block a user