浏览代码

Add stars to admin panel repo list

NumStars were removed from the repository list in the admin panel but
the table header was never removed which made the table look broken.
Stars are back now, so bringing back the number.
Achilleas Koutsou 4 年之前
父节点
当前提交
e5818e3ff9
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 2
      internal/assets/templates/templates_gen.go
  2. 1 0
      templates/admin/repo/list.tmpl

文件差异内容过多而无法显示
+ 2 - 2
internal/assets/templates/templates_gen.go


+ 1 - 0
templates/admin/repo/list.tmpl

@@ -35,6 +35,7 @@
 									<td><a href="{{AppSubURL}}/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a></td>
 									<td><a href="{{AppSubURL}}/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a></td>
 									<td><i class="fa fa{{if .IsPrivate}}-check{{end}}-square-o"></i></td>
 									<td><i class="fa fa{{if .IsPrivate}}-check{{end}}-square-o"></i></td>
 									<td>{{.NumWatches}}</td>
 									<td>{{.NumWatches}}</td>
+									<td>{{.NumStars}}</td>
 									<td>{{.NumIssues}}</td>
 									<td>{{.NumIssues}}</td>
 									<td>{{.Size | FileSize}}</td>
 									<td>{{.Size | FileSize}}</td>
 									<td><span title="{{DateFmtLong .Created}}">{{DateFmtShort .Created}}</span></td>
 									<td><span title="{{DateFmtLong .Created}}">{{DateFmtShort .Created}}</span></td>

部分文件因为文件数量过多而无法显示