This commit is contained in:
yanxd 2013-11-20 10:44:54 +08:00
parent 356a48caa8
commit 349020182a
1 changed files with 6 additions and 2 deletions

View File

@ -15,7 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class UsersController < ApplicationController
layout 'base_users'
layout :setting_layout
#Added by young
menu_item :activity
menu_item :user_information, :only => :info
@ -695,4 +695,8 @@ class UsersController < ApplicationController
rescue ActiveRecord::RecordNotFound
render_404
end
def setting_layout(default_base='base_users')
User.current.admin? ? 'base_admin' : default_base
end
end