Added arn to the main repository

This commit is contained in:
2019-06-03 18:32:43 +09:00
parent cf258573a8
commit 29a48d94a5
465 changed files with 15968 additions and 288 deletions

22
arn/ForumIcons.go Normal file
View 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"
}