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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user