diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-05-24 22:26:47 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-05-24 22:26:47 +0200 |
commit | 05f30c772b71fd30115ec012a3371f4478b74192 (patch) | |
tree | 78582f430ec00fbbfc59fe5164eecf04b702e007 /src/web/templates | |
parent | A bookmarklet for bookmarks has been added. (diff) | |
download | newspipe-05f30c772b71fd30115ec012a3371f4478b74192.tar.gz newspipe-05f30c772b71fd30115ec012a3371f4478b74192.tar.bz2 newspipe-05f30c772b71fd30115ec012a3371f4478b74192.zip |
Import bookmarks from pinboard.in
Diffstat (limited to 'src/web/templates')
-rw-r--r-- | src/web/templates/edit_bookmark.html | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/web/templates/edit_bookmark.html b/src/web/templates/edit_bookmark.html index 573e3d7a..1c6f0c01 100644 --- a/src/web/templates/edit_bookmark.html +++ b/src/web/templates/edit_bookmark.html @@ -63,9 +63,17 @@ </form> </div> {% if action == "Add a bookmark" %} - <div> - <p>{{ _('You can add a bookmark with a bookmarklet. Drag the following button to your browser bookmarks.') }}</p> - {{ _('<a class="btn btn-default" href="%(bookmarklet)s" rel="bookmark">Manage your bookmarks using Newspipe</a>', bookmarklet='javascript:window.location="%s?href="+encodeURIComponent(document.location)' % url_for('bookmark.bookmarklet', _external=True)) }} + <div class="row"> + <div class="col-md-6 pull-right"> + <p>{{ _('You can add a bookmark with a bookmarklet. Drag the following button to your browser bookmarks.') }}</p> + {{ _('<a class="btn btn-default" href="%(bookmarklet)s" rel="bookmark">Manage your bookmarks using Newspipe</a>', bookmarklet='javascript:window.location="%s?href="+encodeURIComponent(document.location)' % url_for('bookmark.bookmarklet', _external=True)) }} + </div> + <div class="col-md-6"> + <form action="{{ url_for('bookmark.import_pinboard') }}" method="post" id="formImportPinboard" enctype="multipart/form-data"> + <span class="btn btn-default btn-file">{{ _('Import bookmarks from pinboard.in') }} (<span class="text-info">*.json</span>)<input type="file" name="jsonfile" /></span> + <button class="btn btn-default" type="submit">OK</button> + </form> + </div> </div> {% endif %} </div><!-- /.container --> |