23 lines
429 B
Go
Raw Normal View History

2019-06-03 09:32:43 +00:00
package arn
// Icons
var forumIcons = map[string]string{
"general": "paperclip",
"news": "newspaper-o",
"anime": "television",
"update": "cubes",
"suggestion": "lightbulb-o",
"bug": "bug",
}
// GetForumIcon returns the unprefixed icon class name for the forum.
func GetForumIcon(category string) string {
icon, exists := forumIcons[category]
if exists {
return icon
}
return "comments"
}