Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

No results template & image (#1263)

* Create no_results.jet.html

* no_results

* Delete Non Non Biyori Repeat - 10 [BDRip 1920x1080 x264 FLAC].mkv_snapshot_12.37_[2017.07.22_14.16.50].jpg

* Add files via upload

* Delete no_results.png.jpg

* Add files via upload

* Update en-us.all.json

* Update no_results.jet.html

* Update search.go
Cette révision appartient à :
kilo 2017-07-22 16:05:11 +02:00 révisé par akuma06
Parent 54b2813e3c
révision 3807c6937d
4 fichiers modifiés avec 14 ajouts et 1 suppressions

Voir le fichier

@ -50,7 +50,7 @@ func SearchHandler(c *gin.Context) {
maxPages := math.Ceil(float64(nbTorrents) / float64(searchParam.Max))
if pagenum > int(maxPages) {
c.AbortWithError(http.StatusNotFound, errors.New("Page superior to the maximum number of pages"))
templates.Static(c, "errors/no_results.jet.html")
return
}

BIN
public/img/no_results.jpg Fichier normal

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 84 KiB

Voir le fichier

@ -0,0 +1,9 @@
{{ extends "layouts/index_site" }}
{{block title()}}{{ T("err_no_results")}}{{end}}
{{block content_body()}}
<div style="text-align: center;">
<h1>{{ T("err_no_results")}}</h1>
<img src="/img/no_results.jpg" />
</div>
{{end}}
{{block mascot()}}<br>{{end}}

Voir le fichier

@ -195,6 +195,10 @@
"id": "error_500",
"translation": "Error 500"
},
{
"id": "err_no_results",
"translation": "No results found"
},
{
"id": "upload",
"translation": "Upload"