Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Renamed CategoryID to CategoryName

Cette révision appartient à :
ElegantMonkey 2017-05-22 15:18:29 -03:00
Parent 331143e094
révision aa14a0535b
4 fichiers modifiés avec 9 ajouts et 9 suppressions

Voir le fichier

@ -162,7 +162,7 @@ var FuncMap = template.FuncMap{
// because time.* isn't available in templates...
return t.Format(time.RFC3339)
},
"CategoryID": func(category string, sub_category string) string {
"CategoryName": func(category string, sub_category string) string {
s := category + "_" + sub_category
if category, ok := categories.GetCategories()[s]; ok {

Voir le fichier

@ -21,9 +21,9 @@
<td style="width:80px">
<a href="{{$.URL.Parse (printf "/search?c=%s_%s" .Category .SubCategory) }}">
{{ if Sukebei }}
<img src="{{$.URL.Parse (printf "/img/torrents/sukebei/%s%s.png" .Category .SubCategory) }}" title="{{ call $.T (CategoryID .Category .SubCategory) }}">
<img src="{{$.URL.Parse (printf "/img/torrents/sukebei/%s%s.png" .Category .SubCategory) }}" title="{{ call $.T (CategoryName .Category .SubCategory) }}">
{{ else }}
<img src="{{$.URL.Parse (printf "/img/torrents/%s.png" .SubCategory) }}" title="{{ call $.T (CategoryID .Category .SubCategory) }}">
<img src="{{$.URL.Parse (printf "/img/torrents/%s.png" .SubCategory) }}" title="{{ call $.T (CategoryName .Category .SubCategory) }}">
{{ end}}
</a>
</td>

Voir le fichier

@ -47,9 +47,9 @@ Your browser does not support the audio element.
<td class="hidden-xs" style="width:80px">
<a href="{{$.URL.Parse (printf "/search?c=%s_%s" .Category .SubCategory) }}">
{{ if Sukebei }}
<img src="{{$.URL.Parse (printf "/img/torrents/sukebei/%s%s.png" .Category .SubCategory) }}" title="{{ call $.T (CategoryID .Category .SubCategory) }}">
<img src="{{$.URL.Parse (printf "/img/torrents/sukebei/%s%s.png" .Category .SubCategory) }}" title="{{ call $.T (CategoryName .Category .SubCategory) }}">
{{ else }}
<img src="{{$.URL.Parse (printf "/img/torrents/%s.png" .SubCategory) }}" title="{{ call $.T (CategoryID .Category .SubCategory) }}">
<img src="{{$.URL.Parse (printf "/img/torrents/%s.png" .SubCategory) }}" title="{{ call $.T (CategoryName .Category .SubCategory) }}">
{{ end}}
</a>
</td>

Voir le fichier

@ -22,11 +22,11 @@
<div class="col-md-12">
<div style="float: left;">
{{ if Sukebei }}
<img style="float:left; margin-right: 1em;" src="{{$.URL.Parse (printf "/img/torrents/sukebei/%s%s.png" .Category .SubCategory) }}" title="{{ call $.T (CategoryID .Category .SubCategory) }}">
<span style="vertical-align:middle;font-size:large;">{{ call $.T (CategoryID .Category .SubCategory) }}</span>
<img style="float:left; margin-right: 1em;" src="{{$.URL.Parse (printf "/img/torrents/sukebei/%s%s.png" .Category .SubCategory) }}" title="{{ call $.T (CategoryName .Category .SubCategory) }}">
<span style="vertical-align:middle;font-size:large;">{{ call $.T (CategoryName .Category .SubCategory) }}</span>
{{ else }}
<img style="float:left; margin-right: 1em;" src="{{$.URL.Parse (printf "/img/torrents/%s.png" .SubCategory) }}" title="{{ call $.T (CategoryID .Category .SubCategory) }}">
<span style="vertical-align:middle;font-size:large;">{{ call $.T (CategoryID .Category .SubCategory) }}</span>
<img style="float:left; margin-right: 1em;" src="{{$.URL.Parse (printf "/img/torrents/%s.png" .SubCategory) }}" title="{{ call $.T (CategoryName .Category .SubCategory) }}">
<span style="vertical-align:middle;font-size:large;">{{ call $.T (CategoryName .Category .SubCategory) }}</span>
{{ end }}
<br />
<h4 style="display:inline-block">