summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguillep2k <18600385+guillep2k@users.noreply.github.com>2020-02-10 16:23:35 -0300
committerGitHub <noreply@github.com>2020-02-10 21:23:35 +0200
commit069a96ebe2beb629fe1b44617de97c179f916143 (patch)
tree6db19a85635270ed86b6267bea63d55e1b8da771
parentb5418a64430dcd7c4ca26945d73a217ce167f62b (diff)
downloadgitea-069a96ebe2beb629fe1b44617de97c179f916143.tar.gz
gitea-069a96ebe2beb629fe1b44617de97c179f916143.zip
Improve 404 error message (#10214)
-rw-r--r--options/locale/locale_en-US.ini2
-rw-r--r--templates/status/404.tmpl1
2 files changed, 3 insertions, 0 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 2f7e0acb63..8cd76ad2be 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -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
diff --git a/templates/status/404.tmpl b/templates/status/404.tmpl
index f947602bf2..6992803113 100644
--- a/templates/status/404.tmpl
+++ b/templates/status/404.tmpl
@@ -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" .}}