Added anilist links on character pages
This commit is contained in:
parent
5690aee411
commit
26f0c53981
1
go.mod
1
go.mod
@ -49,6 +49,7 @@ require (
|
|||||||
github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a // indirect
|
github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a // indirect
|
||||||
github.com/stretchr/testify v1.3.0
|
github.com/stretchr/testify v1.3.0
|
||||||
golang.org/x/oauth2 v0.0.0-20190523182746-aaccbc9213b0
|
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
|
golang.org/x/text v0.3.2 // indirect
|
||||||
google.golang.org/appengine v1.6.0 // indirect
|
google.golang.org/appengine v1.6.0 // indirect
|
||||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
"sameAs":[
|
"sameAs":[
|
||||||
"https://www.facebook.com/animenotifier",
|
"https://www.facebook.com/animenotifier",
|
||||||
"https://twitter.com/animenotifier",
|
"https://twitter.com/animenotifier",
|
||||||
"https://plus.google.com/+AnimeReleaseNotifierOfficial",
|
|
||||||
"https://discord.gg/0kimAmMCeXGXuzNF",
|
"https://discord.gg/0kimAmMCeXGXuzNF",
|
||||||
"https://github.com/animenotifier/notify.moe"
|
"https://github.com/animenotifier/notify.moe"
|
||||||
],
|
],
|
||||||
|
@ -128,6 +128,11 @@ component CharacterSidebar(character *arn.Character, friends []*arn.User, releva
|
|||||||
Icon("exclamation-triangle")
|
Icon("exclamation-triangle")
|
||||||
span Error: No MAL ID
|
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")
|
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