Added video editor display when specified
This commit is contained in:
@ -22,6 +22,17 @@ component AMVPage(amv *arn.AMV, user *arn.User)
|
||||
.amv-extra-anime.mountable
|
||||
AnimeGridSmall(amv.ExtraAnime(), user)
|
||||
|
||||
if len(amv.VideoEditorIDs) > 0
|
||||
.widget
|
||||
if len(amv.VideoEditorIDs) == 1
|
||||
h3.widget-title.mountable Editor
|
||||
else
|
||||
h3.widget-title.mountable Editors
|
||||
|
||||
.user-avatars.amv-editors
|
||||
each editor in amv.VideoEditors()
|
||||
Avatar(editor)
|
||||
|
||||
if len(amv.Links) > 0
|
||||
.widget
|
||||
h3.widget-title.mountable Links
|
||||
|
@ -43,6 +43,9 @@ const amv-large-width = 854px
|
||||
width anime-image-small-width
|
||||
height anime-image-small-height
|
||||
|
||||
.amv-editors
|
||||
justify-content flex-start !important
|
||||
|
||||
.amv-links
|
||||
//
|
||||
|
||||
|
@ -15,7 +15,7 @@ component CharacterDetails(character *arn.Character, characterAnime []*arn.Anime
|
||||
LikeButton(strconv.Itoa(len(character.Likes)), "heart", "character", character, user)
|
||||
|
||||
if user != nil && (user.Role == "editor" || user.Role == "admin")
|
||||
a.button.mountable(href=character.Link() + "/edit")
|
||||
a.button.tip.mountable(href=character.Link() + "/edit", aria-label="Edit character")
|
||||
RawIcon("pencil")
|
||||
|
||||
.character-description-container
|
||||
|
Reference in New Issue
Block a user