From 1a380f3139638d5b444bdc33005d02e897714e4b Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 14 Mar 2018 18:10:21 +0100 Subject: [PATCH] Minor cleanup --- pages/soundtracks/{soundtracks.go => latest.go} | 5 ----- pages/soundtracks/render.go | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) rename pages/soundtracks/{soundtracks.go => latest.go} (86%) diff --git a/pages/soundtracks/soundtracks.go b/pages/soundtracks/latest.go similarity index 86% rename from pages/soundtracks/soundtracks.go rename to pages/soundtracks/latest.go index 0d905c13..2c7207b0 100644 --- a/pages/soundtracks/soundtracks.go +++ b/pages/soundtracks/latest.go @@ -5,11 +5,6 @@ import ( "github.com/animenotifier/arn" ) -const ( - tracksFirstLoad = 12 - tracksPerScroll = 3 -) - // Latest renders the latest soundtracks. func Latest(ctx *aero.Context) string { // Fetch all eligible tracks diff --git a/pages/soundtracks/render.go b/pages/soundtracks/render.go index 04a21075..7e5c01c4 100644 --- a/pages/soundtracks/render.go +++ b/pages/soundtracks/render.go @@ -8,6 +8,11 @@ import ( "github.com/animenotifier/notify.moe/utils/infinitescroll" ) +const ( + tracksFirstLoad = 12 + tracksPerScroll = 3 +) + // render renders the soundracks page with the given tracks. func render(ctx *aero.Context, allTracks []*arn.SoundTrack) string { user := utils.GetUser(ctx)