diff --git a/options/locale/locale_ja-JP.ini b/options/locale/locale_ja-JP.ini index 606eea2016abf..e3b00a116159b 100644 --- a/options/locale/locale_ja-JP.ini +++ b/options/locale/locale_ja-JP.ini @@ -1621,6 +1621,8 @@ activity.git_stats_and_deletions=、 activity.git_stats_deletion_1=%d行削除 activity.git_stats_deletion_n=%d行削除 +actions=Actions + search=検索 search.search_repo=リポジトリを検索 search.fuzzy=あいまい diff --git a/routers/web/repo/actions.go b/routers/web/repo/actions.go new file mode 100644 index 0000000000000..b6459bf06b880 --- /dev/null +++ b/routers/web/repo/actions.go @@ -0,0 +1,26 @@ +// Copyright 2017 The Gitea Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package repo + +import ( + "net/http" + + "code.gitea.io/gitea/modules/base" + "code.gitea.io/gitea/modules/context" +) + +const ( + tplActions base.TplName = "repo/actions" +) + +// Actions Github Actions for gitea +func Actions(ctx *context.Context) { + /*ctx.Data["Title"] = ctx.Tr("repo.activity") + ctx.Data["PageIsActivity"] = true + + ctx.Data["Period"] = ctx.Params("period")*/ + + ctx.HTML(http.StatusOK, tplActions) +} diff --git a/routers/web/web.go b/routers/web/web.go index caec0676714c4..b5cedd3ffc534 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -918,6 +918,10 @@ func RegisterRoutes(m *web.Route) { m.Get("/{period}", repo.Activity) }, context.RepoRef(), repo.MustBeNotEmpty, context.RequireRepoReaderOr(models.UnitTypePullRequests, models.UnitTypeIssues, models.UnitTypeReleases)) + m.Group("/actions", func() { + m.Get("", repo.Actions) + }, context.RepoRef(), repo.MustBeNotEmpty) + m.Group("/activity_author_data", func() { m.Get("", repo.ActivityAuthors) m.Get("/{period}", repo.ActivityAuthors) diff --git a/templates/repo/actions.tmpl b/templates/repo/actions.tmpl new file mode 100644 index 0000000000000..db9e310679c8a --- /dev/null +++ b/templates/repo/actions.tmpl @@ -0,0 +1,271 @@ +{{template "base/head" .}} +
+ {{template "repo/header" .}} +
+ + + +
+
+ + + + + +
+{{template "base/footer" .}} diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 49a651e6c5a86..74b0a048fe7ad 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -162,6 +162,10 @@ {{end}} + + {{svg "octicon-pulse"}} {{.i18n.Tr "repo.actions"}} + + {{template "custom/extra_tabs" .}} {{if .Permission.IsAdmin}}