diff --git a/pages/anime/anime.pixy b/pages/anime/anime.pixy index 6e776e88..2f0aa4b1 100644 --- a/pages/anime/anime.pixy +++ b/pages/anime/anime.pixy @@ -221,5 +221,11 @@ component AnimeInformation(anime *arn.Anime) td.anime-info-key Channel: td.anime-info-value= anime.FirstChannel + each company in anime.Studios() + tr.mountable(data-mountable-type="info") + td.anime-info-key Studio: + td.anime-info-value + a.ajax(href=company.Link())= company.Name.English + component FriendEntry(friend *arn.User, listItems map[*arn.User]*arn.AnimeListItem) CustomAvatar(friend, listItems[friend].Link(friend.Nick), friend.Nick + " => " + listItems[friend].Status + " | " + toString(listItems[friend].Episodes) + " eps | " + fmt.Sprintf("%.1f", listItems[friend].Rating.Overall) + " rating") diff --git a/pages/editanime/editanime.go b/pages/editanime/editanime.go index 592d979f..682b9eec 100644 --- a/pages/editanime/editanime.go +++ b/pages/editanime/editanime.go @@ -5,8 +5,8 @@ import ( "github.com/aerogo/aero" "github.com/animenotifier/arn" - "github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/utils" + "github.com/animenotifier/notify.moe/utils/editform" ) // Get anime edit page. @@ -24,5 +24,5 @@ func Get(ctx *aero.Context) string { return ctx.Error(http.StatusNotFound, "Anime not found", err) } - return ctx.HTML(components.EditAnime(anime)) + return ctx.HTML(editform.Render(anime, "Edit anime", user)) }