Added studios to anime information

This commit is contained in:
Eduard Urbach 2017-11-27 19:57:58 +01:00
parent 4c01ac9d6d
commit 15555f293f
2 changed files with 8 additions and 2 deletions

View File

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

View File

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