Added character comments

This commit is contained in:
Eduard Urbach 2018-11-01 15:06:04 +09:00
parent 5866683811
commit 942f45f04d
6 changed files with 19 additions and 7 deletions

View File

@ -14,6 +14,7 @@
"mixins/sidebar",
"mixins/anime-grid",
"mixins/feature-card",
"mixins/comments",
"reset",
"base",
"typography",

View File

@ -8,14 +8,14 @@ component Comments(parent arn.PostParent, user *arn.User)
Postable(post.ToPostable(), user, "", "")
if user != nil
if parent.IsLocked()
if arn.IsLocked(parent)
footer.footer.mountable
p.text-center= "This " + strings.ToLower(reflect.TypeOf(parent).Elem().Name()) + " is locked."
else
NewPostArea(user, "Comment")
.buttons
if !parent.IsLocked()
if !arn.IsLocked(parent)
button.mountable.action(data-action="createPost", data-trigger="click", data-parent-type=reflect.TypeOf(parent).Elem().Name(), data-parent-id=parent.GetID())
Icon("mail-reply")
span Reply

View File

@ -1,7 +1,3 @@
.anime-comments
[data-standalone-page="false"]
margin-top 1rem
.thread
max-width 600px
justify-content flex-start
comments-left

View File

@ -60,6 +60,12 @@ component CharacterDetails(character *arn.Character, characterAnime []*arn.Anime
if mainQuote == nil || quote.ID != mainQuote.ID
Quote(quote, user)
.character-section
h3.character-section-name.mountable Comments
.character-comments
Comments(character, user)
CharacterSidebar(character, friends, relevantCharacters, user)
component CharacterSidebar(character *arn.Character, friends []*arn.User, relevantCharacters []*arn.Character, user *arn.User)

View File

@ -75,6 +75,9 @@
.character-section-name
font-weight bold
.character-comments
comments-left
> 1250px
.character-page
horizontal

View File

@ -0,0 +1,6 @@
mixin comments-left
margin-top 1rem
.thread
max-width 600px
justify-content flex-start