Added welcome page
This commit is contained in:
@ -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
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Reference in New Issue
Block a user