Renamed CategoryID to CategoryName
Cette révision appartient à :
Parent
331143e094
révision
aa14a0535b
|
@ -162,7 +162,7 @@ var FuncMap = template.FuncMap{
|
||||||
// because time.* isn't available in templates...
|
// because time.* isn't available in templates...
|
||||||
return t.Format(time.RFC3339)
|
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
|
s := category + "_" + sub_category
|
||||||
|
|
||||||
if category, ok := categories.GetCategories()[s]; ok {
|
if category, ok := categories.GetCategories()[s]; ok {
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
<td style="width:80px">
|
<td style="width:80px">
|
||||||
<a href="{{$.URL.Parse (printf "/search?c=%s_%s" .Category .SubCategory) }}">
|
<a href="{{$.URL.Parse (printf "/search?c=%s_%s" .Category .SubCategory) }}">
|
||||||
{{ if Sukebei }}
|
{{ 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 }}
|
{{ 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}}
|
{{ end}}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -47,9 +47,9 @@ Your browser does not support the audio element.
|
||||||
<td class="hidden-xs" style="width:80px">
|
<td class="hidden-xs" style="width:80px">
|
||||||
<a href="{{$.URL.Parse (printf "/search?c=%s_%s" .Category .SubCategory) }}">
|
<a href="{{$.URL.Parse (printf "/search?c=%s_%s" .Category .SubCategory) }}">
|
||||||
{{ if Sukebei }}
|
{{ 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 }}
|
{{ 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}}
|
{{ end}}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -22,11 +22,11 @@
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div style="float: left;">
|
<div style="float: left;">
|
||||||
{{ if Sukebei }}
|
{{ 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) }}">
|
<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 (CategoryID .Category .SubCategory) }}</span>
|
<span style="vertical-align:middle;font-size:large;">{{ call $.T (CategoryName .Category .SubCategory) }}</span>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<img style="float:left; margin-right: 1em;" src="{{$.URL.Parse (printf "/img/torrents/%s.png" .SubCategory) }}" title="{{ call $.T (CategoryID .Category .SubCategory) }}">
|
<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 (CategoryID .Category .SubCategory) }}</span>
|
<span style="vertical-align:middle;font-size:large;">{{ call $.T (CategoryName .Category .SubCategory) }}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<br />
|
<br />
|
||||||
<h4 style="display:inline-block">
|
<h4 style="display:inline-block">
|
||||||
|
|
Référencer dans un nouveau ticket