From 84a53c1b4b4fce724e48a52a360ae3ca6541f8e9 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 9 Mar 2018 12:50:01 +0100 Subject: [PATCH] Added support link to extension --- layout/layout.pixy | 2 +- pages/embed/embed.pixy | 10 ++++++++-- pages/embed/embed.scarlet | 8 +++++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/layout/layout.pixy b/layout/layout.pixy index fd859771..562c80f1 100644 --- a/layout/layout.pixy +++ b/layout/layout.pixy @@ -41,7 +41,7 @@ component Layout(app *aero.Application, ctx *aero.Context, user *arn.User, openG Content(content) LoadingAnimation StatusMessage - ExtensionNavigation + ExtensionNavigation(user) if user != nil #user(data-id=user.ID, data-pro=user.IsPro(), data-theme=user.Settings().Theme) script(src="/scripts") diff --git a/pages/embed/embed.pixy b/pages/embed/embed.pixy index 10b407c8..ec199041 100644 --- a/pages/embed/embed.pixy +++ b/pages/embed/embed.pixy @@ -1,7 +1,13 @@ component BrowserExtension(watchingList *arn.AnimeList, viewUser *arn.User, user *arn.User) AnimeList(watchingList, viewUser, user) -component ExtensionNavigation +component ExtensionNavigation(user *arn.User) nav.extension-navigation button.action(data-trigger="click", data-action="toggleSidebar") - RawIcon("bars") \ No newline at end of file + RawIcon("bars") + + if user != nil + .spacer + + a.button(href="/support", target="_blank") + RawIcon("heart") \ No newline at end of file diff --git a/pages/embed/embed.scarlet b/pages/embed/embed.scarlet index aeb3c687..4e096135 100644 --- a/pages/embed/embed.scarlet +++ b/pages/embed/embed.scarlet @@ -3,10 +3,12 @@ > 780px .extension-navigation - display block + horizontal position fixed - bottom 1rem - left 1rem + bottom 0 + left 0 + padding 1rem + width 100% > 790px .extension-navigation