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

View File

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

View File

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

View File

@ -8,6 +8,13 @@ component Editor(url string, score int, scoreTitle string, scoreTypes map[string
.feature-card-text .feature-card-text
p Anime p Anime
p.editor-score= stringutils.Plural(scoreTypes["Anime"], "contribution") 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") a.feature-card.mountable(href="/editor/soundtracks/links")
.feature-card-icon.feature-card-color-soundtrack .feature-card-icon.feature-card-color-soundtrack

View File

@ -22,6 +22,9 @@
.feature-card-color-company .feature-card-color-company
background hsl(150, feature-card-saturation, feature-card-lightness) !important 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 > 1550px
.editor-filters .editor-filters
position fixed position fixed