Added support link to extension

This commit is contained in:
Eduard Urbach 2018-03-09 12:50:01 +01:00
parent b77dcfb98c
commit 84a53c1b4b
3 changed files with 14 additions and 6 deletions

View File

@ -41,7 +41,7 @@ component Layout(app *aero.Application, ctx *aero.Context, user *arn.User, openG
Content(content) Content(content)
LoadingAnimation LoadingAnimation
StatusMessage StatusMessage
ExtensionNavigation ExtensionNavigation(user)
if user != nil if user != nil
#user(data-id=user.ID, data-pro=user.IsPro(), data-theme=user.Settings().Theme) #user(data-id=user.ID, data-pro=user.IsPro(), data-theme=user.Settings().Theme)
script(src="/scripts") script(src="/scripts")

View File

@ -1,7 +1,13 @@
component BrowserExtension(watchingList *arn.AnimeList, viewUser *arn.User, user *arn.User) component BrowserExtension(watchingList *arn.AnimeList, viewUser *arn.User, user *arn.User)
AnimeList(watchingList, viewUser, user) AnimeList(watchingList, viewUser, user)
component ExtensionNavigation component ExtensionNavigation(user *arn.User)
nav.extension-navigation nav.extension-navigation
button.action(data-trigger="click", data-action="toggleSidebar") button.action(data-trigger="click", data-action="toggleSidebar")
RawIcon("bars") RawIcon("bars")
if user != nil
.spacer
a.button(href="/support", target="_blank")
RawIcon("heart")

View File

@ -3,10 +3,12 @@
> 780px > 780px
.extension-navigation .extension-navigation
display block horizontal
position fixed position fixed
bottom 1rem bottom 0
left 1rem left 0
padding 1rem
width 100%
> 790px > 790px
.extension-navigation .extension-navigation