Added characters to editor panel

This commit is contained in:
Eduard Urbach 2018-04-23 12:18:53 +02:00
parent 32deb92bf6
commit d67489d1cb
5 changed files with 15 additions and 3 deletions

View File

@ -37,8 +37,6 @@ component Sidebar(user *arn.User)
SidebarButton("AMVs", "/amvs", "video-camera")
SidebarButton("Soundtracks", "/soundtracks", "headphones")
SidebarButton("Quotes", "/quotes", "quote-left")
if user != nil && (user.Role == "editor" || user.Role == "admin")
SidebarButton("Characters", "/characters", "child")
SidebarButton("Companies", "/companies", "building")
SidebarButton("Users", "/users", "globe")
@ -57,6 +55,7 @@ component Sidebar(user *arn.User)
//- SidebarButton("Statistics", "/statistics", "pie-chart")
//- SidebarButton("Companies", "/companies", "building")
//- SidebarButton("Genres", "/genres", "clone")
//- SidebarButton("Characters", "/characters", "child")
.spacer

View File

@ -14,7 +14,7 @@ component Characters(characters []*arn.Character, nextIndex int, tag string, use
Icon("pencil")
span Edit draft
#load-more-target.characters.characters-page
#load-more-target.characters-page
CharactersScrollable(characters, user)
if nextIndex != -1

View File

@ -0,0 +1,3 @@
.characters-page
horizontal-wrap
justify-content center

View File

@ -9,6 +9,13 @@ component Editor(url string, score int, scoreTitle string, scoreTypes map[string
p Anime
p.editor-score= stringutils.Plural(scoreTypes["Anime"], "contribution")
a.feature-card.mountable(href="/characters")
.feature-card-icon.feature-card-color-character
RawIcon("child")
.feature-card-text
p Characters
p.editor-score= stringutils.Plural(scoreTypes["Character"], "contribution")
a.feature-card.mountable(href="/editor/soundtracks/links")
.feature-card-icon.feature-card-color-soundtrack
RawIcon("music")

View File

@ -22,6 +22,9 @@
.feature-card-color-company
background hsl(150, feature-card-saturation, feature-card-lightness) !important
.feature-card-color-character
background hsl(273, feature-card-saturation, feature-card-lightness) !important
> 1550px
.editor-filters
position fixed