Added video editor display when specified
This commit is contained in:
parent
e3e296fc68
commit
277155fdb8
@ -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
|
||||
|
@ -34,6 +34,7 @@ const dark = {
|
||||
"loading-anim-color": "var(--link-color)",
|
||||
"anime-alternative-title-color": "hsla(0, 0%, 100%, 0.5)",
|
||||
"anime-list-item-name-color": "var(--text-color)",
|
||||
"tip-bg-color": "hsl(0, 0%, 10%)",
|
||||
|
||||
"post-like-color": "var(--link-color)",
|
||||
"post-unlike-color": "var(--link-color)",
|
||||
|
@ -88,6 +88,9 @@ feature-card-color = hsl(348, feature-card-saturation, feature-card-lightness)
|
||||
feature-card-alternative-color = hsl(203, feature-card-saturation, feature-card-lightness)
|
||||
feature-card-icon-color = white
|
||||
|
||||
// Tooltips
|
||||
tip-bg-color = white
|
||||
|
||||
// Loading animation
|
||||
loading-anim-color = main-color
|
||||
|
||||
|
@ -15,7 +15,7 @@ mixin tip-before
|
||||
color text-color
|
||||
text-shadow none
|
||||
padding 0.2rem 0.7rem
|
||||
background ui-background
|
||||
background tip-bg-color
|
||||
border 1px solid ui-border-color
|
||||
border-radius ui-element-border-radius
|
||||
box-shadow shadow-light
|
||||
@ -34,7 +34,7 @@ mixin tip-after
|
||||
height 0
|
||||
border-style solid
|
||||
border-width 8px 8px 0 8px
|
||||
border-color ui-background transparent transparent transparent
|
||||
border-color tip-bg-color transparent transparent transparent
|
||||
transform tip-transform-hidden
|
||||
default-transition
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user