Skip to content

Commit 75f28ca

Browse files
committed
Add export data UI
This adds the UI for the export feature introduced in bcbb8c6 It allows to download all notes from the main page in the default user submenu. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
1 parent bcbb8c6 commit 75f28ca

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,6 @@
110110
"Terms of Use": "Terms of Use",
111111
"Do you really want to delete your user account?": "Do you really want to delete your user account?",
112112
"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.",
113-
"Delete user": "Delete user"
113+
"Delete user": "Delete user",
114+
"Export user data": "Export user data"
114115
}

public/views/index/body.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
</button>
2828
<ul class="dropdown-menu" aria-labelledby="profileLabel">
2929
<li><a href="<%- url %>/features"><i class="fa fa-dot-circle-o fa-fw"></i> <%= __('Features') %></a></li>
30+
<li><a href="<%- url %>/me/export"><i class="fa fa-cloud-download fa-fw"></i> <%= __('Export user data') %></a></li>
3031
<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>
3132
<li><a href="<%- url %>/logout"><i class="fa fa-sign-out fa-fw"></i> <%= __('Sign Out') %></a></li>
3233
</ul>

0 commit comments

Comments
 (0)