Added anime comments

This commit is contained in:
2018-11-01 14:45:16 +09:00
parent 3ad4faf38a
commit 5866683811
7 changed files with 46 additions and 2 deletions

12
pages/anime/comments.pixy Normal file
View File

@ -0,0 +1,12 @@
component AnimeComments(anime *arn.Anime, user *arn.User, standAlonePage bool)
if standAlonePage
h1.mountable
a(href=anime.Link())= anime.Title.ByUser(user)
section.anime-section.mountable
if !standAlonePage
h3.anime-section-name
a(href=anime.Link() + "/comments") Comments
.anime-comments(data-standalone-page=standAlonePage)
Comments(anime, user)