forked from Gitlink/forgeplus
add admin project 提交数
This commit is contained in:
parent
10c97c67ab
commit
14c7122308
|
@ -1,6 +1,6 @@
|
|||
wb = xlsx_package.workbook
|
||||
wb.add_worksheet(name: '项目列表') do |sheet|
|
||||
sheet.add_row %w(序号 项目名称 是否为公开 项目类别 项目性质(原创/Fork) issue数 PR接受数 PR拒绝数 里程碑数 成员数 发布版本数量 关注数 点赞数 fork数 管理员 创建时间 项目地址)
|
||||
sheet.add_row %w(序号 项目名称 是否为公开 项目类别 项目性质(原创/Fork) issue数 PR接受数 PR拒绝数 里程碑数 成员数 发布版本数量 关注数 点赞数 fork数 平台内提交数 管理员 创建时间 项目地址)
|
||||
|
||||
@projects.each_with_index do |project, index|
|
||||
data = [
|
||||
|
@ -18,6 +18,7 @@ wb.add_worksheet(name: '项目列表') do |sheet|
|
|||
project.watchers_count,
|
||||
project.praises_count,
|
||||
project.forked_count,
|
||||
project.commit_logs.count,
|
||||
project.owner&.real_name,
|
||||
project.created_on&.strftime('%Y-%m-%d %H:%M'),
|
||||
"#{@domain_url}/#{project.owner.login}/#{project.identifier}",
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<th width="5%">Pulls</th>
|
||||
<th width="6%">关注数</th>
|
||||
<th width="6%">点赞数</th>
|
||||
<th width="6%">平台内提交数</th>
|
||||
<th width="6%">里程碑</th>
|
||||
<th width="5%">成员</th>
|
||||
<th width="10%">管理员</th>
|
||||
|
@ -36,6 +37,7 @@
|
|||
<td><%= project&.issues.issue_pull_request.count %></td>
|
||||
<td><%= project&.watchers_count %></td>
|
||||
<td><%= project&.praises_count %></td>
|
||||
<td><%= project&.commit_logs.count %></td>
|
||||
<td><%= project.versions.size %></td>
|
||||
<td><%= project.members.size %></td>
|
||||
<td>
|
||||
|
|
Loading…
Reference in New Issue