Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

Update template_functions.go

Cette révision appartient à :
kilo 2017-11-01 08:38:44 +01:00 révisé par GitHub
Parent 8c83895e1e
révision 503b3acf58
Signature inconnue de Forgejo
ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 0 ajouts et 5 suppressions

Voir le fichier

@ -36,7 +36,6 @@ func templateFunctions(vars jet.VarMap) jet.VarMap {
vars.Set("FlagCode", flagCode)
vars.Set("getAvatar", getAvatar)
vars.Set("torrentFileExists", torrentFileExists)
vars.Set("formatDateRFC", formatDateRFC)
vars.Set("GetHostname", format.GetHostname)
vars.Set("GetCategories", categories.GetSelect)
vars.Set("GetCategory", getCategory)
@ -206,10 +205,6 @@ func getAvatar(hash string, size int) string {
}
}
func formatDateRFC(t time.Time) string {
// because time.* isn't available in templates...
return t.Format(time.RFC3339)
}
func getCategory(category string, keepParent bool) categories.Categories {
cats := categories.GetSelect(true, true)
found := false