diff options
author | Lauris BH <lauris@nix.lv> | 2017-10-15 02:17:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-15 02:17:39 +0300 |
commit | f42dbdbae59600266d03357f9693c659adc9cab3 (patch) | |
tree | 90b42df32a5f064d9055fec37c909aa83c432dcc /routers/routes | |
parent | 8863e74f2aa7150605712eb21468b6f1305289f7 (diff) | |
download | gitea-f42dbdbae59600266d03357f9693c659adc9cab3.tar.gz gitea-f42dbdbae59600266d03357f9693c659adc9cab3.zip |
Add Activity page to repository (#2674)
* Add Activity page to repository
* Add request data for activity
* Add issue data for activity
* Add user unit right checks
* Add releases to activity
* Log repository unit loading error
Diffstat (limited to 'routers/routes')
-rw-r--r-- | routers/routes/routes.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 8875fa47bf..e6079445bb 100644 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -613,6 +613,11 @@ func RegisterRoutes(m *macaron.Macaron) { m.Get("/*", repo.WikiRaw) }, repo.MustEnableWiki) + m.Group("/activity", func() { + m.Get("", repo.Activity) + m.Get("/:period", repo.Activity) + }, context.RepoRef(), repo.MustBeNotBare, context.CheckAnyUnit(models.UnitTypePullRequests, models.UnitTypeIssues, models.UnitTypeReleases)) + m.Get("/archive/*", repo.MustBeNotBare, context.CheckUnit(models.UnitTypeCode), repo.Download) m.Group("/pulls/:index", func() { |