From 65ca0466e01180574dfb6807be585511e36508fc Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Mon, 10 Jul 2017 23:37:57 +0200 Subject: [PATCH] Added export option --- pages/settings/settings.pixy | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/pages/settings/settings.pixy b/pages/settings/settings.pixy index f3e2fa01..34d69748 100644 --- a/pages/settings/settings.pixy +++ b/pages/settings/settings.pixy @@ -49,13 +49,6 @@ component Settings(user *arn.User) Icon("circle-o") span Not connected - .widget.mountable - h3.widget-title - Icon("download") - span Import - - ImportLists(user) - .widget.mountable h3.widget-title Icon("puzzle-piece") @@ -67,6 +60,24 @@ component Settings(user *arn.User) Icon("chrome") span Get the Chrome Extension + .widget.mountable + h3.widget-title + Icon("download") + span Import + + ImportLists(user) + + .widget.mountable + h3.widget-title + Icon("upload") + span Export + + .widget-input + label JSON: + a.button(href="/api/animelist/" + user.ID) + Icon("upload") + span Export anime list as JSON + //- .widget.mountable(data-api="/api/settings/" + user.ID) //- h3.widget-title //- Icon("cogs")