Added anilist links on character pages

This commit is contained in:
Eduard Urbach 2019-05-24 17:54:54 +09:00
parent 5690aee411
commit 26f0c53981
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
3 changed files with 6 additions and 1 deletions

1
go.mod
View File

@ -49,6 +49,7 @@ require (
github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a // indirect
github.com/stretchr/testify v1.3.0
golang.org/x/oauth2 v0.0.0-20190523182746-aaccbc9213b0
golang.org/x/sync v0.0.0-20190423024810-112230192c58 // indirect
golang.org/x/text v0.3.2 // indirect
google.golang.org/appengine v1.6.0 // indirect
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect

View File

@ -9,7 +9,6 @@
"sameAs":[
"https://www.facebook.com/animenotifier",
"https://twitter.com/animenotifier",
"https://plus.google.com/+AnimeReleaseNotifierOfficial",
"https://discord.gg/0kimAmMCeXGXuzNF",
"https://github.com/animenotifier/notify.moe"
],

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