Added arn to the main repository
This commit is contained in:
22
arn/ForumIcons.go
Normal file
22
arn/ForumIcons.go
Normal file
@ -0,0 +1,22 @@
|
||||
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"
|
||||
}
|
Reference in New Issue
Block a user