Added characters to editor panel
This commit is contained in:
parent
32deb92bf6
commit
d67489d1cb
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
3
pages/characters/characters.scarlet
Normal file
3
pages/characters/characters.scarlet
Normal file
@ -0,0 +1,3 @@
|
||||
.characters-page
|
||||
horizontal-wrap
|
||||
justify-content center
|
@ -8,6 +8,13 @@ component Editor(url string, score int, scoreTitle string, scoreTypes map[string
|
||||
.feature-card-text
|
||||
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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user