Move character edit button below the image

This commit is contained in:
Eduard Urbach 2018-04-20 00:44:58 +02:00
parent 644c023fc9
commit c2eb04007d

View File

@ -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