2018-03-09 21:33:08 +00:00
|
|
|
component Editor(url string, score 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
|
2018-03-09 13:00:33 +00:00
|
|
|
|
2018-03-09 21:33:08 +00:00
|
|
|
p.feature-card-text Your contribution score.
|
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-09 11:38:46 +00:00
|
|
|
Tab("Missing", "list", "/editor/anime/missing/shoboi")
|
2018-03-07 03:03:15 +00:00
|
|
|
Tab("Search", "search", "/database")
|
2017-10-06 20:07:12 +00:00
|
|
|
|
2018-03-09 11:38:46 +00:00
|
|
|
if strings.Contains(url, "/editor/anime/missing/")
|
|
|
|
.tabs
|
|
|
|
Tab("Shoboi", "list", "/editor/anime/missing/shoboi")
|
|
|
|
Tab("AniList", "list", "/editor/anime/missing/anilist")
|
|
|
|
Tab("Genres", "list", "/editor/anime/missing/genres")
|
|
|
|
|
|
|
|
//- a.tab.ajax(href="/admin", aria-label="Admin")
|
|
|
|
//- Icon("wrench")
|
|
|
|
//- span.tab-text Admin
|