{{.Body}}
{{if and $.CanApply .HasSuggestion}}{{end}}
{{define "mrs"}}
{{template "layout-start" .}}
{{t "mr.title"}}
{{.MR.Status}} {{.MR.SourceBranch}} → {{.MR.TargetBranch}} · {{.MR.Author}}
{{if .MR.Description}}{{.MR.Description}}{{end}}
{{t "mr.noPipeline"}}
{{end}}{{if .Diff}}{{.Diff}}{{else}}{{t "mr.noDiff"}}{{end}}
{{range .MergeBlocks}}{{.}}
{{end}} {{if .CanMerge}} {{end}} {{if .CanClose}} {{end}} {{if .CanReopen}} {{end}}{{.Text}}
{{.Body}}
{{if and $.CanApply .HasSuggestion}}{{end}}
{{t "mr.noDiff"}}
{{end}} {{if .CanComment}} {{end}}{{.Body}}{{t "pipe.title"}} {{t "edit.title"}}
{{end}} {{define "pipelines"}} {{template "layout-start" .}}| {{t "pipe.col.status"}} | {{t "pipe.col.pipeline"}} | {{t "pipe.col.by"}} | {{t "pipe.col.stages"}} |
|---|---|---|---|
|
{{.Label}}
{{.Duration}}
{{.When}}
|
#{{.ID}}
{{if .Title}}{{end}}
{{if .Ref}}{{.Ref}}{{end}}
{{if .Short}}{{.Short}}{{end}}
{{if .Actor}}{{if .Avatar}}
|
{{if .Actor}}{{if .Avatar}} |
{{range .Stages}}
{{t "pipe.stage"}}: {{.Name}}
{{end}}
|
| {{t "pipe.none"}} | |||
{{.Pipe.Status}} {{.Pipe.Ref}} {{.Pipe.CommitSHA}}
{{t "pipe.runningOn" .RunnerName}}
{{.Label}} {{t "pipe.started"}} {{.When}} {{t "pipe.by"}} {{if .Avatar}}{{else if .Actor}}{{.Initial}}{{end}} {{.Actor}}
{{t "pipe.runningOn" $.RunnerName}}
{{t "pipe.utc"}}
{{range .Blocks}}{{if .Section}}{{range .Spans}}{{if .Class}}{{.Text}}{{else}}{{.Text}}{{end}}{{end}}{{range .Spans}}{{if .Class}}{{.Text}}{{else}}{{.Text}}{{end}}{{end}}{{t "pipe.emptyLog"}}
{{end}}{{short .CommitSHA}}
{{if .Body}}{{.Body}}{{end}}
{{t "rel.none"}}
{{end}} {{template "layout-end" .}} {{end}} {{define "approvalform"}} {{if .Approval}} {{if .Approval.Warn}}{{.Approval.WarnText}}
{{end}} {{if .Approval.Locked}}{{t "appr.locked"}} {{.Approval.GroupPath}}
{{t "appr.required"}}: {{if .Approval.MaintainerRequired}}{{t "appr.on"}}{{else}}{{t "appr.off"}}{{end}}
{{t "appr.count"}}: {{.Approval.RequiredCount}}
{{t "appr.developers"}}: {{if .Approval.DevelopersApprove}}{{t "appr.on"}}{{else}}{{t "appr.off"}}{{end}}
{{t "set.onlyAdmin" (roleName .Role)}}
{{end}} {{if .CanAdmin}}{{t "set.general"}} {{t "set.members"}} {{t "set.branches"}} {{t "set.tags"}} {{t "set.secrets"}} {{t "set.webhooks"}} {{t "appr.tab"}}
{{if eq .Tab "members"}}{{.}}
{{t "set.protectHint"}}
{{else if eq .Tab "tags"}}{{.}}
{{t "set.tagHint"}}
{{else if eq .Tab "secrets"}}{{.Name}} {{if .Protected}}{{t "vis.protected"}}{{end}}
{{t "set.valuesHidden"}}
{{else if eq .Tab "webhooks"}} {{template "webhookform" .}} {{else if eq .Tab "approvals"}} {{template "approvalform" .}} {{else}} {{end}} {{end}} {{template "layout-end" .}} {{end}} {{define "webhookform"}}{{.Group.Description}}
{{end}}{{end}} {{if eq .Tab "members"}} {{if .CanAdmin}} {{end}}{{.Name}}
{{t "set.valuesHidden"}}
{{if .IsOwner}}{{t "own.needMember"}}
{{end}} {{end}}{{t "group.secretsNote"}}
{{template "webhookform" .}} {{else}} {{if .Heat}}{{template "heatmap" .Heat}}{{end}}