Changed forum-tags to tabs

This commit is contained in:
2017-07-03 15:34:50 +02:00
parent db94850ce2
commit e6d18f2e1d
7 changed files with 46 additions and 46 deletions

View File

@ -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))