]> source.dussan.org Git - gitea.git/commitdiff
Improve 404 error message (#10214)
authorguillep2k <18600385+guillep2k@users.noreply.github.com>
Mon, 10 Feb 2020 19:23:35 +0000 (16:23 -0300)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2020 19:23:35 +0000 (21:23 +0200)
options/locale/locale_en-US.ini
templates/status/404.tmpl

index 2f7e0acb63520ed1c9dd85bbb4f1141a0c705624..8cd76ad2be07b811adf82a1089b457ee5b07569e 100644 (file)
@@ -79,6 +79,8 @@ write = Write
 preview = Preview
 loading = Loading…
 
+error404 = The page you are trying to reach either <strong>does not exist</strong> or <strong>you are not authorized</strong> to view it.
+
 [startpage]
 app_desc = A painless, self-hosted Git service
 install = Easy to install
index f947602bf2c9db2b0aa44087bdfb6f85e95ddb81..699280311307056fb2f3e63bb3adbf68f8128e2c 100644 (file)
@@ -4,6 +4,7 @@
        <p style="margin-top: 100px"><img src="{{StaticUrlPrefix}}/img/404.png" alt="404"/></p>
        <div class="ui divider"></div>
        <br>
+       <p>{{.i18n.Tr "error404" | Safe}}
        {{if .ShowFooterVersion}}<p>Application Version: {{AppVer}}</p>{{end}}
 </div>
 {{template "base/footer" .}}