Added studios to anime information
This commit is contained in:
parent
4c01ac9d6d
commit
15555f293f
@ -221,5 +221,11 @@ component AnimeInformation(anime *arn.Anime)
|
|||||||
td.anime-info-key Channel:
|
td.anime-info-key Channel:
|
||||||
td.anime-info-value= anime.FirstChannel
|
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)
|
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")
|
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")
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
|
|
||||||
"github.com/aerogo/aero"
|
"github.com/aerogo/aero"
|
||||||
"github.com/animenotifier/arn"
|
"github.com/animenotifier/arn"
|
||||||
"github.com/animenotifier/notify.moe/components"
|
|
||||||
"github.com/animenotifier/notify.moe/utils"
|
"github.com/animenotifier/notify.moe/utils"
|
||||||
|
"github.com/animenotifier/notify.moe/utils/editform"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Get anime edit page.
|
// 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.Error(http.StatusNotFound, "Anime not found", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return ctx.HTML(components.EditAnime(anime))
|
return ctx.HTML(editform.Render(anime, "Edit anime", user))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user