mirror of
https://github.com/go-gitea/gitea.git
synced 2025-05-18 00:49:09 -04:00
current page
This commit is contained in:
parent
e28c95ea5c
commit
e5b835cf52
@ -39,7 +39,7 @@ func MustEnableBuilds(ctx *context.Context) {
|
|||||||
|
|
||||||
func List(ctx *context.Context) {
|
func List(ctx *context.Context) {
|
||||||
ctx.Data["Title"] = ctx.Tr("repo.builds")
|
ctx.Data["Title"] = ctx.Tr("repo.builds")
|
||||||
ctx.Data["PageIsBuildList"] = true
|
ctx.Data["PageIsBuilds"] = true
|
||||||
|
|
||||||
defaultBranch, err := ctx.Repo.GitRepo.GetDefaultBranch()
|
defaultBranch, err := ctx.Repo.GitRepo.GetDefaultBranch()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -13,6 +13,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func View(ctx *context.Context) {
|
func View(ctx *context.Context) {
|
||||||
|
ctx.Data["PageIsBuilds"] = true
|
||||||
runIndex := ctx.ParamsInt64("run")
|
runIndex := ctx.ParamsInt64("run")
|
||||||
jobIndex := ctx.ParamsInt64("job")
|
jobIndex := ctx.ParamsInt64("job")
|
||||||
ctx.Data["RunIndex"] = runIndex
|
ctx.Data["RunIndex"] = runIndex
|
||||||
|
@ -184,7 +184,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{ if and (not .UnitBuildsGlobalDisabled) (.Permission.CanRead $.UnitTypeBuilds)}}
|
{{ if and (not .UnitBuildsGlobalDisabled) (.Permission.CanRead $.UnitTypeBuilds)}}
|
||||||
<a class="{{if .PageIsBuildList}}active{{end}} item" href="{{.RepoLink}}/builds">
|
<a class="{{if .PageIsBuilds}}active{{end}} item" href="{{.RepoLink}}/builds">
|
||||||
{{svg "octicon-play"}} {{.locale.Tr "repo.builds"}}
|
{{svg "octicon-play"}} {{.locale.Tr "repo.builds"}}
|
||||||
{{if .Repository.NumOpenRuns}}
|
{{if .Repository.NumOpenRuns}}
|
||||||
<span class="ui blue small label">{{CountFmt .Repository.NumOpenRuns}}</span>
|
<span class="ui blue small label">{{CountFmt .Repository.NumOpenRuns}}</span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user