2018-03-19 21:55:55 +00:00
|
|
|
component Editor(url string, score int, scoreTypes map[string]int, user *arn.User)
|
2018-03-09 11:38:46 +00:00
|
|
|
EditorTabs(url)
|
2018-03-09 13:00:33 +00:00
|
|
|
h1.mountable= "Welcome to the Editor Panel, " + user.Nick + "!"
|
|
|
|
|
|
|
|
.feature-cards
|
|
|
|
.feature-card.mountable
|
2018-03-09 21:33:08 +00:00
|
|
|
.feature-card-icon.editor-score= score
|
|
|
|
p.feature-card-text Your contribution score.
|
2018-03-19 21:55:55 +00:00
|
|
|
|
|
|
|
.feature-cards.feature-cards-alternative-color
|
|
|
|
for objectType, score := range scoreTypes
|
|
|
|
.feature-card.mountable
|
|
|
|
.feature-card-icon.editor-score= score
|
|
|
|
p.feature-card-text= objectType
|
2017-10-06 20:07:12 +00:00
|
|
|
|
2018-03-09 11:38:46 +00:00
|
|
|
component EditorTabs(url string)
|
2017-10-06 20:07:12 +00:00
|
|
|
.tabs
|
|
|
|
Tab("Editor", "pencil", "/editor")
|
2018-03-09 11:38:46 +00:00
|
|
|
Tab("MAL", "exchange", "/editor/anime/maldiff")
|
2018-03-17 03:19:23 +00:00
|
|
|
Tab("Kitsu", "exchange", "/editor/anime/kitsu/new")
|
2018-03-19 21:28:44 +00:00
|
|
|
Tab("Anime", "tv", "/editor/anime/missing/shoboi")
|
|
|
|
Tab("Companies", "building", "/editor/companies/missing/description")
|
2018-03-07 03:03:15 +00:00
|
|
|
Tab("Search", "search", "/database")
|
2017-10-06 20:07:12 +00:00
|
|
|
|
2018-03-20 16:03:04 +00:00
|
|
|
if strings.Contains(url, "/editor/anime/missing/") || strings.Contains(url, "/editor/anime/lowresimage") || strings.Contains(url, "/editor/anime/ultralowresimage")
|
2018-03-09 11:38:46 +00:00
|
|
|
.tabs
|
|
|
|
Tab("Shoboi", "list", "/editor/anime/missing/shoboi")
|
|
|
|
Tab("AniList", "list", "/editor/anime/missing/anilist")
|
|
|
|
Tab("Genres", "list", "/editor/anime/missing/genres")
|
2018-03-20 15:27:01 +00:00
|
|
|
Tab("Low-Res", "image", "/editor/anime/lowresimage")
|
|
|
|
Tab("Ultra Low-Res", "image", "/editor/anime/ultralowresimage")
|
2018-03-09 11:38:46 +00:00
|
|
|
|
|
|
|
//- a.tab.ajax(href="/admin", aria-label="Admin")
|
|
|
|
//- Icon("wrench")
|
|
|
|
//- span.tab-text Admin
|