Added anilist links on character pages

This commit is contained in:
2019-05-24 17:54:54 +09:00
parent 5690aee411
commit 26f0c53981
3 changed files with 6 additions and 1 deletions

View File

@ -128,6 +128,11 @@ component CharacterSidebar(character *arn.Character, friends []*arn.User, releva
Icon("exclamation-triangle")
span Error: No MAL ID
if character.GetMapping("anilist/character") != ""
a.light-button(href="https://anilist.co/character/" + character.GetMapping("anilist/character"), target="_blank", rel="noopener")
Icon("external-link")
span AniList
a.light-button(href="/api" + character.Link(), target="_blank")
Icon("code")
span API