From 1378b5b2ffb5f3791a24d3f47de7498f0935c80e Mon Sep 17 00:00:00 2001 From: Oleksandr Perepadia <80095612+OPerepadia@users.noreply.github.com> Date: Wed, 9 Apr 2025 15:56:23 +0300 Subject: [PATCH] UI - Add UI options tab and setting to disable opening diff in a new tab (#3071) --- .../settings/templates/settings.html | 7 ++ .../watchlist/templates/watch-overview.html | 9 ++- changedetectionio/forms.py | 3 + changedetectionio/model/App.py | 3 + changedetectionio/tests/test_ui.py | 80 +++++++++++++++++++ 5 files changed, 99 insertions(+), 3 deletions(-) create mode 100644 changedetectionio/tests/test_ui.py diff --git a/changedetectionio/blueprint/settings/templates/settings.html b/changedetectionio/blueprint/settings/templates/settings.html index 7556b4c7..c45b267e 100644 --- a/changedetectionio/blueprint/settings/templates/settings.html +++ b/changedetectionio/blueprint/settings/templates/settings.html @@ -22,6 +22,7 @@
  • Notifications
  • Fetching
  • Global Filters
  • +
  • UI Options
  • API
  • Time & Date
  • CAPTCHA & Proxies
  • @@ -240,6 +241,12 @@ nav

    +
    +
    + {{ render_checkbox_field(form.application.form.ui.form.open_diff_in_new_tab, class="open_diff_in_new_tab") }} + Enable this setting to open the diff page in a new tab. If disabled, the diff page will open in the current tab. +
    +