511d074e84
* remove custom_flag.css * remove ' that had nothing to do here * replace sukebei variable to boolean * fix ? operator & variable name * attempt at fixing visual cues for anonymous torrents * Update torrents.jet.html * add missing , * useless code if user logged off so moving that * add it back here and check if logged in * should work almost properly now * same here * flag-other invisible * Update kilo.js * Update upload.jet.html * should work very well now * same here * Delete categories.png * Add files via upload * Update main.css * Update kilo.js * Update upload.jet.html * Update kilo.js * Update torrents.jet.html * proper behavior for trusted people * different flag form id * add id * add language name in an span * make that span invisible =) * Update flags.jet.html * Update upload.jet.html * Update kilo.js * whoever read this is a faggot * Update upload.jet.html
9 lignes
662 o
HTML
9 lignes
662 o
HTML
{{ block flagList(languages=nil, selected="", inputname="languages", id="lang")}}
|
|
{{ if isset(languages) }}
|
|
{{ range _, language := languages }}
|
|
<span class="input-group">
|
|
<span name="{{id}}-languagename">{{LanguageName(language, T)}}</span><input type="checkbox" name="{{inputname}}" class="form-language-checkbox" id="{{id}}-{{ language.Code }}" value="{{language.Code}}"{{ range _, v := selected}}{{ if contains(v, language.Code) }} checked{{end}}{{end}}><label for="{{id}}-{{ language.Code }}" class="flag flag-{{ language.Flag(false) }}" title="{{LanguageName(language, T)}}"></label>
|
|
</span>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|