Fixed character links when MAL ID is missing

This commit is contained in:
Eduard Urbach 2018-04-19 18:18:23 +02:00
parent 1dfd15f691
commit 09c97356de

View File

@ -79,14 +79,14 @@ component CharacterDetails(character *arn.Character, characterAnime []*arn.Anime
.inactive-user
Avatar(friend)
if character.GetMapping("myanimelist/character") != ""
h3.mountable Links
h3.mountable Links
.light-button-group.mountable
.light-button-group.mountable
if character.GetMapping("myanimelist/character") != ""
a.light-button(href="https://myanimelist.net/character/" + character.GetMapping("myanimelist/character"), target="_blank", rel="noopener")
Icon("external-link")
span MAL
a.light-button(href="/api" + character.Link(), target="_blank")
Icon("code")
span API
a.light-button(href="/api" + character.Link(), target="_blank")
Icon("code")
span API