mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Added link for users to update email/password
This commit is contained in:
@@ -11,6 +11,11 @@ class AppTabPanel < Netzke::Basepack::TabPanel
|
||||
c.text = "CHECK OUT" if controller.current_user
|
||||
end
|
||||
|
||||
action :change_account_info do |c|
|
||||
c.icon = :user_edit
|
||||
c.text = "Change Email/Password"
|
||||
end
|
||||
|
||||
def configure(c)
|
||||
|
||||
#all users
|
||||
@@ -56,7 +61,7 @@ class AppTabPanel < Netzke::Basepack::TabPanel
|
||||
end
|
||||
end
|
||||
c.prevent_header = true
|
||||
c.tbar = [:sign_out, :check_out]
|
||||
c.tbar = [:sign_out, :check_out, :change_account_info]
|
||||
c.items = @@app_tab_panel_items
|
||||
super
|
||||
end
|
||||
|
||||
@@ -17,5 +17,8 @@
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
onChangeAccountInfo: function(){
|
||||
window.location.href="users/edit";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user