diff options
Diffstat (limited to 'app/controllers/admin/groups_controller.rb')
| -rw-r--r-- | app/controllers/admin/groups_controller.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/controllers/admin/groups_controller.rb b/app/controllers/admin/groups_controller.rb index 8e2a981be7c..4dafef43184 100644 --- a/app/controllers/admin/groups_controller.rb +++ b/app/controllers/admin/groups_controller.rb @@ -1,3 +1,4 @@ +#encoding: utf-8 class Admin::GroupsController < Admin::ApplicationController before_action :group, only: [:edit, :show, :update, :destroy, :project_update, :members_update] @@ -26,7 +27,7 @@ class Admin::GroupsController < Admin::ApplicationController if @group.save @group.add_owner(current_user) - redirect_to [:admin, @group], notice: 'Group was successfully created.' + redirect_to [:admin, @group], notice: '群组创建成功。' else render "new" end @@ -34,7 +35,7 @@ class Admin::GroupsController < Admin::ApplicationController def update if @group.update_attributes(group_params) - redirect_to [:admin, @group], notice: 'Group was successfully updated.' + redirect_to [:admin, @group], notice: '群组更新成功。' else render "edit" end @@ -43,13 +44,13 @@ class Admin::GroupsController < Admin::ApplicationController def members_update @group.add_users(params[:user_ids].split(','), params[:access_level], current_user) - redirect_to [:admin, @group], notice: 'Users were successfully added.' + redirect_to [:admin, @group], notice: '用户增加成功。' end def destroy DestroyGroupService.new(@group, current_user).execute - redirect_to admin_groups_path, notice: 'Group was successfully deleted.' + redirect_to admin_groups_path, notice: '群组删除成功。' end private |
