Show refine constantly in no results page (#1675)
* Update search.jet.html * show refine constantly in "no results" page * no results page is now a box * remove useless class
Cette révision appartient à :
Parent
2dc84d03ca
révision
c791e3bc08
3 fichiers modifiés avec 3 ajouts et 3 suppressions
|
@ -75,7 +75,7 @@ func SearchHandler(c *gin.Context) {
|
|||
|
||||
searchForm.TorrentParam, searchForm.Category = searchParam, category
|
||||
|
||||
if c.Query("refine") == "1" {
|
||||
if c.Query("refine") == "1" || nbTorrents == 0 {
|
||||
searchForm.ShowRefine = true
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{ extends "layouts/index_site" }}
|
||||
{{block title()}}{{ T("err_no_results")}}{{end}}
|
||||
{{block content_body()}}
|
||||
<div style="text-align: center;">
|
||||
<div style="text-align: center;border-top: none;" class="box">
|
||||
<h1>{{ T("err_no_results")}}</h1>
|
||||
<img src="/img/no_results.jpg" alt="no results"/>
|
||||
</div>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<button type="submit" class="form-input icon-search"></button><button type="submit" class="form-input refine" name="refine" value="1">{{ T("refine")}}</button>
|
||||
{{end}}
|
||||
{{block search_refine(url="") }}
|
||||
<div {{ if !Search.ShowRefine }}style="display: none;"{{end}} class="box refine">
|
||||
<div class="box refine" {{ if !Search.ShowRefine }}style="display: none;"{{end}}>
|
||||
<form method="GET" action="{{ url }}">
|
||||
<h3>{{ T("refine_search") }}</h3>
|
||||
<div>
|
||||
|
|
Référencer dans un nouveau ticket