From 3bab7db0232337fea693e5d5fd3e4c85963bdbec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Mon, 15 Feb 2021 21:09:03 +0100 Subject: [PATCH] Enhance delete links with inline confirmation (#74) --- bookmarks/styles/bookmarks.scss | 7 ++++ .../templates/bookmarks/bookmark_list.html | 38 ++++++++++++++++++- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/bookmarks/styles/bookmarks.scss b/bookmarks/styles/bookmarks.scss index feb1fb7..3fe88e9 100644 --- a/bookmarks/styles/bookmarks.scss +++ b/bookmarks/styles/bookmarks.scss @@ -56,6 +56,13 @@ ul.bookmark-list { color: darken($gray-color, 10%); } } + + .actions .btn-link.bm-remove-confirm { + color: $error-color; + &:hover { + text-decoration: underline; + } + } } .bookmark-pagination { diff --git a/bookmarks/templates/bookmarks/bookmark_list.html b/bookmarks/templates/bookmarks/bookmark_list.html index 606f757..b1510e4 100644 --- a/bookmarks/templates/bookmarks/bookmark_list.html +++ b/bookmarks/templates/bookmarks/bookmark_list.html @@ -32,8 +32,7 @@ class="btn btn-link btn-sm">Archive {% endif %} Remove + class="btn btn-link btn-sm bm-remove">Remove {% endfor %} @@ -42,3 +41,38 @@
{% pagination bookmarks %}
+ +{# Enhance delete links to show inline confirmation #} + \ No newline at end of file