diff --git a/app/controllers/admin/module_apps_new_interface_controller.rb b/app/controllers/admin/module_apps_new_interface_controller.rb
index 404ac693..d9989fab 100644
--- a/app/controllers/admin/module_apps_new_interface_controller.rb
+++ b/app/controllers/admin/module_apps_new_interface_controller.rb
@@ -6,7 +6,7 @@ class Admin::ModuleAppsNewInterfaceController < OrbitBackendController
layout "new_admin"
def setting
- @sys_users = User.all(conditions: {admin: false})
+ @sys_users = User.all(conditions: {admin: false}).includes(:avatar)
@module_app = ModuleApp.find(params[:module_app_id])
@options_from_collection_for_select_bulletin_categorys = [@module_app].collect{|ma| [ma.title,ma.id] }
# if params.has_key? :category
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index e5d5e374..0ed5a1bd 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1,7 +1,7 @@
module ApplicationHelper
FLASH_NOTICE_KEYS = [:error, :notice, :warning]
-
+
def colorize_in_use_locale(locale)
@site_in_use_locales.include?(locale)? 'green' : 'red'
end
diff --git a/app/views/admin/module_apps_new_interface/_privilege_user.html.erb b/app/views/admin/module_apps_new_interface/_privilege_user.html.erb
deleted file mode 100644
index 90f5cb65..00000000
--- a/app/views/admin/module_apps_new_interface/_privilege_user.html.erb
+++ /dev/null
@@ -1,25 +0,0 @@
-<%= content_tag :div ,:id => "users_checkbox_ary",:class => 'clear' do -%>
- <% @sys_users.each do |sys_user| -%>
-
-
-
- <% sys_user.sub_roles.each do |sr| %>
-
<%= sr.key %>
- <% end %>
- <%= content_tag :div,:data=>{'original-title'=>t('announcement.bulletin.approval_setting_window_title'),:content => "#{sys_user.sub_roles.collect{|sr| sr.i18n_variable[I18n.locale]}.join(',')}"},:class=>"checkbox clear" do %>
-
-
-
- <% if sys_user.avatar? %>
- <%= image_tag(sys_user.avatar.thumb.url,:class => "member-img") %>
- <% else %>
- <%= image_tag "person.png",:class => "member-img" %>
- <% end %>
-
- <%= label_tag "lab-user-#{sys_user.id}", (sys_user.name rescue ''),:class=>"member-name",:id=>nil -%>
- <%= check_box_tag "[users][#{sys_user.id}]", 'true',users.include?(sys_user),:class => "check" -%>
- <%end -%>
-
-
- <% end -%>
-<% end -%>
\ No newline at end of file
diff --git a/app/views/admin/module_apps_new_interface/setting.html.erb b/app/views/admin/module_apps_new_interface/setting.html.erb
index 7d1179f0..d3d769b0 100644
--- a/app/views/admin/module_apps_new_interface/setting.html.erb
+++ b/app/views/admin/module_apps_new_interface/setting.html.erb
@@ -26,7 +26,7 @@
<%= content_tag :div do -%>
<% form_tag admin_module_app_manager_auth_proc_path do %>
- <%= render :partial => "privilege_user", :locals => {:users => @users_array} %>
+ <%= render :partial => "layouts/users_checkbox_ary" %>
diff --git a/app/views/admin/object_auths_new_interface/_privilege_user.html.erb b/app/views/admin/object_auths_new_interface/_privilege_user.html.erb
deleted file mode 100644
index 5d5f6e7f..00000000
--- a/app/views/admin/object_auths_new_interface/_privilege_user.html.erb
+++ /dev/null
@@ -1,20 +0,0 @@
-<%= content_tag :div ,:id => "users_checkbox_ary",:class => 'clear' do %>
- <% @sys_users.each do |sys_user| %>
-
-
<%= sys_user.cache_dept[I18n.locale.to_s] %>
- <%= content_tag :div,:data=>{'original-title'=>t('announcement.bulletin.approval_setting_window_title'),:content => sys_user.cache_dept[I18n.locale.to_s]},:class=>"checkbox clear" do %>
-
-
-
- <% if sys_user.avatar? %>
- <%= image_tag(sys_user.avatar.thumb.url,:class => "member-img") %>
- <% else %>
- <%= image_tag "person.png",:class => "member-img" %>
- <% end %>
-
- <%= label_tag "lab-user-#{sys_user.id}", (sys_user.name rescue ''),:class=>"member-name",:id=>nil -%>
- <%= check_box_tag "[users][#{sys_user.id}]", 'true',users.include?(sys_user),:class => "check" -%>
- <%end %>
-
- <% end %>
-<% end %>
\ No newline at end of file
diff --git a/app/views/admin/object_auths_new_interface/setting.html.erb b/app/views/admin/object_auths_new_interface/setting.html.erb
index f5d17370..e66330c7 100644
--- a/app/views/admin/object_auths_new_interface/setting.html.erb
+++ b/app/views/admin/object_auths_new_interface/setting.html.erb
@@ -27,8 +27,8 @@
<%= content_tag :div do -%>
<% form_tag admin_object_auth_ob_auth_path do %>
- <%= render :partial => "privilege_user", :locals => {:users => @users_array} %>
-