Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve 404 error message #10214

Merged
merged 1 commit into from
Feb 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions options/locale/locale_en-US.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions templates/status/404.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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" .}}