Parcourir la source

Improve 404 error message (#10214)

tags/v1.10.5
guillep2k il y a 4 ans
Parent
révision
069a96ebe2
Aucun compte lié à l'adresse e-mail de l'auteur
2 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 2
    0
      options/locale/locale_en-US.ini
  2. 1
    0
      templates/status/404.tmpl

+ 2
- 0
options/locale/locale_en-US.ini Voir le fichier

@@ -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

+ 1
- 0
templates/status/404.tmpl Voir le fichier

@@ -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" .}}

Chargement…
Annuler
Enregistrer