Minor cleanup
This commit is contained in:
parent
19e9e3f958
commit
1a380f3139
@ -5,11 +5,6 @@ import (
|
|||||||
"github.com/animenotifier/arn"
|
"github.com/animenotifier/arn"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
tracksFirstLoad = 12
|
|
||||||
tracksPerScroll = 3
|
|
||||||
)
|
|
||||||
|
|
||||||
// Latest renders the latest soundtracks.
|
// Latest renders the latest soundtracks.
|
||||||
func Latest(ctx *aero.Context) string {
|
func Latest(ctx *aero.Context) string {
|
||||||
// Fetch all eligible tracks
|
// Fetch all eligible tracks
|
@ -8,6 +8,11 @@ import (
|
|||||||
"github.com/animenotifier/notify.moe/utils/infinitescroll"
|
"github.com/animenotifier/notify.moe/utils/infinitescroll"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
tracksFirstLoad = 12
|
||||||
|
tracksPerScroll = 3
|
||||||
|
)
|
||||||
|
|
||||||
// render renders the soundracks page with the given tracks.
|
// render renders the soundracks page with the given tracks.
|
||||||
func render(ctx *aero.Context, allTracks []*arn.SoundTrack) string {
|
func render(ctx *aero.Context, allTracks []*arn.SoundTrack) string {
|
||||||
user := utils.GetUser(ctx)
|
user := utils.GetUser(ctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user