21 lines
728 B
Plaintext
Raw Normal View History

2018-03-09 11:38:46 +00:00
component Editor(url string, user *arn.User)
EditorTabs(url)
2018-03-09 03:03:31 +00:00
h1.page-title Editor Panel
2018-03-09 11:38:46 +00:00
p.text-center.mountable= "Welcome to the Editor Panel, " + user.Nick + "!"
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")
Tab("Missing", "list", "/editor/anime/missing/shoboi")
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