28 lines
959 B
Plaintext
Raw Normal View History

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")
Tab("Anime", "tv", "/editor/anime/missing/shoboi")
Tab("Companies", "building", "/editor/companies/missing/description")
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