Added character comments
This commit is contained in:
parent
5866683811
commit
942f45f04d
@ -14,6 +14,7 @@
|
||||
"mixins/sidebar",
|
||||
"mixins/anime-grid",
|
||||
"mixins/feature-card",
|
||||
"mixins/comments",
|
||||
"reset",
|
||||
"base",
|
||||
"typography",
|
||||
|
@ -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
|
@ -1,7 +1,3 @@
|
||||
.anime-comments
|
||||
[data-standalone-page="false"]
|
||||
margin-top 1rem
|
||||
|
||||
.thread
|
||||
max-width 600px
|
||||
justify-content flex-start
|
||||
comments-left
|
@ -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)
|
||||
|
@ -75,6 +75,9 @@
|
||||
.character-section-name
|
||||
font-weight bold
|
||||
|
||||
.character-comments
|
||||
comments-left
|
||||
|
||||
> 1250px
|
||||
.character-page
|
||||
horizontal
|
||||
|
6
styles/mixins/comments.scarlet
Normal file
6
styles/mixins/comments.scarlet
Normal file
@ -0,0 +1,6 @@
|
||||
mixin comments-left
|
||||
margin-top 1rem
|
||||
|
||||
.thread
|
||||
max-width 600px
|
||||
justify-content flex-start
|
Loading…
Reference in New Issue
Block a user