summaryrefslogtreecommitdiff
path: root/app/views/users/_edit.html.haml
blob: 86629797b909d4ecc757ab78c0ce65e9690c2434 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-#
-# edit user form, used by both show and edit actions.
-#
-# We render a bunch of forms here. Which we use depends upon config settings
-# user_actions and admin_actions. They both include an array of actions
-# allowed to users and admins.
-# Possible forms are:
-#  'change_password'
-#  'change_pgp_key'
-#  'change_service_level'
-#  'contact_email'
-#  'destroy_account'
- actions = APP_CONFIG[admin? ? :admin_actions : :user_actions] || []
- actions.each do |action|
  = render action