Fixed character links when MAL ID is missing
This commit is contained in:
parent
1dfd15f691
commit
09c97356de
@ -79,14 +79,14 @@ component CharacterDetails(character *arn.Character, characterAnime []*arn.Anime
|
|||||||
.inactive-user
|
.inactive-user
|
||||||
Avatar(friend)
|
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")
|
a.light-button(href="https://myanimelist.net/character/" + character.GetMapping("myanimelist/character"), target="_blank", rel="noopener")
|
||||||
Icon("external-link")
|
Icon("external-link")
|
||||||
span MAL
|
span MAL
|
||||||
|
|
||||||
a.light-button(href="/api" + character.Link(), target="_blank")
|
a.light-button(href="/api" + character.Link(), target="_blank")
|
||||||
Icon("code")
|
Icon("code")
|
||||||
span API
|
span API
|
||||||
|
Loading…
Reference in New Issue
Block a user