Added video editor display when specified

This commit is contained in:
Eduard Urbach 2018-04-21 13:00:57 +02:00
parent e3e296fc68
commit 277155fdb8
6 changed files with 21 additions and 3 deletions

View File

@ -22,6 +22,17 @@ component AMVPage(amv *arn.AMV, user *arn.User)
.amv-extra-anime.mountable .amv-extra-anime.mountable
AnimeGridSmall(amv.ExtraAnime(), user) 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 if len(amv.Links) > 0
.widget .widget
h3.widget-title.mountable Links h3.widget-title.mountable Links

View File

@ -43,6 +43,9 @@ const amv-large-width = 854px
width anime-image-small-width width anime-image-small-width
height anime-image-small-height height anime-image-small-height
.amv-editors
justify-content flex-start !important
.amv-links .amv-links
// //

View File

@ -15,7 +15,7 @@ component CharacterDetails(character *arn.Character, characterAnime []*arn.Anime
LikeButton(strconv.Itoa(len(character.Likes)), "heart", "character", character, user) LikeButton(strconv.Itoa(len(character.Likes)), "heart", "character", character, user)
if user != nil && (user.Role == "editor" || user.Role == "admin") 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") RawIcon("pencil")
.character-description-container .character-description-container

View File

@ -34,6 +34,7 @@ const dark = {
"loading-anim-color": "var(--link-color)", "loading-anim-color": "var(--link-color)",
"anime-alternative-title-color": "hsla(0, 0%, 100%, 0.5)", "anime-alternative-title-color": "hsla(0, 0%, 100%, 0.5)",
"anime-list-item-name-color": "var(--text-color)", "anime-list-item-name-color": "var(--text-color)",
"tip-bg-color": "hsl(0, 0%, 10%)",
"post-like-color": "var(--link-color)", "post-like-color": "var(--link-color)",
"post-unlike-color": "var(--link-color)", "post-unlike-color": "var(--link-color)",

View File

@ -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-alternative-color = hsl(203, feature-card-saturation, feature-card-lightness)
feature-card-icon-color = white feature-card-icon-color = white
// Tooltips
tip-bg-color = white
// Loading animation // Loading animation
loading-anim-color = main-color loading-anim-color = main-color

View File

@ -15,7 +15,7 @@ mixin tip-before
color text-color color text-color
text-shadow none text-shadow none
padding 0.2rem 0.7rem padding 0.2rem 0.7rem
background ui-background background tip-bg-color
border 1px solid ui-border-color border 1px solid ui-border-color
border-radius ui-element-border-radius border-radius ui-element-border-radius
box-shadow shadow-light box-shadow shadow-light
@ -34,7 +34,7 @@ mixin tip-after
height 0 height 0
border-style solid border-style solid
border-width 8px 8px 0 8px 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 transform tip-transform-hidden
default-transition default-transition