From f9659f43429de93d97275afefeac4720259ae349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Sun, 14 Feb 2021 17:14:58 +0100 Subject: [PATCH] Move bookmarklet to settings (#46) --- .../templates/bookmarks/bookmarklet.html | 24 ------------------- .../templates/bookmarks/empty_bookmarks.html | 6 ++--- bookmarks/templates/bookmarks/nav_menu.html | 4 ---- bookmarks/templates/settings/index.html | 19 +++++++++++++++ bookmarks/urls.py | 1 - 5 files changed, 22 insertions(+), 32 deletions(-) delete mode 100644 bookmarks/templates/bookmarks/bookmarklet.html diff --git a/bookmarks/templates/bookmarks/bookmarklet.html b/bookmarks/templates/bookmarks/bookmarklet.html deleted file mode 100644 index 91eaf64..0000000 --- a/bookmarks/templates/bookmarks/bookmarklet.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends "bookmarks/layout.html" %} - -{% block content %} -
-
-
-

Bookmarklet

-
-

The bookmarklet is a quick way to add new bookmarks without opening the linkding application - first. Here's how it works:

-
    -
  • Drag the bookmarklet below into your browsers bookmark bar / toolbar
  • -
  • Open the website that you want to bookmark
  • -
  • Click the bookmarklet in your browsers toolbar
  • -
  • linkding opens in a new window or tab and allows you to add a bookmark for the site
  • -
  • After saving the bookmark the linkding window closes and you are back on your website
  • -
-

Drag the following bookmarklet to your browsers toolbar:

- 📎 Add bookmark -
-
-{% endblock %} - diff --git a/bookmarks/templates/bookmarks/empty_bookmarks.html b/bookmarks/templates/bookmarks/empty_bookmarks.html index d97a88f..aed6895 100644 --- a/bookmarks/templates/bookmarks/empty_bookmarks.html +++ b/bookmarks/templates/bookmarks/empty_bookmarks.html @@ -1,8 +1,8 @@

You have no bookmarks yet

- You can get started by adding bookmarks, importing your existing bookmarks or configuring the bookmarklet. + You can get started by adding bookmarks, + importing your existing bookmarks or configuring the + bookmarklet.

diff --git a/bookmarks/templates/bookmarks/nav_menu.html b/bookmarks/templates/bookmarks/nav_menu.html index aa4922a..2cb5528 100644 --- a/bookmarks/templates/bookmarks/nav_menu.html +++ b/bookmarks/templates/bookmarks/nav_menu.html @@ -2,7 +2,6 @@
Add bookmark Archive - Bookmarklet Settings Logout
@@ -20,9 +19,6 @@
  • Archive
  • -
  • - Bookmarklet -
  • Settings
  • diff --git a/bookmarks/templates/settings/index.html b/bookmarks/templates/settings/index.html index 58e846a..0f281a8 100644 --- a/bookmarks/templates/settings/index.html +++ b/bookmarks/templates/settings/index.html @@ -51,6 +51,25 @@ {% endif %} + {# Integrations section #} +
    + +

    The bookmarklet is a quick way to add new bookmarks without opening the linkding application + first. Here's how it works:

    + +

    Drag the following bookmarklet to your browsers toolbar:

    + 📎 Add bookmark +
    + {# API token section #}
    diff --git a/bookmarks/urls.py b/bookmarks/urls.py index 05641f5..236f86d 100644 --- a/bookmarks/urls.py +++ b/bookmarks/urls.py @@ -18,7 +18,6 @@ urlpatterns = [ path('bookmarks//remove', views.bookmarks.remove, name='remove'), path('bookmarks//archive', views.bookmarks.archive, name='archive'), path('bookmarks//unarchive', views.bookmarks.unarchive, name='unarchive'), - path('bookmarklet', views.bookmarks.bookmarklet, name='bookmarklet'), # Settings path('settings', views.settings.index, name='settings.index'), path('settings/import', views.settings.bookmark_import, name='settings.import'),