<% if projects.present? %> <% projects.each_with_index do |project, index| %> <% end %> <% else %> <%= render 'admins/shared/no_data_for_table' %> <% end %>
序号 ID 项目名称 公开 issue 资源 版本库 PullRequest 里程碑 成员 管理员 <%= sort_tag('创建时间', name: 'created_at', path: admins_projects_path) %> 操作
<%= list_index_no((params[:page] || 1).to_i, index) %> <%= project.id %> <%= link_to(project.name, "/projects/#{project.id}", target: '_blank') %> <%= project.is_public ? '√' : '' %> <%= project.issues.size %> <%= project.attachments.size %> <%= project.project_score.try(:changeset_num).to_i %> <%= project.project_score.try(:pull_request_num).to_i %> <%= project.versions.size %> <%= project.members.size %> <%= project.owner ? link_to(project.owner&.real_name, "/users/#{project.owner&.login}", target: '_blank') : "" %> <%= project.created_on&.strftime('%Y-%m-%d %H:%M') %> <%= delete_link '删除', admins_project_path(project, element: ".project-item-#{project.id}"), class: 'delete-project-action' %>
<%= render partial: 'admins/shared/paginate', locals: { objects: projects } %>