Improved editor log and anime page headers are linkable
This commit is contained in:
@ -3,6 +3,8 @@ package anime
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/animenotifier/notify.moe/utils"
|
||||
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
@ -12,6 +14,7 @@ import (
|
||||
// Tracks ...
|
||||
func Tracks(ctx *aero.Context) string {
|
||||
id := ctx.Get("id")
|
||||
user := utils.GetUser(ctx)
|
||||
|
||||
anime, err := arn.GetAnime(id)
|
||||
|
||||
@ -23,5 +26,5 @@ func Tracks(ctx *aero.Context) string {
|
||||
return !track.IsDraft && len(track.Media) > 0 && arn.Contains(track.Tags, "anime:"+anime.ID)
|
||||
})
|
||||
|
||||
return ctx.HTML(components.AnimeTracks(anime, tracks))
|
||||
return ctx.HTML(components.AnimeTracks(anime, tracks, user, true))
|
||||
}
|
||||
|
Reference in New Issue
Block a user