summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSheogorath2018-05-26 03:19:10 +0200
committerSheogorath2018-05-26 03:20:44 +0200
commit75f28ca7f3600ab6483f38ad47a0c8430858f5c3 (patch)
tree96082e6f593218d78e380ab8964298c1f917ab03
parentbcbb8c67c9f8092643c318140f6613324f306bd2 (diff)
Add export data UI
This adds the UI for the export feature introduced in bcbb8c67c9f8092643c318140f6613324f306bd2 It allows to download all notes from the main page in the default user submenu. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to '')
-rw-r--r--locales/en.json3
-rw-r--r--public/views/index/body.ejs1
2 files changed, 3 insertions, 1 deletions
diff --git a/locales/en.json b/locales/en.json
index 8b2574a7..f9c29b53 100644
--- a/locales/en.json
+++ b/locales/en.json
@@ -110,5 +110,6 @@
"Terms of Use": "Terms of Use",
"Do you really want to delete your user account?": "Do you really want to delete your user account?",
"This will delete your account, all notes that are owned by you and remove all references to your account from other notes.": "This will delete your account, all notes that are owned by you and remove all references to your account from other notes.",
- "Delete user": "Delete user"
+ "Delete user": "Delete user",
+ "Export user data": "Export user data"
}
diff --git a/public/views/index/body.ejs b/public/views/index/body.ejs
index f28ab11d..a7c5a0b8 100644
--- a/public/views/index/body.ejs
+++ b/public/views/index/body.ejs
@@ -27,6 +27,7 @@
</button>
<ul class="dropdown-menu" aria-labelledby="profileLabel">
<li><a href="<%- url %>/features"><i class="fa fa-dot-circle-o fa-fw"></i> <%= __('Features') %></a></li>
+ <li><a href="<%- url %>/me/export"><i class="fa fa-cloud-download fa-fw"></i> <%= __('Export user data') %></a></li>
<li><a class="ui-delete-user" data-toggle="modal" data-target=".delete-user-modal"><i class="fa fa-trash fa-fw"></i> <%= __('Delete user') %></a></li>
<li><a href="<%- url %>/logout"><i class="fa fa-sign-out fa-fw"></i> <%= __('Sign Out') %></a></li>
</ul>