Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Fix broken images on search page due to relative URL

Cette révision appartient à :
sfan5 2017-06-26 01:01:21 +02:00
Parent dd5b2fdef3
révision 279e457def

Voir le fichier

@ -56,7 +56,7 @@
{{end}}
<a href="{{$.URL.Parse (printf "/search?c=%s_%s" .Category .SubCategory) }}" title="{{ call $.T (CategoryName .Category .SubCategory) }}">
{{if ne (FlagCode .Language) ""}}
<img src="img/blank.gif" alt="{{ LanguageName .Language $.T }}" class="flag flag-{{FlagCode .Language}}" title="{{ LanguageName .Language $.T }}">
<img src="/img/blank.gif" alt="{{ LanguageName .Language $.T }}" class="flag flag-{{FlagCode .Language}}" title="{{ LanguageName .Language $.T }}">
{{end}}
</a>
</div>
@ -241,7 +241,7 @@
"<div class=\"nyaa-cat nyaa-cat-"+ torrent.sub_category +"\">"+
{{end}}
"<a href=\"{{$.URL.Parse "/search?c=" }}"+ torrent.category + "_" + torrent.sub_category +"\" title=\""+ torrent.CategoryName +"\">"+
((torrent.language != "") ? "<img src=\"img/blank.gif\" class=\"flag flag-"+flagCode(torrent.language)+"\">" : "") +
((torrent.language != "") ? "<img src=\"/img/blank.gif\" class=\"flag flag-"+flagCode(torrent.language)+"\">" : "") +
"</a>"+
"</div></td>"+
"<td class=\"tr-name home-td\"><a href=\"/view/"+torrent.id+"\">"+Templates.EncodeEntities(torrent.name) +"</a></td>"+