Added welcome page

This commit is contained in:
2018-11-15 12:42:10 +09:00
parent 085417edce
commit 1ef1c55e49
19 changed files with 153 additions and 30 deletions

View File

@ -22,4 +22,16 @@ component ImportLists(user *arn.User)
.widget-section
a.button(href="/import/myanimelist/animelist")
Icon("download")
span Import MyAnimeList
span Import MyAnimeList
component ImportFinished(user *arn.User)
h1.mountable Import finished
.buttons
a.button.mountable(href=user.Link())
Icon("user")
span Profile
a.button.mountable(href=user.Link() + "/animelist/watching")
Icon("list")
span Anime list

View File

@ -67,8 +67,7 @@ func Finish(ctx *aero.Context) string {
}
animeList.Save()
return utils.SmartRedirect(ctx, "/+"+user.Nick+"/animelist/watching")
return ctx.HTML(components.ImportFinished(user))
}
// getMatches finds and returns all matches for the logged in user.

View File

@ -78,8 +78,7 @@ func Finish(ctx *aero.Context) string {
}
animeList.Save()
return utils.SmartRedirect(ctx, "/+"+user.Nick+"/animelist/watching")
return ctx.HTML(components.ImportFinished(user))
}
// getMatches finds and returns all matches for the logged in user.

View File

@ -72,8 +72,7 @@ func Finish(ctx *aero.Context) string {
}
animeList.Save()
return utils.SmartRedirect(ctx, "/+"+user.Nick+"/animelist/watching")
return ctx.HTML(components.ImportFinished(user))
}
// getMatches finds and returns all matches for the logged in user.