Skip to content

Commit 4f10f70

Browse files
committed
improve
1 parent 514f5f6 commit 4f10f70

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

modules/context/context_response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (ctx *Context) notFoundInternal(logMsg string, logErr error) {
139139
ctx.Data["Title"] = "Page Not Found"
140140

141141
if git.IsErrNotExist(logErr) {
142-
ctx.Data["NotFoundPrompt"] = ctx.Locale.Tr("repo.tree_not_found", ctx.Repo.BranchName, ctx.Repo.Repository.Name, ctx.Repo.TreePath)
142+
ctx.Data["NotFoundPrompt"] = ctx.Locale.Tr("repo.tree_path_not_found", ctx.Repo.BranchName, ctx.Repo.Repository.Name, ctx.Repo.TreePath)
143143
ctx.Data["NotFoundGoBackURL"] = ctx.Repo.RepoLink + "/src/branch/" + url.PathEscape(ctx.Repo.BranchName)
144144
}
145145
ctx.HTML(http.StatusNotFound, base.TplName("status/404"))

options/locale/locale_en-US.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ step2 = Step 2:
112112

113113
error = Error
114114
error404 = The page you are trying to reach either <strong>does not exist</strong> or <strong>you are not authorized</strong> to view it.
115-
back = Back
115+
go_back = Go Back
116116

117117
never = Never
118118
unknown = Unknown

templates/status/404.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="ui container center">
55
<p style="margin-top: 100px"><img src="{{AssetUrlPrefix}}/img/404.png" alt="404"></p>
66
<p>{{if .NotFoundPrompt}}{{.NotFoundPrompt}}{{else}}{{.locale.Tr "error404" | Safe}}{{end}}</p>
7-
{{if .NotFoundGoBackURL}}<a class="ui button green" href="{{.NotFoundGoBackURL}}">{{.locale.Tr "back"}}</a>{{end}}
7+
{{if .NotFoundGoBackURL}}<a class="ui button green" href="{{.NotFoundGoBackURL}}">{{.locale.Tr "go_back"}}</a>{{end}}
88

99
<div class="divider"></div>
1010
<br>

0 commit comments

Comments
 (0)