index.html.erb
上传用户:netsea168
上传日期:2022-07-22
资源大小:4652k
文件大小:1k
- <% @page_heading = _('Users') %>
- <% @link_to_new = link_to(_("New User"), {:action => 'new'}, :id => 'dialog-link', :class => 'ui-state-default ui-corner-all') %>
- <% subtabs_for(:settings) %>
- <table>
- <tr>
- <th><%= _("Username") %></th>
- <th><%= _("Name") %></th>
- <th><%= _("Email") %></th>
- <th><%= _("Profile") %></th>
- <th><%= _("Articles") %></th>
- <th><%= _("Comments") %></th>
- <th><%= _("State") %></th>
- </tr>
- <% for user in @users -%>
- <tr <%= alternate_class %>>
- <td><%= link_to_edit user.login, user%></td>
- <td> <%= user.name %></td>
- <td><%= mail_to user.email, user.email%></td>
- <td><%= _(user.profile.nicename) %></td>
- <td><%= Article.count :conditions => "user_id = #{user.id}" %></td>
- <td><%= Comment.count :conditions => "user_id = #{user.id}" %></td>
- <td class='<%= user.state %>'><%= _("%s user", user.state)%></td>
- </tr>
- <% end -%>
- <%= display_pagination(@users, 7)%>
- </table>