Sha256: c3e8eb0184be9513cf8850081d10c0bf3e4724e41cd5c2864aeea28809be4e3f
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 KB
Contents
<% output = { :sEcho => params[:sEcho], :iTotalRecords => @users.total_entries || 0, :iTotalDisplayRecords => @users.size, :aaData => @users.collect do |user| link_id = "user_#{user.id}" klass = user.active? ? 'see-on' : 'see-off' table = [ content_tag(:div, tag(:div, :class=>'handler') + tag(:div, :class => 'small-icons user-ico'), :id => link_id, :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 => "show_#{link_id}" ) << 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 => "destroy_#{link_id}" ) 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.4 | app/views/admin/users/index.json.erb |
forgeos_core-1.9.3 | app/views/admin/users/index.json.erb |