Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

make comma disappear at the end

Cette révision appartient à :
kilo 2017-07-03 16:36:08 +02:00 révisé par GitHub
Parent 6d5181a024
révision fcb4499fd0

Voir le fichier

@ -56,7 +56,7 @@
<a href="{{ URL.Parse("/search?c="+.Category+"_"+ .SubCategory) }}" title="{{ T(CategoryName(.Category, .SubCategory)) }}" class="category">
{{if .Languages[0] != "" }}
<a href="{{ URL.Parse("/search?c="+.Category+"_"+ .SubCategory +"&f=" + FlagCode(.languages[0])) }}">
<img src="img/blank.gif" alt="{{ LanguageName(.Languages[0], T) }}" class="flag flag-{{ (len(.Languages) == 1) ? FlagCode(.Languages[0]) : "multiple" }}" title="{{ range _, language := .Languages }}{{ LanguageName(language, T) }}{{ if len(.Languages) != 1 }},{{ end }}{{ end }}">
<img src="img/blank.gif" alt="{{ LanguageName(.Languages[0], T) }}" class="flag flag-{{ (len(.Languages) == 1) ? FlagCode(.Languages[0]) : "multiple" }}" title=" {{ range key, language := .Languages }}{{ LanguageName(language, T) }}{{ if len(.Languages) > 1 && key < (len(.Languages)-1) }},{{ end }}{{ end }}">
</a>
{{end}}
</a>