Sha256: 9b7c96c9a3e64e19539148c33b42a5967756541477b746524b9f966933cf51c4
Contents?: true
Size: 1.47 KB
Versions: 2
Compression:
Stored size: 1.47 KB
Contents
<% output = { :sEcho => params[:sEcho], :iTotalRecords => @users.total_entries || 0, :iTotalDisplayRecords => @users.size, :aaData => @users.collect do |user| klass = user.active? ? 'see-on' : 'see-off' table = [ content_tag(:div, tag(:div, :class=>'handler') + tag(:div, :class => 'small-icons user-ico'), :id => polymorphic_html_id(user), :class => 'handler_container'), content_tag(:div, (params[:mode] == 'selection' ? user.fullname : link_to(user.fullname, [forgeos_core, :admin, user])), :class => 'user-name'), content_tag(:div, (params[:mode] == 'selection' ? user.email : mail_to(user.email, user.email, :class => 'truncate', :title => user.email)), :class => 'email'), ] unless params[:mode] == 'selection' table << link_to('', [forgeos_core, :activate, :admin, user], :remote => true, :method => :post, :class => "small-icons #{klass}", :id => polymorphic_html_id(user, 'show') ) << link_to('', [forgeos_core, :edit, :admin, user], :class => 'small-icons edit-link') + link_to('', [forgeos_core, :admin, user], :remote => true, :method => :delete, :confirm => I18n.t('user.destroy.confirm').capitalize, :class => 'small-icons destroy-link', :id => polymorphic_html_id(user, 'destroy') ) else table << user.id end table end } -%> <%= raw output.to_json -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
forgeos_core-1.9.5.rc2 | app/views/admin/users/index.json.erb |
forgeos_core-1.9.5.rc1 | app/views/admin/users/index.json.erb |