diff --git a/assets/graphicarts/log-out.svg b/assets/graphicarts/log-out.svg new file mode 100644 index 0000000..c9002c9 --- /dev/null +++ b/assets/graphicarts/log-out.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/index.html b/assets/index.html index c59b78a..338f803 100644 --- a/assets/index.html +++ b/assets/index.html @@ -94,6 +94,11 @@ {% inline "upload.svg" %} Export + + + {% inline "log-out.svg" %} + Log out +
diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index fad8b5b..a6d4626 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -2,6 +2,11 @@ var TITLE = document.title +function authenticated() { + return /auth=.+/g.test(document.cookie) + +} + var FONTS = [ "Arial", "Courier New", @@ -171,6 +176,7 @@ var vm = new Vue({ 'size': 1, }, 'refreshRate': undefined, + 'authenticated': authenticated(), } }, computed: {