From 9a5a13bd25bbfc3c525a745d4e0b2b994169b630 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 9 Mar 2018 05:44:49 +0100 Subject: [PATCH] Added edit link --- pages/editor/mal.pixy | 7 ++++++- pages/editor/mal.scarlet | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pages/editor/mal.pixy b/pages/editor/mal.pixy index d622aab7..e6da4a9c 100644 --- a/pages/editor/mal.pixy +++ b/pages/editor/mal.pixy @@ -11,8 +11,13 @@ component CompareMAL(comparisons []*utils.MALComparison, user *arn.User) .data-comparison-title a(href=comparison.Anime.Link(), target="_blank")= comparison.Anime.Title.Canonical + .spacer - a(href=comparison.MALAnime.URL, target="_blank") + + a.data-comparison-tool(href=comparison.Anime.Link() + "/edit", target="_blank") + RawIcon("pencil") + + a.data-comparison-tool(href=comparison.MALAnime.URL, target="_blank") RawIcon("external-link") .data-comparison-differences diff --git a/pages/editor/mal.scarlet b/pages/editor/mal.scarlet index 2a070dab..f3a3924c 100644 --- a/pages/editor/mal.scarlet +++ b/pages/editor/mal.scarlet @@ -25,6 +25,10 @@ flex 1 align-items center +.data-comparison-tool + display flex + padding 0.5rem + .data-comparison-differences vertical margin-top 0.5rem