Added editor hint for missing MAL IDs

This commit is contained in:
Eduard Urbach 2018-04-23 14:21:55 +02:00
parent 50b98f0ed2
commit 36f14cd0ba
2 changed files with 5 additions and 0 deletions

View File

@ -90,6 +90,10 @@ component CharacterDetails(character *arn.Character, characterAnime []*arn.Anime
a.light-button(href="https://myanimelist.net/character/" + character.GetMapping("myanimelist/character"), target="_blank", rel="noopener")
Icon("external-link")
span MAL
else if user != nil && (user.Role == "editor" || user.Role == "admin")
a.light-button(href="https://myanimelist.net/character.php?q=" + character.Name.Canonical, target="_blank", rel="noopener")
Icon("exclamation-triangle")
span Error: No MAL ID
a.light-button(href="/api" + character.Link(), target="_blank")
Icon("code")

View File

@ -38,6 +38,7 @@ a
img
backface-visibility hidden
color transparent
text-shadow none
rt
user-select none