aboutsummaryrefslogtreecommitdiff
path: root/src/web/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2017-05-24 22:26:47 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2017-05-24 22:26:47 +0200
commit05f30c772b71fd30115ec012a3371f4478b74192 (patch)
tree78582f430ec00fbbfc59fe5164eecf04b702e007 /src/web/templates
parentA bookmarklet for bookmarks has been added. (diff)
downloadnewspipe-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.html14
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 -->
bgstack15