|
|
|
@ -42,12 +42,12 @@ component AnimeActions(anime *arn.Anime, listItem *arn.AnimeListItem, user *arn.
|
|
|
|
|
if user != nil
|
|
|
|
|
.buttons.anime-actions
|
|
|
|
|
if user.Role == "editor" || user.Role == "admin"
|
|
|
|
|
a.button.mountable.ajax(href=anime.Link() + "/edit", data-mountable-type="footer")
|
|
|
|
|
a.button.mountable(href=anime.Link() + "/edit", data-mountable-type="footer")
|
|
|
|
|
Icon("pencil-square-o")
|
|
|
|
|
span Edit anime
|
|
|
|
|
|
|
|
|
|
if listItem != nil
|
|
|
|
|
a.button.mountable.ajax(href="/+" + user.Nick + "/animelist/anime/" + anime.ID, data-mountable-type="footer")
|
|
|
|
|
a.button.mountable(href="/+" + user.Nick + "/animelist/anime/" + anime.ID, data-mountable-type="footer")
|
|
|
|
|
Icon("pencil")
|
|
|
|
|
span= listItem.StatusHumanReadable()
|
|
|
|
|
else
|
|
|
|
@ -139,7 +139,7 @@ component AnimeLinks(anime *arn.Anime)
|
|
|
|
|
component AnimeGenres(anime *arn.Anime)
|
|
|
|
|
.anime-genres
|
|
|
|
|
each genre in anime.Genres
|
|
|
|
|
a.anime-genre.mountable.ajax(href="/genre/" + strings.ToLower(genre), data-mountable-type="footer")
|
|
|
|
|
a.anime-genre.mountable(href="/genre/" + strings.ToLower(genre), data-mountable-type="footer")
|
|
|
|
|
span= genre
|
|
|
|
|
|
|
|
|
|
component AnimeRelations(anime *arn.Anime, user *arn.User)
|
|
|
|
@ -149,7 +149,7 @@ component AnimeRelations(anime *arn.Anime, user *arn.User)
|
|
|
|
|
.anime-relations
|
|
|
|
|
each relation in anime.Relations().Items
|
|
|
|
|
if relation.Anime() != nil
|
|
|
|
|
a.anime-relation.mountable.ajax(href=relation.Anime().Link(), title=relation.Anime().Title.ByUser(user), data-mountable-type="relation")
|
|
|
|
|
a.anime-relation.mountable(href=relation.Anime().Link(), title=relation.Anime().Title.ByUser(user), data-mountable-type="relation")
|
|
|
|
|
img.anime-relation-image.lazy(data-src=relation.Anime().ImageLink("small"), data-webp="true", data-color=relation.Anime().AverageColor(), alt=relation.Anime().Title.ByUser(user))
|
|
|
|
|
.anime-relation-type= relation.HumanReadableType()
|
|
|
|
|
.anime-relation-year
|
|
|
|
@ -231,7 +231,7 @@ component AnimeInformation(anime *arn.Anime)
|
|
|
|
|
tr.mountable(data-mountable-type="info")
|
|
|
|
|
td.anime-info-key Studio:
|
|
|
|
|
td.anime-info-value
|
|
|
|
|
a.ajax(href=company.Link())= company.Name.English
|
|
|
|
|
a(href=company.Link())= company.Name.English
|
|
|
|
|
|
|
|
|
|
//- section.anime-section.mountable
|
|
|
|
|
//- h3.anime-section-name Companies
|
|
|
|
@ -240,13 +240,13 @@ component AnimeInformation(anime *arn.Anime)
|
|
|
|
|
//- tr.mountable(data-mountable-type="info")
|
|
|
|
|
//- td.anime-info-key Producer:
|
|
|
|
|
//- td.anime-info-value
|
|
|
|
|
//- a.ajax(href=company.Link())= company.Name.English
|
|
|
|
|
//- a(href=company.Link())= company.Name.English
|
|
|
|
|
|
|
|
|
|
//- each company in anime.Licensors()
|
|
|
|
|
//- tr.mountable(data-mountable-type="info")
|
|
|
|
|
//- td.anime-info-key Licensor:
|
|
|
|
|
//- td.anime-info-value
|
|
|
|
|
//- a.ajax(href=company.Link())= company.Name.English
|
|
|
|
|
//- a(href=company.Link())= company.Name.English
|
|
|
|
|
|
|
|
|
|
component FriendEntry(friend *arn.User, listItems map[*arn.User]*arn.AnimeListItem)
|
|
|
|
|
CustomAvatar(friend, friend.Link(), friend.Nick + " => " + listItems[friend].Status + " | " + toString(listItems[friend].Episodes) + " eps | " + fmt.Sprintf("%.1f", listItems[friend].Rating.Overall) + " rating")
|
|
|
|
|