Skip to content

Commit 72ab4ba

Browse files
committed
fix comments
1 parent cc39ebf commit 72ab4ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

routers/web/repo/githttp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func httpBase(ctx *context.Context) *serviceHandler {
204204
return nil
205205
}
206206
if !exist {
207-
ctx.ServerError("Load task repository", errors.New("repo not found"))
207+
ctx.NotFound(errors.New("task repo not found"))
208208
return nil
209209
}
210210
actionsCfg := repo.MustGetUnit(ctx, unit.TypeActions).ActionsConfig()

templates/repo/settings/navbar.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
<details class="item toggleable-item" {{if or .PageIsSharedSettingsRunners .PageIsSharedSettingsSecrets .PageIsSharedSettingsVariables .PageIsActionsSettingsGeneral}}open{{end}}>
4343
<summary>{{ctx.Locale.Tr "actions.actions"}}</summary>
4444
<div class="menu">
45+
<a class="{{if .PageIsActionsSettingsGeneral}}active {{end}}item" href="{{.RepoLink}}/settings/actions/general">
46+
{{ctx.Locale.Tr "actions.general"}}
47+
</a>
4548
<a class="{{if .PageIsSharedSettingsRunners}}active {{end}}item" href="{{.RepoLink}}/settings/actions/runners">
4649
{{ctx.Locale.Tr "actions.runners"}}
4750
</a>
@@ -51,9 +54,6 @@
5154
<a class="{{if .PageIsSharedSettingsVariables}}active {{end}}item" href="{{.RepoLink}}/settings/actions/variables">
5255
{{ctx.Locale.Tr "actions.variables"}}
5356
</a>
54-
<a class="{{if .PageIsActionsSettingsGeneral}}active {{end}}item" href="{{.RepoLink}}/settings/actions/general">
55-
{{ctx.Locale.Tr "actions.general"}}
56-
</a>
5757
</div>
5858
</details>
5959
{{end}}

0 commit comments

Comments
 (0)