Changed forum-tags to tabs
This commit is contained in:
@ -36,27 +36,27 @@ func Profile(ctx *aero.Context, viewUser *arn.User) string {
|
||||
}, func() {
|
||||
animeList = viewUser.AnimeList()
|
||||
}, func() {
|
||||
threads = viewUser.Threads()
|
||||
// threads = viewUser.Threads()
|
||||
|
||||
arn.SortThreadsLatestFirst(threads)
|
||||
// arn.SortThreadsLatestFirst(threads)
|
||||
|
||||
if len(threads) > maxPosts {
|
||||
threads = threads[:maxPosts]
|
||||
}
|
||||
// if len(threads) > maxPosts {
|
||||
// threads = threads[:maxPosts]
|
||||
// }
|
||||
}, func() {
|
||||
posts = viewUser.Posts()
|
||||
arn.SortPostsLatestFirst(posts)
|
||||
// posts = viewUser.Posts()
|
||||
// arn.SortPostsLatestFirst(posts)
|
||||
|
||||
if len(posts) > maxPosts {
|
||||
posts = posts[:maxPosts]
|
||||
}
|
||||
// if len(posts) > maxPosts {
|
||||
// posts = posts[:maxPosts]
|
||||
// }
|
||||
}, func() {
|
||||
tracks = viewUser.SoundTracks()
|
||||
arn.SortSoundTracksLatestFirst(tracks)
|
||||
// tracks = viewUser.SoundTracks()
|
||||
// arn.SortSoundTracksLatestFirst(tracks)
|
||||
|
||||
if len(tracks) > maxTracks {
|
||||
tracks = tracks[:maxTracks]
|
||||
}
|
||||
// if len(tracks) > maxTracks {
|
||||
// tracks = tracks[:maxTracks]
|
||||
// }
|
||||
})
|
||||
|
||||
return ctx.HTML(components.Profile(viewUser, user, animeList, threads, posts, tracks))
|
||||
|
Reference in New Issue
Block a user