index.html.erb
上传用户:netsea168
上传日期:2022-07-22
资源大小:4652k
文件大小:1k
源码类别:

Ajax

开发平台:

Others

  1. <% @page_heading = _('Users')  %>
  2. <% @link_to_new = link_to(_("New User"), {:action => 'new'}, :id => 'dialog-link', :class => 'ui-state-default ui-corner-all') %>
  3. <% subtabs_for(:settings) %>
  4. <table>
  5.   <tr>
  6.     <th><%= _("Username") %></th>
  7.     <th><%= _("Name") %></th>
  8.     <th><%= _("Email") %></th>
  9.     <th><%= _("Profile") %></th>
  10.     <th><%= _("Articles") %></th>
  11.     <th><%= _("Comments") %></th>
  12.     <th><%= _("State") %></th>
  13.   </tr>
  14.   <% for user in @users -%>
  15.   <tr <%= alternate_class %>>
  16.     <td><%= link_to_edit user.login, user%></td>
  17.     <td> <%= user.name %></td>
  18.     <td><%= mail_to user.email, user.email%></td>
  19.     <td><%= _(user.profile.nicename) %></td>
  20.     <td><%= Article.count :conditions => "user_id = #{user.id}"  %></td>
  21.     <td><%= Comment.count :conditions => "user_id = #{user.id}"  %></td>
  22.     <td class='<%= user.state %>'><%= _("%s user", user.state)%></td>
  23.   </tr>  
  24.   <% end -%>
  25.   <%= display_pagination(@users, 7)%>
  26. </table>