aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2020-01-20 12:07:30 +0200
committerGitHub <noreply@github.com>2020-01-20 12:07:30 +0200
commit81cfe243f9cb90b0a75de7a03bb2d264c97f0036 (patch)
tree0b98db10d626eff18384ad460ec04e2a6da61468 /routers/repo
parent7d7ab1eeae43d99fe329878ac9c8db5e45e2dee5 (diff)
downloadgitea-81cfe243f9cb90b0a75de7a03bb2d264c97f0036.tar.gz
gitea-81cfe243f9cb90b0a75de7a03bb2d264c97f0036.zip
Add top author stats to activity page (#9615)
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/activity.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/routers/repo/activity.go b/routers/repo/activity.go
index 0b57d09685..88c704b8cc 100644
--- a/routers/repo/activity.go
+++ b/routers/repo/activity.go
@@ -59,6 +59,11 @@ func Activity(ctx *context.Context) {
return
}
+ if ctx.Data["ActivityTopAuthors"], err = models.GetActivityStatsTopAuthors(ctx.Repo.Repository, timeFrom, 10); err != nil {
+ ctx.ServerError("GetActivityStatsTopAuthors", err)
+ return
+ }
+
ctx.HTML(200, tplActivity)
}