2018-03-23 00:43:45 +00:00
|
|
|
component Editor(url string, score int, scoreTitle string, scoreTypes map[string]int, user *arn.User)
|
|
|
|
EditorTabs(url, user)
|
2018-03-09 13:00:33 +00:00
|
|
|
h1.mountable= "Welcome to the Editor Panel, " + user.Nick + "!"
|
|
|
|
|
|
|
|
.feature-cards
|
2018-03-23 00:43:45 +00:00
|
|
|
.feature-card.mountable(title=scoreTitle)
|
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
|
|
|
|
2018-03-23 00:43:45 +00:00
|
|
|
//- .footer
|
|
|
|
//- for objectType, score := range scoreTypes
|
|
|
|
//- .mountable
|
|
|
|
//- span= objectType + ": "
|
|
|
|
//- span= score
|
|
|
|
|
|
|
|
//- .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-23 00:43:45 +00:00
|
|
|
component EditorTabs(url string, user *arn.User)
|
2017-10-06 20:07:12 +00:00
|
|
|
.tabs
|
|
|
|
Tab("Editor", "pencil", "/editor")
|
2018-03-23 00:43:45 +00:00
|
|
|
Tab("MAL", "exchange", "/editor/mal/diff/anime" + user.Settings().Editor.Filter.Suffix())
|
|
|
|
Tab("Anime", "tv", "/editor/anime/mapping/mal" + user.Settings().Editor.Filter.Suffix())
|
2018-03-25 00:54:01 +00:00
|
|
|
Tab("Tracks", "music", "/editor/soundtracks/links")
|
2018-03-22 21:26:52 +00:00
|
|
|
Tab("Companies", "building", "/editor/companies/description")
|
2018-03-23 00:43:45 +00:00
|
|
|
Tab("Kitsu", "download", "/editor/kitsu/new/anime")
|
|
|
|
|
2018-03-22 21:26:52 +00:00
|
|
|
if strings.Contains(url, "/editor/anime/")
|
2018-03-09 11:38:46 +00:00
|
|
|
.tabs
|
2018-03-23 00:43:45 +00:00
|
|
|
Tab("Mappings", "arrows-h", "/editor/anime/mapping/mal" + user.Settings().Editor.Filter.Suffix())
|
|
|
|
Tab("Synopsis", "align-left", "/editor/anime/synopsis" + user.Settings().Editor.Filter.Suffix())
|
|
|
|
Tab("Genres", "clone", "/editor/anime/genres" + user.Settings().Editor.Filter.Suffix())
|
|
|
|
Tab("Start date", "calendar", "/editor/anime/startdate" + user.Settings().Editor.Filter.Suffix())
|
|
|
|
Tab("Images", "image", "/editor/anime/image/lowres" + user.Settings().Editor.Filter.Suffix())
|
2018-03-22 21:26:52 +00:00
|
|
|
|
|
|
|
if strings.Contains(url, "/editor/anime/mapping/")
|
|
|
|
.tabs
|
2018-03-23 00:43:45 +00:00
|
|
|
Tab("MAL", "arrows-h", "/editor/anime/mapping/mal" + user.Settings().Editor.Filter.Suffix())
|
|
|
|
Tab("Shoboi", "arrows-h", "/editor/anime/mapping/shoboi" + user.Settings().Editor.Filter.Suffix())
|
|
|
|
Tab("AniList", "arrows-h", "/editor/anime/mapping/anilist" + user.Settings().Editor.Filter.Suffix())
|
2018-03-23 02:37:14 +00:00
|
|
|
Tab("Duplicate", "exclamation-circle", "/editor/anime/mapping/duplicate" + user.Settings().Editor.Filter.Suffix())
|
2018-03-22 21:26:52 +00:00
|
|
|
|
|
|
|
if strings.Contains(url, "/editor/anime/image/")
|
|
|
|
.tabs
|
2018-03-23 00:43:45 +00:00
|
|
|
Tab("Low-Res", "image", "/editor/anime/image/lowres" + user.Settings().Editor.Filter.Suffix())
|
|
|
|
Tab("Ultra Low-Res", "image", "/editor/anime/image/ultralowres" + user.Settings().Editor.Filter.Suffix())
|
|
|
|
|
|
|
|
if strings.Contains(url, "/editor/anime/") || strings.Contains(url, "/editor/mal/diff/anime")
|
|
|
|
.corner-buttons.fixed
|
|
|
|
#filter-root(data-url=url)
|
|
|
|
ExploreFilters(user.Settings().Editor.Filter.Year, user.Settings().Editor.Filter.Status, user.Settings().Editor.Filter.Type, true)
|
|
|
|
|