From 1f33df224b3186e36bc09110169d7c7ba3200457 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 5 Jul 2017 13:46:20 +0200 Subject: [PATCH] Removed nyaa icon for now --- benchmarks/Components_test.go | 4 ++-- benchmarks/{DB_test.go => DB_AnimeList_test.go} | 4 ++-- pages/animelist/animelist.pixy | 9 +++++---- 3 files changed, 9 insertions(+), 8 deletions(-) rename benchmarks/{DB_test.go => DB_AnimeList_test.go} (84%) diff --git a/benchmarks/Components_test.go b/benchmarks/Components_test.go index 201a3446..476b77be 100644 --- a/benchmarks/Components_test.go +++ b/benchmarks/Components_test.go @@ -7,7 +7,7 @@ import ( "github.com/animenotifier/notify.moe/components" ) -func BenchmarkThread(b *testing.B) { +func BenchmarkRenderThread(b *testing.B) { thread, _ := arn.GetThread("HJgS7c2K") thread.HTML() // Pre-render markdown @@ -26,7 +26,7 @@ func BenchmarkThread(b *testing.B) { }) } -func BenchmarkAnimeList(b *testing.B) { +func BenchmarkRenderAnimeList(b *testing.B) { user, _ := arn.GetUser("4J6qpK1ve") animeList := user.AnimeList() diff --git a/benchmarks/DB_test.go b/benchmarks/DB_AnimeList_test.go similarity index 84% rename from benchmarks/DB_test.go rename to benchmarks/DB_AnimeList_test.go index bca3ee29..8d79a521 100644 --- a/benchmarks/DB_test.go +++ b/benchmarks/DB_AnimeList_test.go @@ -6,7 +6,7 @@ import ( "github.com/animenotifier/arn" ) -func BenchmarkDBGetMap(b *testing.B) { +func BenchmarkDBAnimeListGetMap(b *testing.B) { user, _ := arn.GetUser("4J6qpK1ve") b.ReportAllocs() @@ -20,7 +20,7 @@ func BenchmarkDBGetMap(b *testing.B) { }) } -func BenchmarkDBGet(b *testing.B) { +func BenchmarkDBAnimeListGet(b *testing.B) { b.ReportAllocs() b.ResetTimer() diff --git a/pages/animelist/animelist.pixy b/pages/animelist/animelist.pixy index bf85ef74..e3bfcf61 100644 --- a/pages/animelist/animelist.pixy +++ b/pages/animelist/animelist.pixy @@ -72,7 +72,8 @@ component AnimeList(animeList *arn.AnimeList, viewUser *arn.User, user *arn.User //- .action(contenteditable=utils.SameUser(user, viewUser), data-field="Rating.Visuals", data-type="number", data-trigger="focusout", data-action="save")= fmt.Sprintf("%.1f", item.Rating.Visuals) //- td.anime-list-item-rating(title="Soundtrack rating") //- .action(contenteditable=utils.SameUser(user, viewUser), data-field="Rating.Soundtrack", data-type="number", data-trigger="focusout", data-action="save")= fmt.Sprintf("%.1f", item.Rating.Soundtrack) - if user != nil - td.anime-list-item-actions - a(href=arn.Nyaa.GetLink(item.Anime()), title="Search on Nyaa", target="_blank", rel="noopener") - RawIcon("download") \ No newline at end of file + + //- if user != nil + //- td.anime-list-item-actions + //- a(href=arn.Nyaa.GetLink(item.Anime()), title="Search on Nyaa", target="_blank", rel="noopener") + //- RawIcon("download") \ No newline at end of file