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("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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
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
|
@ -9,6 +9,13 @@ component Editor(url string, score int, scoreTitle string, scoreTypes map[string
|
|||||||
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
|
||||||
RawIcon("music")
|
RawIcon("music")
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user