|
|
|
@@ -1,14 +1,14 @@ |
|
|
|
<table class="table table-hover users-list-table"> |
|
|
|
<thead class="thead-light"> |
|
|
|
<tr> |
|
|
|
<th width="4%">序号</th> |
|
|
|
<th width="4%">ID</th> |
|
|
|
<th width="5%">序号</th> |
|
|
|
<th width="8%" class="text-left">login</th> |
|
|
|
<th width="8%" class="text-left">昵称</th> |
|
|
|
<th width="10%"><%= sort_tag('创建于', name: 'created_on', path: admins_organizations_path) %></th> |
|
|
|
<th width="10%"><%= sort_tag('最后登录', name: 'last_login_on', path: admins_organizations_path) %></th> |
|
|
|
<th width="12%">项目数</th> |
|
|
|
<th width="14%">操作</th> |
|
|
|
<th width="10%" class="text-left">昵称</th> |
|
|
|
<th width="15%"><%= sort_tag('创建于', name: 'created_on', path: admins_organizations_path) %></th> |
|
|
|
<th width="8%" >团队</th> |
|
|
|
<th width="8%" >成员</th> |
|
|
|
<th width="8%">项目数</th> |
|
|
|
<th width="10%">操作</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
@@ -16,7 +16,6 @@ |
|
|
|
<% organizations.each_with_index do |org, index| %> |
|
|
|
<tr class="org-item-<%= org.id %>"> |
|
|
|
<td><%= list_index_no((params[:page] || 1).to_i, index) %></td> |
|
|
|
<td><%= org.id %></td> |
|
|
|
<td class="text-left"> |
|
|
|
<%= link_to "/#{org.login}", target: '_blank' do %> |
|
|
|
<%= overflow_hidden_span org.login, width: 100 %> |
|
|
|
@@ -24,7 +23,8 @@ |
|
|
|
</td> |
|
|
|
<td><%= org.nickname %> </td> |
|
|
|
<td><%= display_text(org.created_on&.strftime('%Y-%m-%d %H:%M')) %></td> |
|
|
|
<td><%= display_text(org.last_login_on&.strftime('%Y-%m-%d %H:%M')) %></td> |
|
|
|
<td><%= link_to org.teams_count, "/#{org.login}", target: "_blank" %></td> |
|
|
|
<td><%= link_to org.organization_users_count, "/#{org.login}", target: "_blank" %></td> |
|
|
|
<td><%= link_to org.projects_count, "/#{org.login}", target: "_blank" %></td> |
|
|
|
<td class="action-container"> |
|
|
|
<%= link_to '查看', admins_organization_path(org), class: 'action' %> |
|
|
|
|