diff options
author | VirtualTam <virtualtam@flibidi.net> | 2016-05-05 19:22:06 +0200 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2016-05-06 16:12:46 +0200 |
commit | bb4a23aa863b63e6148a085c15dedd7c960b4206 (patch) | |
tree | d4a484ca0eef729f5c02d95e0b20cc40e120853a /tpl/export.html | |
parent | 6275a65969a84a360588e0a62b025963e9ec98e0 (diff) | |
download | Shaarli-bb4a23aa863b63e6148a085c15dedd7c960b4206.tar.gz Shaarli-bb4a23aa863b63e6148a085c15dedd7c960b4206.tar.zst Shaarli-bb4a23aa863b63e6148a085c15dedd7c960b4206.zip |
Export: allow prepending notes with the Shaarli instance's URL
Relates to #102
Additions:
- application:
- export: allow prepending note permalinks with the instance's URL
- test coverage
Modifications:
- export template: switch to an HTML form
- link selection (all/private/public)
- prepend note permalinks with the instance's URL
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'tpl/export.html')
-rw-r--r-- | tpl/export.html | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/tpl/export.html b/tpl/export.html index 9582627a..67c3d05f 100644 --- a/tpl/export.html +++ b/tpl/export.html | |||
@@ -5,15 +5,21 @@ | |||
5 | <div id="pageheader"> | 5 | <div id="pageheader"> |
6 | {include="page.header"} | 6 | {include="page.header"} |
7 | <div id="toolsdiv"> | 7 | <div id="toolsdiv"> |
8 | <a href="?do=export&selection=all"> | 8 | <form method="GET"> |
9 | <b>Export all</b><span>: Export all links</span> | 9 | <input type="hidden" name="do" value="export"> |
10 | </a><br> | 10 | Selection:<br> |
11 | <a href="?do=export&selection=public"> | 11 | <input type="radio" name="selection" value="all" checked="true"> All<br> |
12 | <b>Export public</b><span>: Only export public links</span> | 12 | <input type="radio" name="selection" value="private"> Private<br> |
13 | </a><br> | 13 | <input type="radio" name="selection" value="public"> Public<br> |
14 | <a href="?do=export&selection=private"> | 14 | <br> |
15 | <b>Export private</b><span>: Only export private links</span> | 15 | <input type="checkbox" name="prepend_note_url" id="prepend_note_url"> |
16 | </a> | 16 | <label for="prepend_note_url"> |
17 | Prepend note permalinks with this Shaarli instance's URL | ||
18 | <em>(useful to import bookmarks in a web browser)</em> | ||
19 | </label> | ||
20 | <br><br> | ||
21 | <input class="bigbutton" type="submit" value="Export"> | ||
22 | </form> | ||
17 | <div class="clear"></div> | 23 | <div class="clear"></div> |
18 | </div> | 24 | </div> |
19 | </div> | 25 | </div> |