Move character edit button below the image
This commit is contained in:
parent
644c023fc9
commit
c2eb04007d
@ -14,6 +14,10 @@ component CharacterDetails(character *arn.Character, characterAnime []*arn.Anime
|
|||||||
.buttons
|
.buttons
|
||||||
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")
|
||||||
|
a.button.mountable(href=character.Link() + "/edit")
|
||||||
|
RawIcon("pencil")
|
||||||
|
|
||||||
.character-description-container
|
.character-description-container
|
||||||
h1.character-name.mountable= character.Name.Canonical
|
h1.character-name.mountable= character.Name.Canonical
|
||||||
|
|
||||||
@ -27,15 +31,6 @@ component CharacterDetails(character *arn.Character, characterAnime []*arn.Anime
|
|||||||
|
|
||||||
.character-description.mountable!= markdown.Render(character.Description)
|
.character-description.mountable!= markdown.Render(character.Description)
|
||||||
|
|
||||||
if user != nil && (user.Role == "editor" || user.Role == "admin")
|
|
||||||
.anime-summary-footer-container
|
|
||||||
.anime-summary-footer
|
|
||||||
.spacer
|
|
||||||
.buttons.anime-buttons
|
|
||||||
a.button.mountable(href=character.Link() + "/edit")
|
|
||||||
Icon("pencil")
|
|
||||||
span Edit character
|
|
||||||
|
|
||||||
h3.mountable Anime
|
h3.mountable Anime
|
||||||
|
|
||||||
.character-anime.mountable
|
.character-anime.mountable
|
||||||
|
Loading…
Reference in New Issue
Block a user